Maintaining the HL Counters in a Transform Project

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.


Top of page

x
Procedure: How to Maintain the HL Counters in a Transform Project
  1. Expand the _856 tag in the Output pane.

    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.
  2. Right-click the _856 tag, select Add, and then select Group.

  3. Double-click the default name of the added group (OUTPUT_GROUP_NODE) and change it to inv_ship.
  4. Use the position icons (Move Up and Move Down) on the toolbar (or right-click and select from the control menu) to position the new inv_ship group below the DTM segment.

  5. Click and drag the SG0 loop into the inv_ship group.
  6. Right-click inv_ship and add a new group called inv_order.

  7. Right-click and copy the SG0 loop, and then right-click and paste the sub-tree under inv_order.
  8. Right-click inv_order and add a new group called inv_pack.
  9. Right-click and copy the SG0 loop, then right-click and paste the sub-tree under inv_pack.
  10. Right-click inv_pack and add a new group called inv_item.
  11. Right-click and copy the SG0 loop, and then right-click and paste the sub-tree under inv_item.

    When you are finished, the Output pane now has the following structure:


iWay Software