on 04-13-2005 8:26 AM
Hi,
Is there a way where I can programmatically list ALL users who are currently logged in?
My application needs to track all users who are logged in.
Regards,
weiloong
hi
follow this code
com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
//Displaying the count of logged on users
wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal"+currentUsers.length);
for(int i = 0; i < currentUsers.length; i++)
{
if(currentUsers<i>.getSAPUser() != null)
{
//Displaying the logged on users;
wdComponentAPI.getMessageManager().reportSuccess("User - "+currentUsers<i>.getSAPUser().getUniqueName());
}
}Note: I used reportSuccess statement to show the output, instead you can bind the list of users to a node and show in the Table
Thanks
Bharathi.ch
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I am also looking for info similar to Wei,but to be specific, i would like to trace nomber of users hitting a webpage (iview),an hourly basis,day, week etc.. <b>Programatically</b>, i know there is a tool Portal Active Report,i would like to know is there any other alternative, and also i would like to know who is hitting what, which page got more hits, i don't want to use any third part tool, is there any info how we can do this Programatically(not the one which alredy existing PCR).
Regards,
RK
Message was edited by: Ramakrishna Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The tool is called the Portal Activity Report and documentation can be found at:
http://help.sap.com/saphelp_nw04/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm
This tool will give you most of the features you requested.
Regards,
Or
Hi,
key words to search are:
InitialContext.lookup("remotesecurity")
com.sap.engine.services.security.remote.RemoteSecurity
com.sap.engine.services.security.remote.sessions.RemoteSecuritySessions
RemoteSecuritySessions.listSecuritySessions
com.sap.engine.services.security.login.SecuritySession
Good luck and regards!
Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't know what the situation you are talking about is.
You can get the user name of the current logged in user you can have that in some array or some file and keep on appending as and when you get a new user logging in.
Regards
Noufal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Weiloong,
there's a function module called TH_USER_LIST in R/3 you can use for this. It'll return the list of users logged in.
-Mikko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.