Skip to Content
0
Former Member
Apr 01, 2008 at 08:03 AM

How to get Portal User Context in Web Dynpro application

42 Views

I have successfully integrate a web dynpro app into SAP Netweaver Portal.

Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.

Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?

IUserContext userContext = request.getUser();

String firstName = userContext.getFirstName();

String lastName = userContext.getLastName();

If yes, can someone point me the name of the jar file I have to import.

Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.