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 and Unlocking an Object

Former Member
0 Kudos

Hi all,

I have a requirement of chaging the characteristics of the Equipment but when i use the BAPI BAPI_OBJCL_CHANGE by passing the Equipment number and the required values i get a return message saying that the equipment is locked by User WF-BACTH but when i open the same equipment using the IE02 i do not see any locks........

i want to know the funstion modules which can be used to put a lock and unlock an Equipment...........

Regards,

Ravi G

2 REPLIES 2

Former Member
0 Kudos

hi Ravi,

Use ENQUE & DEQUE function modules for locking and unlocking the objects.

search for them in SE11.

Chandra

Former Member
0 Kudos

hI

Enqueue and Dequeue using BAPI can be used to lock an object.

For example :

If we need to lock and employee number to be edited only by the person who set the lock, we can use a BAPI.

Do read the documentation of 'BAPI_EMPLOYEE_ENQUEUE'. It will give you a better idea of how to implement Enqueue for a BAPI.

Refer the link -