Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gentran level/record mapping problem

Status
Not open for further replies.

cleer

Programmer
Apr 7, 2004
1
US
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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top