Anyone using Celigo for X12 EDI?
In the sample below, there are 4 different Hierarchical Levels represented
Two things I need to do when mapping these segments.
- Establish and maintain a counter throughout a Shipment that is accessed, written out to the HL01 element and incremented for the next one.
- Establish the proper parent HL number to be written out for each subordinate HL
A shipment may have many Items in a Pack, many Packs in an Order and many Orders in a Shipment.
The HL segments are used to structure the document with a single Shipment level per ASN, all Orders pointing back to the Shipment level as their parent, many Packs pointing back to their Order level as their parent and many Items pointing back to their Pack level as the parent.
HL-S*1**S
HL-O*2*1 - 1= parent HL
HL-P*3*2 - 2 = parent HL
HL-I*4*3 - 3 = parent HL
HL-P*5*2 - 2 = parent HL
HL-I*6*5 - 5 = parent H"L
Sample Output:
BSN*00*WLD0314938*20240927*0930*0001 ~ Shipment Id here - BSN02 = "WLD0314938"
HL-S*1**S~ (Shipment)
DTM*011*20240927~
HL-O*2*1*O~ (Order)
PRF*P00815403~ *** Customer PO Number
HL-P*3*2*P~ (Pack)
MAN*GM*00007111061143120875**CP*NA~ **** Carton ID Number
HL-I*4*3*I~ (Item)
LIN*1*SK*LPC68EBGH1***UP*711106926872~ **** Item data
SN1**1*EA~
HL-P*5*2*P~ (Pack) ***** Second Carton Id)
MAN*GM*00007111061143120868**CP*NA~ ***** Second Carton Id
HL-I*6*5*I~ (Item)
LIN*2*SK*LPJRSC57HATVNH1***UP*711106050287~ **** Second Item Data
SN1**1*EA~
Thanks in advance.