Application Development 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: 

Need to know whether the system login is normal or Remote Login

0 Kudos

Can any body help me how to find whether the system login is normal or Remote?

1 ACCEPTED SOLUTION

brad_bohn
Active Contributor
0 Kudos

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.

5 REPLIES 5

brad_bohn
Active Contributor
0 Kudos

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.

0 Kudos

What all these? are these Database tables. can you please explain bit in detail?

0 Kudos

it seems these are the function modules.

my question is i need the know whether the user log in remotely or locally?

Former Member
0 Kudos

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

0 Kudos

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