Skip to Content

User Session Information

Hello,

how to read session information of a User,

such as

User,

session id

Transaction

prorgam

is there any function module for this

Regards

Ramakrishna Reddy

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 18, 2010 at 12:00 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello friend,

      you can get the termial id by using by using FM THUSRINFO

      then pass this to FM TH_SHOW_USR_DETAILS... you will get all deatils

      or directly use FM: TH_GET_SESSION_ID

      this will directly give you session id

      or you can use following code:

      REPORT  ZTEST1.
      
      TYPE-POOLS: slis.
      
      PARAMETERS: use TYPE usrinfo-bname.
      TABLES:
        sm04dic,
        usr41,
        usertrace.
      
      INCLUDE <color>.
      INCLUDE tskhincl.
      INCLUDE rsusrcom.
      INCLUDE rsblkcom.
      
      DATA: BEGIN OF usr_tabl_alv OCCURS 10.
              INCLUDE STRUCTURE usrinfo.
      DATA:   ext_type(20),
              ext_type_str(20),
              ext_state(10),
              ext_time(8),
              ext_trace(5),
              line_col(3),
              ipaddr(30),
              selected(1),
              total_mem_mb TYPE i,
              appl_info TYPE appl_info.
      DATA: END OF usr_tabl_alv.
      DATA: item LIKE LINE OF usr_tabl_alv.
      CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_list
            ID 'TABUSR' FIELD usr_tabl-*sys* .

  • avatar image
    Former Member
    Sep 18, 2010 at 12:59 PM

    Hi,

    You may be able to get this info from transaction ST03.

    Regards, Andy

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 18, 2010 at 01:00 PM

    Use TH_LONG_USR_INFO for current sessions

    Check the folder SysHealth in this link:[http://www.guidancetech.com/people/holland/sap/abap/] for history

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2010 at 08:26 AM

    TCode STAT, Check Function module - SAPWL_READ_STATISTIC_FILES

    Add comment
    10|10000 characters needed characters exceeded