cancel
Showing results for 
Search instead for 
Did you mean: 

HeaderVariableLoginModule

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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