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

Program to extract user list from SM12

Former Member
0 Likes
1,914

Hi experts,

Need one help to get a list of users who are currently having a lock entry in SM12 based on a lock argument. Is this possible to input the lock argument and get a list of such users through some function module or table lookup in batch mode ? I need to send a message via SM02 programmatically to all such users.

Thanks,

Neeraj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,616

Hi Neeraj,

Try the FM:

ENQUEUE_READ

Regards,

Ravi

Hi experts,

Need one help to get a list of users who are currently having a lock entry in SM12 based on a lock argument. Is this possible to input the lock argument and get a list of such users through some function module or table lookup in batch mode ? I need to send a message via SM02 programmatically to all such users.

Thanks,

Neeraj

6 REPLIES 6
Read only

Former Member
0 Likes
1,617

Hi Neeraj,

Try the FM:

ENQUEUE_READ

Regards,

Ravi

Read only

venkata_ramisetti
Active Contributor
1,616

Hi,

YOu just use the function module ENQUEUE_REPORT , it will return a table with all lock entries and the correpsonding users.

Thanks,

Ramakrishna

Read only

0 Likes
1,616

its absolutely useful. Thanks.

Read only

Former Member
0 Likes
1,616

Thanks all. Both the function modules works like a charm. Do you know what is the difference between the 2 suggested function modules ?

Thanks again,

Neeraj

Read only

0 Likes
1,616

ENQUEUE_REPORT internally calls the fm ENQUEUE_READ.

ENQUEUE_READ has two extra parameters in its import section.

Regards,

Ravi

Read only

0 Likes
1,616

Thanks Ravi,

Regards,

Neeraj