on 07-16-2007 8:40 AM
how do i able to view the active user who login to the EP
Hi,
First include com.sap.security.api.jar
from
C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.security_2.0.0\lib
in to the classpath of project.
Then, Use this code
public java.lang.String getEpUser( )
{
//@@begin getEpUser()
String epUser="";
try
{
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if (user != null)
{
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
{
epUser = epUser+acct[0].getLogonUid();//.toUpperCase();
String test=acct[0].getUniqueID();
}
}
else
{
}
}
catch(Exception e)
{
}
return epUser;
//@@end
}
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yzme,
Check this link for ur requirement.
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/34/76bd3b6e74d708e10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/34/76bd3b6e74d708e10000000a11402f/frameset.htm</a>
check System Administration->Monitoring technology & logging
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.