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

Function Module called by SM04

Former Member
0 Likes
3,031

Hi,

I would like to get through an ABAP Program the current users logged to the system and all the transactions/sessions accessed by each user.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,788

Hi,

Check this Function Module

TH_GET_PLUGIN_INFO

Pls reward points if helpful.

9 REPLIES 9
Read only

Former Member
0 Likes
1,789

Hi,

Check this Function Module

TH_GET_PLUGIN_INFO

Pls reward points if helpful.

Read only

Former Member
0 Likes
1,788

TRY SEARCHING IN SE38 WITH RSS*.

RSSCD100 WILL GIVE US A OUTPUT OF ALL THE TRANSACTION CODES CHANGED BY USER DURING A PARTICULAR PERIOD OF TIME.

Read only

Former Member
0 Likes
1,788

TRY SEARCHING IN SE38 WITH RSS*.

RSSCD100 WILL GIVE US A OUTPUT OF ALL THE TRANSACTION CODES CHANGED BY USER DURING A PARTICULAR PERIOD OF TIME.

Read only

Sm1tje
Active Contributor
0 Likes
1,788

In our system (NW release) it is this report: RSM04000_ALV.

Read only

Former Member
0 Likes
1,788

Would you know the FM called by RSM04000_ALV to show the data ?

Read only

Former Member
1,788

Hi Micky/ Nilanjana,

Micky - Would you know the FM called by RSM04000_ALV to show the data ?

Nilanjana - What should be the input of FM TH_GET_PLUGIN_INFO ?

Thanks Again !!

Read only

0 Likes
1,788

It makes a system call like this (NO Function module since this is on kernel level):

call 'ThUsrInfo' id 'OPCODE' field opcode_list

id 'TABUSR' field usr_tabl-sys .

opcode_list => constant value '2' declared in include TSKHINCL.

usr_tabl like this, declared in include RSUSRCOM:

DATA: BEGIN OF USR_TABL OCCURS 10.

INCLUDE STRUCTURE USRINFO.

DATA: END OF USR_TABL.

Read only

0 Likes
1,788

Thanks again Micky ! I made some test using the code you provided and I was able to retrieve the data shown in SM04. However, I am also interested on the data shown when you click the button "Sessions" in SM04. I debugged the SM04 transaction but ran through the code which creates the popup where the additional session details are listed:

call screen 2000 starting at 4 4 ending at 62 modes.

But when I debug or display the screen itself, I cannot go any further. There is a module MODULE SYST-OKOPO in the PBO of the screen but when I double click it, the system will say that the object does not exist.

When you say kernel level, is there a way I can replicate the logic ?

Appreciate your help on this !!

Thank you very much !!

Read only

Former Member
0 Likes
1,788

What should be the input of FM TH_GET_PLUGIN_INFO ?