...
An idoc document is created by method ‘CREATE’ of class /PACG/ECM_CL_S_IDOC. Notice which values are passed as parameters.
Take a look at the current ABAP stack.
...
Basic 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.
...
Hash handling prevents resending of already transferred idocs. A hash is created for this activity based on the idoc’s content. If the same hash has been generated before for this company, message type and activity number (can be found in table /PACG/ECM_AHASH), the ‘forcesend’ parameter must be checked. In such a case the old hash will be overwritten. Otherwise, the activity won’t be transferred at all.
...
Idoc segments are read with the function 'EDI_DOCUMENT_OPEN_FOR_PROCESS' based on the imported document number. The function exports the control segment. If no processing errors were raised (e.g. related to idoc’s status) , the function 'EDI_SEGMENTS_GET_ALL' retrieves all the idoc segments.
...
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.
...
The method ‘SEND_XML_MESSAGES’ of class /PACG/ECM_CL_S_WS_PROXY will be used to pass the XML to a webservice. Notice that sending Sending of XML will be repeated up to 30 times (the loop will be escaped once the sending is successful). Sending failures might be caused by Message Broker disfunction or internal network issues.
...
Idoc statuses will be updated based on the success of transfer. Document process closing is conducted by function ‘EDI_DOCUMENT_CLOSE_PROCESS’. Finally, the statuses and logs are saved by a commit.
...
The successful transfer is confirmed by logs. A new idoc of type /PACG/ECM_ITYPE_ACTIVITY_OUT can be found in transaction WE02.
...