‎2010 Jan 19 6:15 AM
Dear All,
I have one query for sm04.I want to know that in sm04,we can see no. of users logged in sap..Now in which table dynamically it will store.when i generate any report i want to dispaly that no of users login.
Regards
shivam.
‎2010 Jan 19 2:55 PM
‎2010 Jan 19 2:55 PM
‎2010 Jan 19 4:01 PM
Hi Shivam ,
You can use trace ST05 and get the database tables from which records are fetched.
Switch on trace before execution of SM04 and check the DB table list.
Hope this helps you.
‎2010 Jan 19 6:02 PM
Hi Shivam,
You can use Fm TH_USER_LIST to get the list of users currently logged in.
one more alternative,
report abc.
data : uinfo type table of UINFO2 with header line.
data : uniqueusers type table of uinfo2 with header line.
CALL FUNCTION 'TH_LONG_USR_INFO'
EXPORTING
USER = '*'
TABLES
USER_INFO = uinfo.
loop at uinfo.
uniqueusers-user = uinfo-user.
collect uniqueusers.
endloop.
describe table uniqueusers.
write 😕 sy-tfill.
Hope it helps you,
Regards,
Abhijit G. Borkar
‎2010 Jan 19 6:19 PM
REPORT ZUSERLIST .
Parameters: pa_server like MSXXLIST-NAME.
Data: it_list type table of UINFO .
data:wa type uinfo.
CALL FUNCTION 'TH_USER_LIST'
EXPORTING
APSERVER = pa_server
TABLES
LIST = it_list.
Loop at int_list into wa.
write: wa-BNAME.
ENDLOOP.