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

Create multiple order using BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
988

Hi

Is it possible to create multiple order with BAPI , BAPI_ALM_ORDER_MAINTAIN?

Thanks and Regards,

Sijin K P.

1 REPLY 1
Read only

Former Member
0 Likes
543

Yes it is.

Refer following links where they explain how it is done.

http://scn.sap.com/thread/3225925

http://www.benx.de/benx(bD1lbiZjPTAwMQ==)/de/index.do?onInputProcessing(brai_thread)&001_thread_id=1...

Two things to remember here,

1) When creating multiple orders you need to clear the buffer/flag. (There are a flag that is not cleaned after each call to the bapi.)

Use FM

I found a function which cleans it:

CALL FUNCTION 'PERMIT_INIT_AFTER_POST'.

2) After each BAPI call to create order you need to use the FM 'BAPI_TRANSACTION_COMMIT'.

Executing function module BAPI_TRANSACTION_COMMIT after executing the

method ensures that the data is updated in the database.

best regards,

swanand