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.
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