Replicating Service Contracts using SAP Event Mesh

Objective

After completing this lesson, you will be able to replicate a service contract from SAP S/4HANA using SAP Event Mesh.

Service Contract Replication from SAP S/4HANA using Event Mesh

This integration flow allows you to replicate service contract data from SAP S/4HANA to SAP Entitlement Management.

For more information, see: Replicate Service Contract from SAP S/4HANA without Status Change | SAP Help Portal

Replicate Service Contract from SAP S/4HANA without Status Change

  1. In SAP S/4HANA, configure message monitoring through the SAP Application Interface Framework.
  2. In SAP Reference IMG, activate the SOAP notification for the relevant transaction type.
  3. In SAP S/4HANA, configure SOA MANAGER to create and configure a consumer proxy type.
  4. In SAP Cloud Integration, configure the Receiver tab for SAP Entitlement Management as follows:
    1. Provide the Entitlement Generation API URL.
    2. Set the Authentication Method to OAuth Client Credentials and provide the Credential Name.
    3. Specify the Timeout.
  5. Configure the Receiver tab for ExitReceiver as follows:

    For the Extension Integration Flow PD Address, specify /EMS/ReplicateServiceContractViaSOAP_PostExit.

  6. On the More tab, extend the standard integration flow as follows:

    Set the Extension Implemented field to true.

    Note

    Within the standard integration flow, there is no field from SAP Master Data Integration that properly maps to BusinessEvent and we did not set a default value for it.

    If you want to rewrite the logic of this field, you can define your logic in the Post-Exit integration flow.

Replicate Service Contract from SAP S/4HANA with Status Change

  1. In SAP Cloud Integration, configure the Receiver tab for SAP Entitlement Management and EMS_Status_Change as follows:
    1. Provide the Entitlement Generation API URL.
    2. Set the Authentication Method to OAuth Client Credentials and provide the Credential Name.
    3. Specify the Timeout.
  2. Configure the Receiver tab for ExitReceiver as follows:

    For the Extension Integration Flow PD Address, specify /EMS/ReplicateServiceContractViaSOAP_PostExit.

  3. On the More tab, extend the standard integration flow as follows:

    Set the Extension Implemented field to true.

  4. On the More tab, enter customized values for the following:
    • Completed_Status_Name
    • Cancelled_Status_Name
    • Released_Status_Name

      Note

      Within the standard integration flow, there is no field from SAP Master Data Integration that properly maps to BusinessEvent and we did not set a default value for it.

      If you want to rewrite the logic of this field, you can define your logic in the Post-Exit integration flow.

Summary

Covers both "without status change" (SOAP) and "with status change" (Event Mesh) patterns for syncing service contracts to entitlements.