Event-driven Process (Product Integration)
This article describes how SAP Integration Suite can enable product 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 the product master table in Pricefx to store the necessary fields from SAP S/4HANA.
Optionally, configure any Product 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 product 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.
You might have a different S/4HANA or Event Mesh environment. Please refer to SAP official documentation for more information and troubleshooting. Pricefx does not provide any support to your SAP environment.
Step 1: Listen to SAP S/4HANA Product 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.
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: Get Updated Products from SAP S/4HANA from Product IDs List
This integration flow builds a list of SAP S/4HANA products by calling SAP S/4HANA OData batch GET service.
Major steps carried out by this integration flow include:
Remove duplicates.
Initialize 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 products.
Multicast the list of updated SAP S/4HANA products to integration flows to write to different Pricefx tables. Branch 1 goes to the product master, while branch 2 goes to another integration flow which consists of all other branches. A sample “Multicast Product Response to all Product Entities in Pricefx” is provided in the package.
Step 4: Write Records to Pricefx
These integration flows are where the multicast branches go to. One duplicate of “Write Records to Pricefx” is required for each table.