Skip to Content
G S

Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI

Guys,

I am facing a problem while using BAPI_SALESORDER_CREATEFROMDAT2 BAPI in a program.

I am filling up header data order_header_in = lwa_header_in. For lwa_header_in-purch_no_c = lwa_success-tracking_num from flat file,

we have to pass different purchase order no. So we are using loop.

The requirement is, we have to avoid the loop to fill up header data. How to do that?

Regards,

Shyamal.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 02, 2014 at 03:43 PM

    Hi.

    You can't use the bapi at once time for several headers orders.

    You can figure out this limit by launching BAPI from SE37. The ORDER_HEADER_IN structure parameter in input, accept only 1 row.

    In your situtation you should adopt SERIALIZATION, by calling n times the function module in the same session. That's a little more complicated but makes a difference in performance.

    Hope to help

    Bye

    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.