on 11-28-2007 2:30 AM
Hi Expert,
It is a question,
How should be used HeaderVariableLoginModule?
Now,The setting of HeaderVariableLoginModule ended by the server.
Following URL was seen and the setting method was done.
<URL>
http://help.sap.com/saphelp_nw70/helpdata/en/b0/4d2b418a3edb2be10000000a1550b0/frameset.htm
The value set to HeaderVariableLoginModule is as follows.
OPTION {ID=iv-user,GROUP=iv-groups,ume.configuration.active=true}
How should be acquired from WebDynpro the value of iv-user and iv-groups?
Could you teach the sample code?
Regards
Hi Yoshida
To get the details of logged in user , use the following code
public void getCurrentUser( )
{
//@@begin getCurrentUser()
String userid = null;
try {
IUser user = WDClientUser.getCurrentUser().getSAPUser();
IUserAccount accounts[] = user.getUserAccounts();
for (int i = 0; i < accounts.length; i++)
{
userid = accounts<i>.getLogonUid();
}
userid = userid.toUpperCase();
}
catch (WDUMException e)
{
e.printStackTrace();
}
catch (UMException e)
{
e.printStackTrace();
}
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.