且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

更新时间:2022-09-05 23:13:18

Below picture is copied from SAP Standard training material CR500 – CRM Middleware: It is possible to leverage CRM XIF Adapter plus SAP PI to replicate the data from CRM to external system.


使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

The necessary step to setup configuration in CRM, C4C and PI side could be found from SAP document.

Here below is an example how Opportunity created by CRM WebUI could be replicated to C4C.


(1) Create an Opportunity in CRM:


使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

The opportunity is saved with ID 37985. Once saved, check the mBDOC generated via tcode SMW01 in CRM:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

Click button “Show BDoc Msg Erros/Receivers”:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

In my example the site 0LO7ESN points to the target C4C system.

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

(2) Check generated IDOC via tcode WE02 in CRM:

specify filter using Basic Type = CRMXIF_ORDER_SAVE_U01 and Partner number = site name got from previous step:


使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

There is one IDOC found:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

Expand record to see IDOC detail:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

(3) In C4C system, the Opportunity ID generated in CRM is stored as “External ID”:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

The Opportunity created in CRM is displayed in C4C as below:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

Now if you make further changes on the Opportunity in CRM, the delta change will automatically be replicated to C4C as well.

In Work center Administration(Beta), view Integration->Web Service Message Monitoring,


使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

we can see the inbound web service messages are logged there.

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统

Click View->Payload to see message content:

使用SAP PI和XIF Adapter将SAP CRM Opportunity同步到C4C系统