This integration flow enables you to replicate sales order data from SAP S/4HANA to SAP Entitlement Management using SAP Event Mesh.
Note
Currently, this integration flow only supports the following two event types:
- sap.s4.beh.salesorder.v1.SalesOrder.Created.v1
- sap.s4.beh.salesorder.v1.SalesOrder.Changed.v1
This does not support sales order deletion or sales order item deletion.
Step 1: Configure Settings in SAP S/4HANA Cloud Sales Order Management
- Log in to SAP S/4HANA Cloud.
- Create a Communication User.
- Configure Communication Systems and Communication Arrangements.
Step 2: Configure SAP S/4HANA Cloud Settings
In SAP Cloud Integration, configure the Sender tab as follows:
Specify the event mesh Host, Port, Path, Queue Name, and its OAuth2 Client Credential.
Configure the Receiver tab for SAP Entitlement Management as follows:
- Provide the Entitlement Generation API URL.
- For Authentication, select OAuth2 Client Credentials and specify the Credential Name.
- Specify the Timeout.
Configure the Receiver tab for S4HANA_Cloud as follows:
- Provide the SAP S/4HANA Cloud Sales Order OData API.
- Provide its credentials.
Configure the Receiver tab for ExitReceiver as follows:
For Extension Integration Flow PD Address, use the default value /EMS/ReplicateSalesOrderViaCloudEvent_PostExit.
On the More tab, extend the standard integration flow as follows:
For the Extension Implemented field, select true.
Note
Within the standard integration flow, there are no fields from SAP S/4HANA that properly map to SourceSystem, ItemValidFrom, ItemValidTo, or BusinessEvent.
We did not set a default value for ItemValidFrom or ItemValidTo.
However, the default value for BusinessEvent is PUR and the default value for SourceSystem is Dummy.
If you want to rewrite the logic of these fields, you can define your logic in the Post-Exit integration flow.
Summary
Uses Event Mesh events from SAP S/4HANA Cloud Sales Order Management to create or update entitlements in SAP Entitlement Management in real time.