欢迎来到天天文库
浏览记录
ID:34321339
大小:778.50 KB
页数:15页
时间:2019-03-05
《abapproxy中如何下发数据或上传数据》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ABAPProxy매뉴얼-SAPXI-숭실대학교`-15-/151.OutboundProxy1)OutboundProxy(SAP에서XI을호출하는경우에사용)[그림1-1]OutboundProxySPROXY[그림1-2]OutboundProxy구조를찾아볼수있는곳lXI담당자가PROXY를생성하여해당모듈담당자에게전달함.-15-/152)EXAMPLEREPORTZTEST001.*ReferencevariablesforproxyandexceptionclassDATA:proxyTYPEREFTOZSCLCO_OUTBOUND_AO,faultTYP
2、EREFTOcx_ai_system_fault.DATA:IT_ZMMIF03TYPETABLEOFZMMIF03,"DECLAREOFINTERNALTABLEWA_ZMMIF03LIKELINEOFIT_ZMMIF03."DECLAREOFWORKAREA-15-/15*StructurestosetandgetmessagecontentDATA:ITTYPEZSCLOUTBOUND_MSG,"DECLAREOFMSGTYPEIRTYPEZSCLOUTBOUND_ITEM_TAB,"DECLAREOFPROXYTABLETYPEISTYPEZSCLOUTBOUN
3、D_ITEM."DECLAREOFPROXYLINETYPE*gatheringdataSELECT*FROMZMMIF03INTOTABLEIT_ZMMIF03.LOOPATIT_ZMMIF03INTOWA_ZMMIF03.MOVE-CORRESPONDINGWA_ZMMIF03TOIS.-15-/15APPENDISTOIR.ENDLOOP.IFSY-SUBRC=0.IT-OUTBOUND_MSG-ITEM=IR.*createproxyclientCREATEOBJECTproxy.TRY.*doasynchronousclientproxycallCALLMET
4、HODproxy->OUTBOUND_AOEXPORTING-15-/15OUTPUT=IT.COMMITWORK.*ErrorhandlingCATCHcx_ai_system_faultINTOfault.CREATEOBJECTfault.WRITE:/fault->errortext.ENDTRY.ENDIF.2.InboundProxy-15-/151)InboundProxy(XI에서SAP으로메시지를전송하는경우)[그림2-1]InboundProxySPROXY더블클릭[그림2-2]InboundProxy구조를찾아볼수있는곳lXI담당자가PROXY를생
5、성하여해당모듈담당자에게전달함.-15-/15더블클릭이곳에Programming을한다-15-/152)EXAMPLEmethodZSCLII_INBOUND_AI~INBOUND_AI.*******INSERTIMPLEMENTATIONHERE********StructurestosetandgetmessagecontentDATA:ITTYPEZSCLINBOUND_ITEM_TAB,"DECLAREOFPROXYTABLETYPEISTYPEZSCLINBOUND_ITEM."DECLAREOFPROXYLINETYPEDATA:IT_ZMMIF03TY
6、PETABLEOFZMMIF03,"DECLAREOFINTERNALTABLEST_ZMMIF03LIKELINEOFIT_ZMMIF03."DECLAREOFWORKAREA-15-/15IT=INPUT-INBOUND_MSG-ITEM[].LOOPATITINTOIS.CLEAR:ST_ZMMIF03.MOVE-CORRESPONDINGISTOST_ZMMIF03.MODIFYZMMIF03FROMST_ZMMIF03.APPENDST_ZMMIF03TOIT_ZMMIF03.ENDLOOP.COMMITWORK.endmethod.클릭3.MONITORIN
7、G-15-/15더블클릭SXI_MONITORR事物码:SXI_MONITOR-15-/15데이터확인클릭-15-/15클릭4.DEBUGGING12클릭-15-/153클릭4-15-/155-15-/15
此文档下载收益归作者所有