Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI to create multiple Internal Orders

former_member669323
Discoverer
0 Likes
3,359

Hi,

I am having a requirement to create multiple internal orders in KO01 transaction. I found that BAPI_INTERNALORDER_CREATE can be used to create single order at a time.

Could you please suggest a BAPI that could allow to pass internal table as input so that, creation of multiple internal order is possible. It would help us to increase the performance to a greater extent.

Thanks,

Hariharan Ravichandran

5 REPLIES 5
Read only

sveabecker
Product and Topic Expert
Product and Topic Expert
0 Likes
2,769

Thank you for visiting SAP Community to get answers to your questions. Please add more details to your question so that you can reach a broader range of experts to get your question answered. I also recommend to do this tutorial https://developers.sap.com/tutorials/community-qa.html

The more details you provide, the more likely it is that members will be able to assist you.

Regards, Svea

SAP Community moderator


----- Stay up-to-date with SAP Community and subscribe to What's New today! -----
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
2,769

Hello hariharan_93

I don't think you are going to find an function release for customers to mass create internal orders. As you noticed BAPI_INTERNALORDER_CREATE creates single internal order only.

The BAPI uses internally KAUF_ORDER_CREATE function that also create a single internal order only.

I guess you'll have to stick to individual creation.

Best regards

Dominik Tylczynski

Read only

2,769

hariharan_93 As there is only a BAPI to create one order at a time, as your requirement is "It would help us to increase the performance to a greater extent", you can:

  • Analyze why the performance is bad.
  • Call the BAPI in parallel threads.
Read only

0 Likes
2,769

Hi sandra.rossi

Those are sound recommendations. I wonder if the performance is really such an issue here. I don't see mass creation of internal orders to be performed on ongoing basis. It's more of a one time or once in a period task.

Read only

2,769

The OP's main concern is the performance. Based on the fact that there's only a BAPI to create one order at a time, the workaround is then to either solve the performance issue by analyzing the cause (e.g. database missing index, etc.) or create the internal orders in parallel threads.

NB: I initially misunderstood "sound", it's why I seem repeating myself, but it's fine now 😉