SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

Replicate CRM Opportunity to SAP Cloud for Customer using PI and XIF Adapter

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 Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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 Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

Click button “Show BDoc Msg Erros/Receivers”:

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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 Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

There is one IDOC found:

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

Expand record to see IDOC detail:

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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 Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

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

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

Click View->Payload to see message content:

SAP Hybris Cloud for Customer, C4C Extensibility, CRM Middleware, SAP Customer Relationship Management

Leave a Reply

Your email address will not be published. Required fields are marked *