on 05-21-2009 6:09 AM
Hi experts,
can you tell me How to identify the currently logged in user of portal from web dynpro applications ?
Thanks,
Namrata
Hi,
Use
WDClientUser.getLoggedInClientUser().getSAPUser();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In order to use the below code in webdynpro.
You require the below mentioned jar file.
com.sap.security.api.jar
String loggedID = WDClientUser.getCurrentUser().getSAPUser().getUniqueName();
wdComponentAPI.getMessageManager().reportWarning("Actual ID:"+loggedID);
Thanks & Regards,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
import com.sap.security.api.IUser;
IWDClientUser user=WDClientUser.getCurrentUser();
IUser myuser=null;
myuser=user.getSAPUser();
wdContext.currentContextElement().setVa_EmpId(myuser.getUniqueName());
hope this may help you...
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.