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

ENQUEUE FM

Former Member
0 Likes
449

I have creaed a custom table with DB locking. And I have a separate program using an Editbale ALV grid to update this table. I have used the ENQUEUE FM created with my DB locks to lcok the table whilst a user is in the transaction. Whcih works fine, but is there any way to find out the user that is locking the table - all the FM returns is a return code of 1 (foreign lock)???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

Hello,

Please check system variables:

sy-msgv1 and sy-msgv2

which should contain user name who is locking the record.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
398

Hello,

Please check system variables:

sy-msgv1 and sy-msgv2

which should contain user name who is locking the record.

Thanks.

Read only

craig_scott2
Explorer
0 Likes
397

Transaction SM12 will show you any active table locks and the user locking them.