...
An idoc document is created by method ‘CREATE’ of class /PACG/ECM_CL_S_IDOC. This is where the basic idoc control data is filled. Based on class assignment of message type ‘/PACG/ECM_ACTIVITYOUT’ (to be precise, the 'Process code' field), a relevant function module name is determined. The retrieved function module’s name is /PACG/ECM_S_IDOC_OUTPUT. It is now called to fill the idoc’s header and segments. Notice which data is passed as parameters.
Fill the idoc
...
Take a look at the current ABAP stack:
...
- function /PACG/ECM_S_IDOC_OUTPUT
The outbound idoc class entered in the outgoing class assignment customizing will be used to retrieve specific data for each idoc field. In this case it is class /PACG/ECM_CL_S_IDOC_O_ACTI_E. It implements interface method ‘IDOC_OUTPUT’.
Idoc output class
Take a look at the current ABAP stack:
...
The idoc output class gathers all the additional data for objects retrieved in the selection class so that all relevant idoc fields can be filled with properties.
...
Data is sent to the channel with method ‘PROCESS’ of an instance of class /PACG/ECM_CL_S_COM_FACADE. After determination of the communication channel, the data will be passed for sending to the communication channel.
XML transformation
Take a look at the current ABAP stack:
...
It is in method /PACG/ECM_IF_S_CHANNEL~SEND of class /PACG/ECM_CL_S_CHANNEL_XML_WS where the XML transformation will be called.
...