This section describes how to map the ITEM detail.
Baseline Invoice Item Data (IT1)
- 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 IT102 element.
@INT(INVOIC02/IDOC/E1EDP01/MENGE)
- If the length
of the Unit of Measure is greater than 0, map to the IT103 element, otherwise,
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 IT104 element.
@LTRIM(INVOIC02/IDOC/E1EDP01/VPREI)
- 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 element.
- 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 element.
- In the Output
Tag Properties dialog box for the OUTPUT_PARENT_TAG, 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 element.
- 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 element.
- In the Output
Tag Properties dialog box for the OUTPUT_PARENT_TAG, set the following
properties:
Your iWay Integration
Tool interface should resemble the following image:
- Map the Qualifier
to the IT106 element.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '001',' IN','')
- Map the value
to the IT107 element.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '001',' INVOIC02/IDOC/E1EDP01/E1EDP19/IDTNR ','')
- Map the qualifier
constant to the IT108 element.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '003',' IN','')
- Map the IDoc
value to the IT109 element.
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '003',' INVOIC02/IDOC/E1EDP01/E1EDP19/IDTNR ','')
Your iIT interface
should resemble the following image:
Product Item Description Segment (PID)
- In the
Output Tag Properties dialog box for the SG6 segment, set the looping.
- In the Output
Tag Properties dialog box for the PID segment, set the following properties:
- Add an output
group node to the PID segment and rename it to OUTPUT_PARENT_TAG.
- In the Output
Tag Properties dialog box for the output group node, set the following properties:
- Map a constant
F to the PID01 element.
- Map the following
to the PID05 segment:
@IF(INVOIC02/IDOC/E1EDP01/E1EDP19/QUALF == '002',INVOIC02/IDOC/E1EDP01/E1EDP19/KTEXT,'')
Your iIT interface
should resemble the following: