Process diagram
The diagram below demonstrates generalized inbound idoc processing (SAP FSM → SAP ECC/S4).
Process description
In this scenario an activity is modified in SAP FSM and transferred to SAP ECC.
Initial message input handling
When an inbound message comes from the Message Broker, the following web service is executed:
Initial message input handling takes place in the web service’s function /PACG/ECM_S_WSINPUT which calls method /PACG/ECM_CL_S_INPUT=>INPUT.
XML to idoc conversion
XML to idoc conversion takes place in the method PROCESS_INPUT of class /PACG/ECM_CL_S_COM_FACADE.
Based on the inbound class assignment configuration, the conversion class is determined.
Confirmation
After successful conversion the idoc is stored. Relevant confirmations are sent back to SAP FSM.
Idoc input class
In the function module /PACG/ECM_S_IDOC_INPUT, the idoc input class is determined based on the inbound class assignment configuration. The interface method /PACG/ECM_IF_S_IDOC_INPUT~IDOC_INPUT of the activity idoc input class is then called.
Object-specific logic determines what should be done with the received data (e.g. how idoc field values should be mapped with SAP tables in order to correctly modify/create objects in SAP). For activities the most significant actions take place in method /PACG/ECM_IF_I_ACTIVITY~PROCESS_SALES_ACTIVITY.