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

FM to get list of program / tcode executed by user ?

Former Member
0 Likes
5,423

Hi,

is there any FM can use to see which program / t-code currently executed by user similar like 'sm04'. I have found 1 FM "TH_SYSTEMWIDE_USER_LIST" but this FM cannot see if the user run more than 1 program.

basically, it is similar like 'sm04' and double click on the t-code so you will be able to see list of the program executed by user.

Please advise.

Thank You and Best Regards

Fernand

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,171

HI Fernand,

Try the FM TH_LONG_USR_INFO.

Filippo

Hi,

is there any FM can use to see which program / t-code currently executed by user similar like 'sm04'. I have found 1 FM "TH_SYSTEMWIDE_USER_LIST" but this FM cannot see if the user run more than 1 program.

basically, it is similar like 'sm04' and double click on the t-code so you will be able to see list of the program executed by user.

Please advise.

Thank You and Best Regards

Fernand

10 REPLIES 10
Read only

Former Member
0 Likes
3,171

Hi Fernad,

Just try it out,

TH_DISPLAY_USER_LIST

TH_READ_USER_TRACE

TH_REMOTE_USER_LIST

TH_USER_LIST

What are the essential parameters you have with you to find the details

The case of Remote User is also considered.

Thanks

Sri

Read only

Former Member
0 Likes
3,171

check out TA STAD

Read only

peter_ruiz2
Active Contributor
0 Likes
3,171

Hi Fernand,

TH_USER_LIST will give you what you need.

Regards,

Peter

Read only

0 Likes
3,171

Hi Peter,

I can see my user using TH_USER_LIST but i cannot see all the t-code that i have opened within 1 session.

it is similar like you open sm04 and double click on the your session it will popup new window with list of the program that executed.

Thank You and Best Regards

Fernand

Read only

0 Likes
3,171

Hi Fernad,

If you try to open SM04, the same thing will appear. you will see your user id once and there is a column/field (EXTMODI) where you would see the number of sessions opened.

Calling the FM TH_DISPLAY_USER_LIST will give you a screen which is the same screen that you will see in SM04. With FM TH_USER_LIST, it will return a table that contains the details shown in SM04 and it is up to on how you want it displayed on screen.

Regards,

Peter

Read only

Former Member
0 Likes
3,172

HI Fernand,

Try the FM TH_LONG_USR_INFO.

Filippo

Read only

0 Likes
3,171

Thank You Filipo, That what I want. I can see all the t-code executed by user in details.

Best Regards

Fernand

Read only

0 Likes
3,171

Is there a remote enabled fm that does the same thing?

Read only

matt
Active Contributor
0 Likes
3,171

You can always write one that just calls TH_LONG_USR_INFO. Define it with the same parameters and job done.

Read only

Former Member
0 Likes
3,171

Hi,

Try transaction STAT. Hope this might help you out.

Thanks.