I have to send the goods movement via IDoc from 2 different SAP systems to S/4 HANA via SAP Process Orchestration (PO).
I need to recognize in S/4 HANA from which system the IDoc is coming, do some mapping based on the sender, and after the mapping, I have to book the goods movement.
My solution is to extend the standard IDoc type MBGMCR03 with 1 segment with 1 field (SOURCE_SYSTEM).
- How can I fill that field before creating/sending the outbound IDoc?
- On the receiving system ( in this case S/4 HANA), where can I do the mapping before using the standard inbound functionality?
The customer does not want to do any mapping in Process Integration (PI).