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

How to determine whose user is using a specific transaction code?

Former Member
0 Likes
728

Hi to all!

I have a simple problem.

Stated at the title. For example, I want to know whose User makes OB52 locked. I am actually coding it in one of my report.

Is there a table wherein I can check whose User uses T-code OB52?

I have tried using BDC but the messages it gave me does not have the information that I need.

Anybody here can help me?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

Hi

U can check trx SM12 in order to find out all locks active, in particular who is lock the table RSTABLE and object T001B

Max

4 REPLIES 4
Read only

Former Member
0 Likes
660

Hi

U can check trx SM12 in order to find out all locks active, in particular who is lock the table RSTABLE and object T001B

Max

Read only

0 Likes
659

Hi Max,

Thanks for your answer, it is really helpful.

I've tried SM12, it gives me all the tables that is locked at a specific time but only need to determine whose User is using T-code OB52. Is there a program like SM12 where in the import parameter is a Table ex. T001B?

I actually need to do it in ABAP. Is there a FM that I can use?

Read only

0 Likes
659

Hi

I've seen the abap code run by trx SM12 and it seems the main function module is ENQUEUE_READ: this returns the active lock.

Try to test that fm by SM37:

GNAME = RSTABLE

GARG = T001B*

GUNAME = *

Max

Read only

0 Likes
659

Thanks Man!

It really gives me the username that I need.

It solved it!

Thanks!!