06-21-2010 4:44 PM
Hello experts,
I would like to know if it's possible to get the sessionID of the current session of an user within an ABAP report - similar to getting other system-parameters, such as system time, username etc. I couldn't find a system-parameter-field (like sy-uname etc.) which fulfills my requirements.
Does anybody of you know how I can get the session ID ?
Thanks in advance,
winnerin
06-21-2010 5:10 PM
Not 100% sure which session ID you mean. Browse through the function modules with names THUS (selection mask) and see if one fits your needs.
Thomas
06-21-2010 5:35 PM
i think you are asking about the session ID which comes in SM04->technical info..
if yes.. just follow the standard code and you will find that.. there is a system command which solves your query..
call 'ThUsrInfo' id 'OPCODE' field opcode_usr_info
id 'TID' field tid
id 'TABLE' field usr_info-*sys*.
This is in form build_usr_info of program 'RSM04000_ALV'
06-21-2010 5:39 PM
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
Edited by: Soumyaprakash Mishra on Jun 21, 2010 10:10 PM