‎2013 Jan 21 7:18 PM
Hi
Is it possible to create multiple order with BAPI , BAPI_ALM_ORDER_MAINTAIN?
Thanks and Regards,
Sijin K P.
‎2013 Jan 21 7:54 PM
Yes it is.
Refer following links where they explain how it is done.
http://scn.sap.com/thread/3225925
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