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

User loggon/session unique ID

Former Member
0 Likes
900

  Hello to all,

I have a somehow twisted issue with the SAP logon, I will describe in detail my situation so that you can understand it well. I have the following landscape, for the same user multiple SAP GUI loggons, from the same machine/computer aswell as from different computers, multiple web loggons (WebDynpro) and maybe some mobileApp loggons. My problem is that I want to know if for the same user I can get the information somehow that he is in the same loggon, off-course it doesn't matter how many sessions he opened, I am only interested if it is in the same loggon. I will also give a short example so that you get the right idea:

user1 logs in SAP GUI ...he opens n sessions

user1 logs in again in SAP GUI.....opens n sessions

user1 logs in from web when using a WebDynpro application

I want to have a way to determine if it is in the same login or not.

I have tried with the TH_USER_INFO to use the TID parameter but it gives back different values which don't help me too much or maybe I'm not using it right.

Anyway, any kind of information/help is welcomed.

Thank you,

Regards,

Nick.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
748

Hi Nick,

TH_USER_INFO should work( With TID). I checked it just now and its is working fine. Only thing I am passing as import parameter is my user name.

Please check.

Regards,

R

2 REPLIES 2
Read only

Former Member
0 Likes
749

Hi Nick,

TH_USER_INFO should work( With TID). I checked it just now and its is working fine. Only thing I am passing as import parameter is my user name.

Please check.

Regards,

R

Read only

0 Likes
748

  Hello Roy,

You reply is correct, for the SAP GUI using the TH_USER_INFO is working fine but if you try to use it in a WebDynpro context then it is not reliable. I have tried it and it gives me different TID's each time I run the WD application. Maybe I am missing something or maybe I am don't have the right know-how regarding the web applications loggin sessions.

If you know of a way how to get the right information also from WebDynpro side would be great.

Also, another issue I forgot in the initial post is how can you identify a NWBC instance log on, do you have a unique ID or something ? I mean if you open the NWBC in the same area/window you can open other sessions, how do you identify the NWBC overall login session ?

Thank you,

Regards,

N.