asntoedi example notes
Points to be aware of when using the anstoedi example.
The anstoedi example output is generated from input that contains fixed formatted header and detail records.
The LAST index generates the correct HierarchicalID Element, which must increment by one for each HL Segment in the hierarchy being built, as shown here:
ST*856*1
BSN*00*000000084*940111*1427
HL*1**S <- HierarchicalID Element of this shipment = 1,
no parent
TD1*BOX*1
HL*2*1*I <- HierarchicalID Element of this item = 2,
parent shipment is 1
HL*3*1*I <- HierarchicalID Element of this item = 3,
parent shipment is 1
HL*4*1*I <- HierarchicalID Element of this item = 4,
parent shipment is 1
HL*5**S <- HierarchicalID Element of this shipment = 5,
no parent
TD1*BOX*1
HL*6*5*I <- HierarchicalID Element of this item = 6,
parent shipment is 5
HL*7**S <- HierarchicalID Element of this shipment = 7,
no parent
TD1*BOX*1
HL*8*7*I <- HierarchicalID Element of this item = 8,
parent shipment is 7
HL*9*7*I <- HierarchicalID Element of this item = 9,
parent shipment is 7
HL*10*7*I <- HierarchicalID Element of this item = 10,
parent shipment is 7
CTT*7
SE*17*1