In this subtopic you add to CatalogOrder.seqflow a new Assign node to contain the mappings that set the values of the input parameters to DFH0XCM.
To add the Assign node:
If CatalogOrder.seqflow is not already open in the flow editor then:
Open CatalogOrder.seqflow in the flow editor.
In the workbench's main menu click .
Add a new Assign node immediately to the right of the Switch node named Switch. The new Assign node is named Assign1.
Create a connection from the first output terminal of Switch to the input terminal of Assign1:
Create a connection from the output terminal of Assign1 to the input terminal of PlaceOrder.
Close the flow editor.
Notice that the operation PlaceOrder, instead of having a separate input message for the input parameters and a separate output message for the output parameters, has its input and output parameters stored in the same message.

The reference to the Input message and the reference to the Output message both refer to the same message msg_DFH0XCMN_DFHCOMMAREA.
In this subtopic you add the five mappings shown in Table 1 to the mapping routine for the Assign node Assign1 in the flow CatalogOrder.seqflow. These mappings set up the input parameters for the nonterminal application DFH0XCMN:
| Source information for the mapping: | Target variable of the mapping: | Type of mapping: | ||
|---|---|---|---|---|
| Name: | Data type: | Name: | Data type: | |
| v_CatalogOrder.itemNumber | xsd:short | msg_DFH0XCMN_DFHCOMMAREA |
short | Move |
| v_CatalogOrder.itemQuantity | xsd:short | msg_DFH0XCMN_DFHCOMMAREA |
short | Move |
| The string 01ORDR | Literal string | msg_DFH0XCMN_DFHCOMMAREA |
string | Assign |
| The string JOE | Literal string | msg_DFH0XCMN_DFHCOMMAREA |
string | Assign |
| The string DEPT | Literal string | msg_DFH0XCMN_DFHCOMMAREA |
string | Assign |
To create these mappings:
Open CatalogOrder.seqflow in the flow editor, if it is not already open.
In the main menu of the workbench click .
Open the mapping routine for the Assign node Assign1:
Right-click Assign1.
Click Open Mapping Routine. The mapping editor opens and displays the mapping routine for Assign1.
Add v_CatalogOrder to the mapping routine as a source message:
On the mapping routine toolbar click the Add
a source message
icon. The Select Message window
opens.
The source message is added to the left side of the mapping routine area.
Add msg_DFH0XCMN_DFHCOMMAREA to the mapping routine as a target message. (This message is the input message used by the operation PlaceOrder).
On the mapping routine toolbar click the Add
a target message
icon. The Select Message window
opens.
The target message is added to the right side of the mapping routine area.
Create a mapping that copies the contents of v_CatalogOrder.itemNumber into msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_ITEM_REF_NUMBER.
The mapping editor creates a Move transform that copies the contents of the source variable into the target variable.
Create a mapping that copies the contents of v_CatalogOrder.itemQuantity into msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_QUANTITY_REQ.
The mapping editor creates a Move transform that copies the contents of the source variable into the target variable.
This tutorial uses the string 01ORDR as the request id. Create a mapping that stores the string 01ORDR into the target element msg_DFH0XCMN_DFHCOMMAREA.CA_REQUEST_ID:
On the target side of the mapping routine area right-click msg_DFH0XCMN_DFHCOMMAREA.CA_REQUEST_ID.
Click Create Transform.
Click the transform Assign if it is not already selected.
This tutorial uses the string JOE as the user ID. Create a mapping that stores the string JOE into the target element msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_USERID:
On the target side of the mapping routine area right-click msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_USERID.
Click Create Transform.
Click the transform Assign if it is not already selected.
This tutorial uses the string DEPT as the department ID. Create a mapping that stores the string DEPT into the target element msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_CHARGE_DEPT:
On the target side of the mapping routine area right-click msg_DFH0XCMN_DFHCOMMAREA.CA_ORDER_REQUEST.CA_CHARGE_DEPT.
Click Create Transform.
Click the transform Assign if it is not already selected.
Close the mapping editor.
Close the flow editor.