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: 

Unlock PO

Former Member
0 Kudos

Hi,

I want to release service entry sheet associated with a Purchase order. I am using 'BAPI_ENTRYSHEET_RELEASE'' to release the Service entry sheet.

The issue here is when a PO has multiple service entry sheet associated with it, this BAPI releases the first one and for all other ones it errores out saying 'PO is being processed by <user>' where as PO is not locked by any one.

I used BAPI_TRANSACTION_COMMIT passing 'X' after this BAPI but still this error is coming up.

Let me know how can this be handled. I was thinking of explicitly releasing the lock on PO after BAPI gets executed.

Regards,

Shahu

2 REPLIES 2

Former Member
0 Kudos

Verify through t-code SM12 that no database locks exist that you have not seen yet.

Former Member
0 Kudos

Resolved this by adding wait of 3 seconds.