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

Locked Objects

Former Member
0 Likes
608

Hi there gurus !

If you could please help ... is there a way that I can see which program/ transaction was used to lock an object ?

When I go into SM12 I can see that it's a batch job, but I can't see what job.

Much aprreciated !

Maré

1 ACCEPTED SOLUTION
Read only

Subhankar
Active Contributor
0 Likes
569

Hi..

You can't get the details in one shot.

Check the user name who locked the object from SM12.

Then go to SM50 and check what are the program or jobs are running for that user. If only one process is running for that user then its fine. Directly you got the program name. if multiple processes are running then you need to check all programs which are running at that moment.

Thanks

Subhankar

4 REPLIES 4
Read only

Clemenss
Active Contributor
0 Likes
569

Hi,

generally, no.

You can find out the Check object and the user. You may do a where-used-list on the check object and then check the job steps running.

Regards,

Clemens

Read only

Subhankar
Active Contributor
0 Likes
570

Hi..

You can't get the details in one shot.

Check the user name who locked the object from SM12.

Then go to SM50 and check what are the program or jobs are running for that user. If only one process is running for that user then its fine. Directly you got the program name. if multiple processes are running then you need to check all programs which are running at that moment.

Thanks

Subhankar

Read only

Former Member
0 Likes
569

Hi,

Yes, you can get details through function module:- ENQUEUE_READ

Pass USER ID in GUNAME import parameter (If you don't know user id then pass *).

The value is Returned in ENQ table.

You can also delete lock item through FM:- ENQUE_DELETE

Thanks and Regards

Rahul

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
569

You can also check function enqueue_report