How to: |
You can maintain the ASN level numbers and the parent level numbers using iWay Integration Tools (iIT). The example that is used is a four-level SOPI ASN. You can easily change the number or type of levels if required. For more information, see Flattening the Output Structure.
This approach uses standard functions that are available in iIT. It also uses variables in iIT, which are evaluated at design time and run time.
An example of the sample output document can be viewed in The Final Results.
The HL structures need to be nested in the XML output in order to produce the loops properly. This nesting allows you to know which level you are working in without tracking the level value itself.
You can enrich the output structure with hidden parent group tags to make the looping easier to follow. You can also add a group to be used to count the number of total cartons.
When you are finished, the Output pane now has the following structure:
iWay Software |