cancel
Showing results for 
Search instead for 
Did you mean: 

how do i able to view the active user who login to the EP

Former Member
0 Kudos

how do i able to view the active user who login to the EP

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

not in programming...in the system administration tools

irj/portal monitoring tools

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi yzme,

Can u elaborate more on ur requirement.If u want to access the login user,u can check this thread

regards

Sumit