on 09-18-2008 6:49 AM
Hi all,
I have a new requirement as Explained below
User will login from portal with login username and password.
I want to retive that information.
How to keep track of that information in webdynpro
Thanks & Regards
Padma N
Hi Padma,
First you need to add the security.jar file by following the given steps
Right Click on Project-Propertyjava Build PathLibrariesWDRuntime
Com.sap.security_2.0.0
public void LoginUser( )
{
//@@begin LoginUser()
String LogonID;
try{
// create an user object from the current user
IWDClientUser wdUser=WDClientUser.getCurrentUser();
IUser user=wdUser.getSAPUser();
//LogonID=user.getUniqueName();
wdComponentAPI.getMessageManager().reportSuccess(user.getFirstName()" "user.getLastName().toUpperCase());
//wdComponentAPI.getMessageManager().reportSuccess(LogonID.toUpperCase());
wdComponentAPI.getMessageManager().reportSuccess("Logon User ID : "+wdUser.getClientUserID().toUpperCase());
}catch(Exception e){
e.printStackTrace();
}
//@@end
}
Thanks
Anup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
to get the user name do like this,
String userid="";
try {
IWDClientUser user = WDClientUser.getCurrentUser();
userid = user.getSAPUser().getUniqueName();
} catch (WDUMException e) {
e.printStackTrace();
}
and you have to add the security jar to javabuild path.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
chk this doc:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e039ce31-4156-2b10-1481-bdc3ff8cae48]
Regards
Khushboo
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 |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.