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

User mode transactions

Former Member
0 Likes
1,165

Is there a function or a table give me the transactions used by a user now?

I need to lock the access to a Z transaction if this is also used...

Thanks

cv

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,040

No... I need to know where I can find the data in the "sessions popup" of SM04. I use the function "THUSRINFO" for the user list but I need of the sessions details for knowledge transactions used by users in real time.

Thanks a lot.

7 REPLIES 7
Read only

Former Member
0 Likes
1,040

Hi,

Use Transaction SM04 to know the Current usage of Transaction for particular user.

You can Use transcation SM01 to lock any transaction.

Regards,

Raghava Channooru

Read only

Former Member
0 Likes
1,040

Yes I know, but the problem is I need to know the list of the used transaction in a Z program... I tried to execute SM04 in debug mode but I culd not understand where I can find these data...

Read only

0 Likes
1,040

Hi Cristiano,

Did you try ST03 - I think it will meet your requirement

Regards,

Raghava Channooru

Read only

Former Member
0 Likes
1,040

Hi,

You can try with AUT10 or SM20n

All these are BASIS important tcode.

Hope it helps.

Regards

Arbind

Read only

Former Member
0 Likes
1,041

No... I need to know where I can find the data in the "sessions popup" of SM04. I use the function "THUSRINFO" for the user list but I need of the sessions details for knowledge transactions used by users in real time.

Thanks a lot.

Read only

0 Likes
1,040

TH* is the right area, try calling TH_LONG_USR_INFO for every user in the list.

Thomas

Read only

Former Member
0 Likes
1,040

Ciao Sergio Galindo. Non trovo + i tuoi messaggi ma ti rispondo lo stesso.

Ho risolto così...

Fammi sapere se è tutto ok o se hai trovato qualcosa di meglio...

wmode = sy-modno + 1.

CALL FUNCTION 'TERMINAL_ID_GET'

EXPORTING

USERNAME = SY-UNAME

IMPORTING

TERMINAL = wterminal

EXCEPTIONS

MULTIPLE_TERMINAL_ID = 1

NO_TERMINAL_FOUND = 2

OTHERS = 3.

search wterminal for '-'.

if sy-subrc = 0.

wfdpos = sy-fdpos + 1.

wterminal = wterminal+wfdpos.

else.

MESSAGE i001(00) WITH 'Terminale non individuato'.

leave program.

endif.

refresh user_info.

CALL FUNCTION 'TH_LONG_USR_INFO'

EXPORTING

USER = '*'

TABLES

USER_INFO = USER_INFO.

read table user_info with key client = sy-mandt user = sy-uname mode = wmode

terminal = wterminal.

if sy-subrc ne 0.

MESSAGE i001(00) WITH 'Sessione/Modo non individuata'.

leave program.

else.

delete user_info index sy-tabix.

endif.

clear witrused.

loop at user_info where tcode = 'TRANSACTIONCODE'.

add 1 to witrused.

endloop.

if witrused > 0.

MESSAGE e001(00) WITH 'Transazione utilizzata da utente' user_info-user.

leave program.

endif.