11-15-2010 3:43 PM
Can any body help me how to find whether the system login is normal or Remote?
11-15-2010 4:14 PM
TH_USER_INFO will identify whether there is a SAPGUI session attached. Otherwise, you can use TH_USER_LIST for all users which identifes external RFC logins. I'm sure there are other methods as well.
11-15-2010 4:14 PM
TH_USER_INFO will identify whether there is a SAPGUI session attached. Otherwise, you can use TH_USER_LIST for all users which identifes external RFC logins. I'm sure there are other methods as well.
11-15-2010 4:20 PM
What all these? are these Database tables. can you please explain bit in detail?
11-15-2010 4:24 PM
it seems these are the function modules.
my question is i need the know whether the user log in remotely or locally?
11-15-2010 6:07 PM
Hi
That's no table, they are system data
Just as Brad said you can use the fm TH_USER_INFO in order to get the info of a single user or TH_USER_LIST to get the info all active users.
The field TYPE indicates the information you need:
4 - It means logon via GUI (so local)
32 - It means logon via RFC
U can check the abap code of program RSM04000_ALV in order to get more info
Max
11-16-2010 1:51 AM
what the guys are telling you is that you can use fm TH_USER_LIST to get a list of all the current users in table USRLIST.
You can then find the matching entry in that table for the user, i.e. read it matching client on sy-mandt and BNAME on sy-uname.
The TYPE field of the matching entry tells you the type of userid it is:
4 = a dialog session
32 = an rfc
202 = portal (I think)
and there is another value for 'system' which I think is for background jobs or update tasks