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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Release lock after creating Salesorder through BAPI

naresh_kumar2
Explorer
0 Kudos

hi ,

i have a program for creating Quick Order.

means at one button click we need to created VA01 -> VL01N -> PGI -> VF01.

im creating Salesorder through BAPI BAPI_SALESORDER_CREATEFROMDAT2.

after creating order i am creating Outbound delivery through BAPI BAPI_DELIVERYPROCESSING_EXEC.

When im trying to create OBD with ref to SALESorder through BAPI ,i getting Error Message LIke

'Object is lock by the current User'.

i have used DEQUEUE_ESORDER to release the object but still i facing same error .

Can One tell me how to release this object .

thanks in Advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Try to use COMMIT WORK {and wait} so that all the locks are passed to the update program for release.

After calling the BAPI at each stage/before the final BAPI which is giving an error.

Regards,

Shiva

2 REPLIES 2

Former Member
0 Kudos

Hello,

Try to use COMMIT WORK {and wait} so that all the locks are passed to the update program for release.

After calling the BAPI at each stage/before the final BAPI which is giving an error.

Regards,

Shiva

naresh_kumar2
Explorer
0 Kudos

thank you