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: 

Locking issue - Release Item & Header or Release Header or Item first ?

Former Member
0 Kudos
190

Hi Friends,

I am creating STO using 'BAPI_PO_CREATE1'. As soon as the STO is created, Delivery will be created automatically using configuration. But some time, I am getting the Incomplete delivery (line item in Delivery < line item in STO).

I found the Reason for this as locking issue. MAterila is being locked even after teh STO creation. I am using BAPI_TRANSACTION_COMMIT with wait. still the lock entry is coming for some time.

So, I thought of explicitly releasing the lock after commit work using 'DEQUEUE_EMEKKOE' & 'DEQUEUE_EMEKPOE'.

But I am not sure with the order. Could some one tell me the order , I need to call these FM.

Release Item & Header or Release Header & Item?

Regards,

Sasikanth SM

3 REPLIES 3

Former Member
0 Kudos
89

Moderator message - When closing old threads, there is no need to add a comment. Adding a pasted answer like "resolved" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved. Rob

0 Kudos
89

Hi Rob,

sorry for that... I will take care in future.

Hi friends,

can some one help me?

0 Kudos
89

use wait function in sap

Ex: WAIT 10 SEC. LIKE THAT.