‎2004 Jun 10 9:05 PM
I want to query user sessions and then close one based on my findings. I've looked at code in RSM04000, but the specific session info and closing functionality appear to be hidden in system modules.
‎2004 Jun 14 6:06 PM
Paul,
There are utility function modules which can be used for your purpose. But be cautious in using them appropriately.
TH_USER_LIST
TH_DELETE_USER
FYI.
Thanks,
Bala
‎2004 Jun 16 6:55 PM
Unfortunately, I only want to close a single window in the user's session not delete all windows.
‎2004 Jun 16 9:18 PM
I found the code I needed in these modules:
DATA: USRTAB LIKE UINFO OCCURS 1 WITH HEADER LINE,
MODE TYPE I,
OPCODE TYPE X.
CALL FUNCTION 'THUSRINFO'
TABLES
USR_TABL = USRTAB.
LOOP AT USRTAB WHERE BNAME = SY-UNAME.
IF USRTAB-TCODE = 'ME23'.
OPCODE = 25.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
ID 'TID' FIELD USRTAB-TID.
ENDIF.
ENDLOOP.
‎2004 Jun 17 11:55 AM
Hallo Paul,
have you check if your code is working, if the user is log on to a different AppServer?
Regards,
Oliver