This article describes how SAP Integration Suite can enable customer master synchronization between S/4HANA and Pricefx using event-driven approach.
Steps:
Step 0: Pricefx Setup and SAP S/4HANA Events Setup
Pricefx Setup
-
Configure customer master table in Pricefx to store the necessary fields from SAP S/4HANA.
-
Optionally, configure any Customer Extension tables in Pricefx to store the necessary fields from SAP S/4HANA.
-
Optionally, configure any Price Parameter tables in Pricefx to store the necessary fields from SAP S/4HANA.
SAP S/4HANA Events Setup
-
Configure SAP S/4HANA to publish business partner updates events to SAP Event Mesh.
-
Configure a queue in SAP Event Mesh to subscribe to these events.
For more details, see SAP Event Mesh Configuration.
Step 1: Listen to Business Partner Events from SAP Event Mesh
This integration flows listen to events from SAP Event Mesh. You should configure S/4HANA to publish business partner updates events to SAP Event Mesh. If you do not use SAP Event Mesh, you should build your own event listening integration flow.
See Set up Integration Flows - Event-driven | SAP S/4HANA Event Listener.
Step 2: Aggregate SAP S/4HANA Business Partner Events from SAP Event Mesh
This integration flow aggregates the business partner events from SAP S/4HANA. It is duplicated and modified from “Aggregate SAP S/4HANA Events from SAP Event Mesh” from “Sample Artifacts for SAP S/4HANA Integration with Pricefx“ package.
Step 3: Build Batched SAP S/4HANA Customer Response from List of Business Partner IDs
This integration flow builds a list of SAP S/4HANA customers by calling SAP S/4HANA OData batch GET service.
Below parameters can be configured but default values are provided:
-
Sender – The process direct incoming path of this integration flow.
-
Main receiver – The integration flow which writes Customer response to Pricefx Customer Master.
-
Multicast receiver – The integration flow which writes Customer response to other Pricefx tables.
-
Error receiver – The integration flow which writes error to error handler
-
AIR and SAP connection properties receiver – The integration flow which retrieves and SAP connection properties and AIR from Pricefx.
-
Transaction handling
-
Split and Gather properties
-
XPath for extracting customer ID
-
Message Mapping to build a batch request to get a list of customers
-
OData connection properties
-
Message header properties
Major steps carried out by this integration flow include:
-
Remove duplicates.
-
Initialize properties, SAP connection properties and SAP AIR key.
-
Call to another mapping to build a batch GET request message by the distinct IDs.
-
Call SAP S/4HANA OData batch GET service to get the list of updated SAP S/4HANA customers.
-
Publish the customer update request to Pricefx.
Step 4: Write Customer Updates From SAP S4HANA To Pricefx, Multicast Customer response from SAP S4HANA to processing flows
The updates are then published to another process which multicasts the updates to customer master and other tables. You should build your own multicast process according to your needs.
The multicast invokes the reusable process - Write Records to Pricefx Tables. Set the required mappings, table names, environment, table type as headers.
Step 5: Write Records to Pricefx Tables
See Set up Integration Flows - Event-driven | Step 4: Write Records to Pricefx.