ITPub博客

首页 > 应用开发 > IT综合 > 使用SAP XIF Adapter发送IDoc数据

使用SAP XIF Adapter发送IDoc数据

原创 IT综合 作者:i042416 时间:2020-09-20 12:05:35 0 删除 编辑

In this blog, I will use File as external receiver.

Scenario overview

I make some changes on business partner / product master data in CRM.

The data in the mBDoc will be converted in XIF adapter into an IDoc which then is sent to File as external receivers.

(1) Create a new port in tcode WE21:



Use EDI_GLOBAL_PATH as directly which will be written with generated IDoc.



The physical path could be found by simply double click:



Save the port as XIF_FILE. (2) Create a new partner profile in tcode WE20:



Add new outbound parameters:



For receiver port, maintain XIF_FILE created in previous step.



(3) Create a new site in tcode SMOEAC:



Click Site attribute and maintain XIF_SYSTEM and type: LS – logical system.



XIF_SYSTEM is an entry in tcode SALE:



Add All Business Partner(MESG) as subscription:



Save site as JERRY_FILE_SITE.

(4) Add a new entry below in tcode CRMXIF_C1



(5) now use tcode BP, search a business partner and make changes on it and save.



go to tcode SMW01, you should find a generated mBdoc:



Double confirm that this mBodc is generated by my previous change by checking partner id and guid:



Now go to tcode BD87, find IDoc with status = 30 – IDoc ready for dispatch



One IDoc found:



Click Display IDoc button:



We can ensure this IDoc is generated by our change in BP tcode via partner_no:



(6) Click Process button to send it to File receiver:


Status changes to 03:



Go to tcode AL11, the generated file is there:



If you are curious about the file content, you can see a downloaded version here. As alternative you can also specify absolute path:



Other business logic like Product has the same logic:



Make changes on Web UI:



The IDoc for product change is generated successfully:



要获取更多Jerry的原创文章,请关注公众号"汪子熙":


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2722625/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
SAP成都研究院开发专家,SAP社区导师,SAP中国技术大使。

注册时间:2018-01-20

  • 博文量
    1820
  • 访问量
    812405