Product Information
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.
Hi Binoo,
I tried to do this steps with a S4 HANA system but the Idoc is not processed automatically. Can you help me?
Best regards,
David
HI @Binoo Chandran,
thank you for the very interesting blog! Do you know if it can have any negative side effects if this configuration is done after the system is being used productively and not during initial system setup? I guess that the update of existing quotes/orders might become an issue and one has possibly to implement additional logic on CPI or ERP.
BR & Thanks
Rufat
Enabling this in an already running environment is bit risky.
This can cause issues with your existing order updates.
Else you need to add some extra logic in middleware to determine for which orders this receiver mapping has to work.