Replicating Sales Orders using IDOC

Objective

After completing this lesson, you will be able to replicate a sales order from SAP S/4HANA using IDOC.

Sales Order Replication from SAP S/4HANA using IDoc

This integration flow allows you to replicate sales order master data from SAP S/4HANA to SAP Entitlement Management using IDoc.

For more information, see: Replicate Sales Order from SAP S/4HANA via IDoc | SAP Help Portal

Note

This does not support sales order deletion or sales order item deletion.

Configure Settings in SAP S/4HANA: IDoc Synchronization

  1. In SAP S/4HANA, maintain the IDoc configuration.
  2. In SAP S/4HANA, configure the SSL certificate.

    For more information on how to configure the backend system, please refer the above integration document.

Configure SAP Cloud Integration Settings

  1. Configure the Sender tab as follows:

    1. Specify the address as /replicate/salesorder.
    2. For Body Size and Attachments Size, use the default values.
  2. Configure the Receiver tab for SAP Entitlement Management as follows:

    1. Provide the EMS Generation API URL.
    2. Set the Authentication Method to OAuth2 Client Credentials and provide the Credential Name.
    3. Specify the Timeout.
  3. Configure the Receiver tab for ReplicateEntitlementExtensionProcessExit as follows:

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

  4. 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 S/4HANA that properly maps to either ItemValidTo or BusinessEvent. The default ItemValidTo value has been set to the current date and the default BusinessEvent value has been set to PUR.

    If you want to rewrite the logic of these two fields, you can define your logic in the Post-Exit integration flow.

Replicate Sales Order from SAP S/4HANA via IDoc

Configure the Back-End System

Create Sales Order In SAP S/4HANA

Configure SAP Cloud Integration

Check Sales Order In SAP Entitlement Management

Summary

Details the IDoc-based integration flow that replicates sales-order data from SAP S/4HANA to SAP Entitlement Management without supporting deletions.