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 in WS_DELIVERY_UPDATE_2

Former Member
0 Kudos
2,679

Hi ,

We are using function module WS_DELIVERY_UPDATE_2 to do PGI of delivery but we are getting error message 'The requested object is locked by another transaction' , Description of error is as follows :

A lock requested by calling an ENQUEUE function module cannot be provided because the object in question has already been locked by its own transaction.

Technical Information: The C_ENQUEUE routine returns the following values:

COLLISION_OBJECT = ECSL_MTLK

COLLISION_UNAME = C332595KP

Any pointers to resolve this issue would be highly helpful .

Thanks in advance,

Kiran.

3 REPLIES 3

Former Member
0 Kudos
828

Hi,

You can use t-code SM12 to release the locks. But before that please make a note of which is the call locking the object so that you can be sure whats causing the lock.

Regards,

Former Member
0 Kudos
828

Check the parameter NICHT_SPERREN_1 passed to the function module. Passing a Y to this parameter prevents locking of the preceeding document within the function module. you may need to check what is causing the lock. Is it a lock within your process that is trying to lock again ? either way check the parameter and try it out.

Former Member
0 Kudos
828

COLLISION_OBJECT = ECSL_MTLK indicates that it is a cross system lock (CSL) it is a lock across systems or across transactions. For example SAP system & CRM system.

To monitor CSL locks, use transaction SMCL.

Refer to the documentation on CSL locking for further information.

Manoj