I have a an 856 to create and need to increment a number in the HL segments. The problem is that the HL segment type required me to create 4 different HL loops, where I use functional maps of one inside the other. Shipments calls Orders, Orders calls Packages and Packages calls Items. All four of these loops needs to increment the HL segment, how can I do this without repeating the same number.
i.e
Shipment Orders Packages Items
HL*1
HL*2
HL*3
HL*4
HL*5
HL*6
HL*7
HL*8
HL*9
HL*10
HL*11
i.e
Shipment Orders Packages Items
HL*1
HL*2
HL*3
HL*4
HL*5
HL*6
HL*7
HL*8
HL*9
HL*10
HL*11