...
Info |
---|
Keep in mind that even though most of the steps described below are relevant for the majority of objects, some of them are ACTIVITY-specific. |
Run the sending program for the object
Navigate to the sending program for activities - /PACG/ECM_TRIG_ACTIE. Enter an activity number and a relevant company ID. Click execute.
...
Start of selection in the sending program
Object key table
In the activity transfer program the values entered in the select-option ‘Activity number’ (S_ACTNR) are looped at and appended to the object key table (LT_OBJKEY). This table will later be passed to the selection class.
Class assignment
Based on the message type, a relevant class assignment is retrieved from table /PACG/ECM_CLASGN. In this case the message type is ‘/PACG/ECM_ACTIVITYOUT’.
Class assignment for each message type is maintained in transaction /PACG/ECM_CLSASSIG - FSM Connector's Outgoing Messages Configuration. Notice that for message type ‘/PACG/ECM_ACTIVITYOUT’ the following selection class ('Data selection') and outbound idoc class ('IDOC class') are currently defined.
...
If no selection class was found for this message type, the program wouldn’t proceed. The selection class is used for dynamic object creation.
Notice that in the selection class’s class-constructor sales area assignment is read.
Proceed to the selection class
Once the LO_DATASEL object has been created, the interface method ‘SEND' can be called.
...
Event trigger
The outbound processing is started by an event triggered after user’s action on an activity.
Selection class
The general purpose of this method is to prepare a relevant list of objects to pass for the idoc outbound class.
...
The source XML will be transformed to FSM-friendly format (tag names will correspond to SAP FSM property names). Currently, the XML reflects the idoc field names, as shown below:
...
The control segment and the first segment:
...
language | xml |
---|
...
After successful transformation, the XML’s tags correspond to SAP FSM property names:
...
The control segment and the first segment:
...
language | xml |
---|
...
The XML is then converted into UTF-8 string and certain ASCII codes are removed from it.
...