Application Development and Automation 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: 
Read only

unlock transaction

Former Member
0 Likes
905

I am doing a transaction that has to be locked and unlocked by user when entering, but i have realized that sometimes the users go off the transaction by clicking the 'x' in the right corner, or using '/n', is there an event that activate when the user leave the transaction, how does sap manage it?

Thanks in advance

1 ACCEPTED SOLUTION

I am doing a transaction that has to be locked and unlocked by user when entering, but i have realized that sometimes the users go off the transaction by clicking the 'x' in the right corner, or using '/n', is there an event that activate when the user leave the transaction, how does sap manage it?

Thanks in advance

5 REPLIES 5
Read only

hymavathi_oruganti
Active Contributor
0 Likes
840

this is the concept of lock objects and LUW.

when any user is in change mode of a transaction, then it will be locked for change. and once he comes out, again available.

if any two users can be able to update a table from transaction at the same time, it will be messy. so the concept lock objects and LUW (all or none has come).

Read only

0 Likes
840

But i am user a z transaction, that can have several users

Read only

0 Likes
840

u have to create lock objects in se11 with naming convention ez or ey.

after that call the fn modules in the program connected to the transaction, enqueue_<lockobjectname>,

dequeue_<lockobject>.

Read only

Former Member
0 Likes
840

Hi Carl

You should active a lock in the program linked to that transaction.

Max