Mapping HL segments

Hi folks,

I need to map an EDI X12 4010 856 (Advance Ship Notice) document.

From:
HL[0]
HL[1]
HL[2]
HL[3]
HL[4]
HL[5]
HL[6]
HL[7]
HL[8]
HL[9]
HL[10]

To:
Shipment
Order
Pallet
Item
Pallet
Item
Pallet
Item
Order
Pallet
Item

Since the HL segment is a list, how can I control the flow when the second orders starts?

Thanks in advance,
maldonado

Generally HL03 indicates what kind of record you’re dealing with.
So apart from looping on the HL segments you also need to branch on the HL03 code.

Shubhro

Hello,

Yemi Bedu