Create Quotes / Orders with Same ID in SAP Cloud for Customer and in SAP ERP
You can configure quote / order to have the same IDs in SAP Cloud for Customer and SAP ERP, irrespective of which system they’re created in.
1. For Order created in ERP and replicated to C4C.
Make below changes to have the same ID for the replicated order in C4C as in ERP.
Outbound IDoc: COD_REPLICATE_SALES_ORDER
Field that contains ERP sales order ID: DOC_NUMBER
This field has to be mapped in middleware to the RecepientID field in the C4C inbound interface: CustomerOrderReplicationIn
Mapping in PI:
Note: Ensure that the order ID in ERP lies outside the number range for sales order internal ID in C4C.
2. For Orders created in C4C and replicated to ERP.
Make below changes to have the same ID for the replicated orders in ERP as in C4C.
Outbound interface CustomerQuoteProcessingSalesOrderRequestOut
Field that contains C4C order ID: ID
This has to be mapped in middleware to the field SALESDOCUMENTIN of the inbound IDoc SALESORDER_CREATEFROMDAT2
Mapping in middleware:
Note: Ensure that the external number range for sales order in your ERP system is same as the internal number range for sales order in C4C.