This section describes how to map the ITEM detail.
- In the
Output Tag Properties dialog box for the SG5 segment, set the context and
looping.
- Map the Integer
of the IDoc line number value to the IT101 segment.
- If the length
of the Unit of Measure is greater than 0, map to the IT102 segment, else
map the constant EA.
@IF(@LEN(INVOIC02/IDOC/E1EDP01/MENEE) > '0',' INVOIC02/IDOC/E1EDP01/MENEE','EA')
- Trim leading
spaces from the unit price and map it to the IT103 segment.
- Add an output
group node to the IT1 segment and rename it to OUTPUT_GROUP_NODE.
- Use the Move
Up option to position the new output group node under the IT104 segment.
- In the Output
Tag Properties dialog box for the output group node, set the following properties:
- Add an output
group node to the IT1 segment and rename it to OUTPUT_PARENT_TAG.
- Use the Move
Up option to position the new output group node under the IT105 segment.
- In the Output
Tag Properties dialog box for the output group node, set the following properties:
- Add an output
group node to the IT1 segment and rename it to OUTPUT_GROUP_NODE.
- Use the Move
Up option to position the new output group node under the IT106 segment.
- In the Output
Tag Properties dialog box for the output group node, set the following properties:
- Add an output
group node to the IT1 segment and rename it to OUTPUT_PARENT_TAG.
- Use the Move
Up option to position the new output group node under the IT107 segment.
- In the Output
Tag Properties dialog box for the output group node, set the following properties:
- Map the Qualifier
to the IT106 segment.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '001',' IN','')
- Map the value
to the IT107 segment.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '001',' INVOIC02/IDOC/E1EDP01/E1EDP19/IDTNR ','')
- Map the qualifier
constant to the IT108 segment.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '003',' IN','')
- Map the IDoc
value to the IT109 segment.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '003',' INVOIC02/IDOC/E1EDP01/E1EDP19/IDTNR ','')
Your iWay Transformer
interface should resemble the following: