Skip to Content
author's profile photo Former Member
Former Member

orders creation from flat file

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 06, 2009 at 06:37 AM

    Hi,

    I don't see the problem.

    Please do not ask basic programming questions here - go to [Vbasic for beginners forum|http://www.google.co.kr/search?hl=de&source=hp&q=Vbasicforbeginners+forum&btnG=Google-Suche&meta=], thank you.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.