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

BAPI_ALM_ORDER_MAINTAIN lock issue while releasing order

0 Kudos

We are trying to create service order using BAPI BAPI_ALM_ORDER_MAINTAIN and then once order in created we are again releasing the order in loop.

This BAPI is called via oData service by third party system. When there are multiple orders sent in a single call then we are getting error as Order &1 is locked and cannot be changed. Has anyone faced similar issue and how was it resolved


Active Contributor
0 Kudos

Could you check that BAdI IBAPI_ALM_ORD_MODIFY is executed before the error, you could add an ENQUEUE lock with delay in a small DO/ENDDO loop to wait for other process to end (but that could cause some erformance problems too, e.g. user locking order with IW32)