REPORT zale_001 .
INCLUDE: <cntain>.
DATA: l_return TYPE swotreturn,
lt_cont TYPE swconttab,
l_objhnd TYPE swo_objhnd,
l_objkey LIKE swotobjid-objkey.
************************************************************************
PARAMETERS:
p_carrid TYPE scarr-carrid,
p_name TYPE scarr-carrname.
************************************************************************
l_objkey = p_carrid.
** Business Object 인스턴스 생성
CALL FUNCTION 'SWO_CREATE'
EXPORTING
objtype = 'ZBUS000001'
objkey = l_objkey
objname = 'ZBUS000001'
* LOGICAL_SYSTEM = 'LQACLNT700'
IMPORTING
object = l_objhnd
EXCEPTIONS
no_remote_objects = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
************************************************************************
* BAPI 함수에 데이터 전달
DATA : gs_scarr LIKE scarr.
gs_scarr-carrid = p_carrid.
gs_scarr-carrname = p_name.
swc_set_element lt_cont 'CARRID' p_carrid.
swc_set_element lt_cont 'GS_SCARR' gs_scarr.
* BAPI함수 실행
CALL FUNCTION 'SWO_INVOKE'
EXPORTING
* ACCESS = 'C'
object = l_objhnd
verb = 'ZSend'
* PERSISTENT = ' '
* REQUESTER = ' '
* SYNCHRON = '*'
* UNSORTED_CONTAINER = ' '
* NO_ARFC = ' '
IMPORTING
return = l_return
* VERB =
* MODE_ID =
TABLES
container = lt_cont.
************************************************************************
* COMMIT WORK를 수행해야만 Inbound IDOC이 생성됨
COMMIT WORK.
************************************************************************
WRITE:/ 'BAPI-ALE 인터페이스 테스트', l_return.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
331 | REPORT zsapgos_002. | sapjoy | 2009.02.12 | 2458 |
330 | REPORT ZSAPGOS_001. | sapjoy | 2009.02.12 | 2477 |
329 | FUNCTION Z_BAPIALE_SEND. | sapjoy | 2009.02.10 | 2420 |
» | REPORT zale_001 . | sapjoy | 2009.02.10 | 2471 |
327 | REPORT ZBAPI_002. | sapjoy | 2009.02.10 | 2590 |
326 | FUNCTION Z_BAPI_REQ_FUNCLOC. | sapjoy | 2009.02.05 | 2421 |
325 | REPORT ZBAPI_ALE | sapjoy | 2009.02.05 | 2334 |
324 | zbapi_java | sapjoy | 2009.02.02 | 2699 |
323 | FUNCTION Z_BAPI_ASSETNAME_SEARCH | sapjoy | 2009.01.31 | 2898 |
322 | REPORT z18_003 | sapjoy | 2007.03.06 | 3281 |
321 | REPORT ZSMARTFORMS_07. | sapjoy | 2009.01.22 | 2389 |
320 | REPORT zBADI_FIND | sapjoy | 2009.01.16 | 2732 |
319 | REPORT ZBADI_003. | sapjoy | 2009.01.15 | 2403 |
318 | REPORT zbadi_002. | sapjoy | 2009.01.10 | 2545 |
317 | REPORT zbadi_001 | sapjoy | 2009.01.07 | 2527 |
316 | doi_excel.xls | sapjoy | 2008.12.26 | 2177 |
315 | report zsapdoi_005. | sapjoy | 2008.12.26 | 2978 |
314 | report zsapdoi_004. | sapjoy | 2008.12.26 | 2932 |
313 | report zsapdoi_003. | sapjoy | 2008.12.26 | 2570 |
312 | report zsapdoi_002. | sapjoy | 2008.12.26 | 4405 |