on 01-27-2005 3:18 PM
Hi,
I am developing a web dynpro app to be used in the portal. One requirement is to record the user id of the user who logged into the portal.
Does anyone know how to get it within the web dynpro application?
Thanks a lot!
Hart
IWDClientUser wdUser = WDClientUser.getCurrentUser();
Hi Hart,
Try using the following piece of code.
IUser user = wdUser.getSAPUser();
if(user != null){
IUserAccounts[] acct = user.getUserAccounts();
if(acct[0] != null){
String strUserid = acct[0].getLogonUid();
}
......
}
else{
// code for anonymous user
}
Regards
Sidharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.