I am having a problem with 856 to flat file. I have three "HL" levels. When the file is translated everthing is okay until it reaches the HL*4*1*O*1 level it creates a new Item output record and places the data in the "LIN" tag in the same position as the "LIN" tag it would use for the output Item record. It does write the remaining Order level records to the correct Order output record. It is just the "LIN" tag that is used in the Order HL and Item HL.
HL*1**S*1
....EDI Records..... -> Out to shipment record (Okay)
HL*2*1*O*1
LIN**VO*ORDER1*VN*01 -> Out to order record (Okay)
....EDI Records..... -> Out to order record (Okay)
HL*3*2*I*0
LIN**SN*SERIALNO1*HN*HEATNO1 -> Out to item record (Okay)
....EDI Records..... -> Out to item record (Okay)
HL*4*1*O*1 -> Problem starts
LIN**VO*ORDER2*VN*09 -> Puts this information out to NEW ITEM RECORD in the same position as "SERIAL01" AND "HEATNO1" (NOT Okay).
....EDI Records..... -> Out to order record (Okay)
HL*5*4*I*0
LIN**SN*SERIALNO5*HN*HEATNO5 -> Out to item record (Okay)
....EDI Records..... -> Out to item record (Okay)
Thanks in advance for any help!!
HL*1**S*1
....EDI Records..... -> Out to shipment record (Okay)
HL*2*1*O*1
LIN**VO*ORDER1*VN*01 -> Out to order record (Okay)
....EDI Records..... -> Out to order record (Okay)
HL*3*2*I*0
LIN**SN*SERIALNO1*HN*HEATNO1 -> Out to item record (Okay)
....EDI Records..... -> Out to item record (Okay)
HL*4*1*O*1 -> Problem starts
LIN**VO*ORDER2*VN*09 -> Puts this information out to NEW ITEM RECORD in the same position as "SERIAL01" AND "HEATNO1" (NOT Okay).
....EDI Records..... -> Out to order record (Okay)
HL*5*4*I*0
LIN**SN*SERIALNO5*HN*HEATNO5 -> Out to item record (Okay)
....EDI Records..... -> Out to item record (Okay)
Thanks in advance for any help!!