Skip to Content
0
Former Member
Oct 06, 2009 at 06:32 AM

orders creation from flat file

23 Views

experts

I am having a flat file like below

hd ponumber customer number podate delivery date

it material1 materialtext quantity price plant

it material2 materialtext quantity price plant

it material3 materialtext quantity price plant

hd ponumber customer number podate delivery date

it material1 materialtext quantity price plant

it material2 materialtext quantity price plant

it material3 materialtext quantity price plant

so here hd represents the header data and it represents the item data for the above header.

so in above i am having 2 sales orders data.

the only way that i can distinquish is with the field hd and it ie what is header and what is item.

I want to pass only one set of data to the idoc function to create the order.

so i want to pass the header and relevant item info.

my itab internal table is having all the data in the above format.

loop at itab into waitab.

*at end of field1 " is not working

here i will be populating the header and item data to create one sales order.

endloop.

so please tell me how to pass at a time one set of data ie header data and relevant item data then next time again header and relevant item data. please help

this is similar to below theread, but belwo theread is using po number but here i dont have that sepearation

order creation logic how to pass line items