Skip to Content
0
Former Member
Sep 01, 2006 at 11:54 AM

Issue in connecting webdynpro with EP

22 Views

Hi all,

I created the application in webdynpro which retrieves the current user from EP and I link my application with EP using webdynpro iview.

The issue is when I open my webdynpro iview in EP once again it is asking me the login username and pwd for EP.

I used the following code to get the logged in user id.

//code

IUser epuser = null;

IUserObjectBasedNavigation obnService =(IUserObjectBasedNavigation) WDPortalUtils.getServiceReference(IUserObjectBasedNavigation.KEY);

String portalUser="";

try

{

IWDClientUser user1 = WDClientUser.getLoggedInClientUser();

epuser=user1.getSAPUser();

portalUser=epuser.getUniqueName();

wdComponentAPI.getMessageManager().reportSuccess(epuser.getDisplayName());

wdComponentAPI.getMessageManager().reportWarning(portalUser);

wdContext.currentContextElement().setUser_Id(portalUser.replace('M','0'));

}

catch (Exception e)

{

wdComponentAPI.getMessageManager().reportException(

"Failed to get current user: " + e.getLocalizedMessage(),true);

}

Issue is in high priority.If any knows plz tell me. Thanks in advance.