Hi Experts,
I have a flat file to EDI mapping, here is the screenshot to give you quick idea. Record 005 and 006 are repeating. for each 005 there will be multiple 006 records. 005 will go under S_PO1 and 006 will go under S_PID. There are multiple orders in input file and i am creating individual file for each order
All input records (001 to 006) has Vendor, PO_Number, RecordType, Line number fields in the beginning. I want to map 006/PO_Desc to ./S_PID/D_750. so that under one PO1 there will be multiple PID (depends on how many 006 records are there in input file). I have tried multiple options however not able to break the context on each 005.
Input Data beginning fields | output structure (Expected output) |
---|---|
00040008044500117909 0010001 00040008044500117909 0020001 00040008044500117909 0030001 00040008044500117909 0030001 00040008044500117909 0050001PO115EA375 00040008044500117909 0060001Description 1 00040008044500117909 0060001Description 2 00040008044500117909 0050001PO2112EA375 00040008044500117909 0060001Description 1 00040008044500117909 0060001Description 2 00040008044500117909 0060001Description 3 |
PO1*1*15*EA*37.5*CT*PI*XXXX*VP*XXXXX PID*F****Description 1 PID*F****Description 2 PO1*2*12*EA*37.5*CT*PI*XXXXXX*VP*XXXXXX PID*F****Description 1 PID*F****Description 2 PID*F****Description 3 |