cancel
Showing results for 
Search instead for 
Did you mean: 

Read LDAP Logged-in user from Webdynpro Java or ABAP

Former Member
0 Kudos

Dear All,

Good Morning...

My requirement is to read user information from LDAP and display in portal.

Which technology is good to create, either i need to go for Webdynpro Java or Webdynpro  ABAP?

Thanks

Suresh Babu

Accepted Solutions (1)

Accepted Solutions (1)

former_member191660
Participant
0 Kudos

Hi Suresh,

first, it will depend on the way, the LDAP is connected to the systems. I assume, your LDAP is integrated in the UME of the Portal.

second, the implementation technology will be highly depend on your skills and the technology choices within your project. I see WD Java, Poratl Application, JavaEE on JAVA Site, WD ABAP, BSP and maybe others on ABAP Side...

Since you need to display the information in Portal, a Portal Applciation is a valid (and probaby easiest) choice (See e.g. Tutorial I: Creating a Portal Application - SAP Library)

The actual code to get the user Object would be


IUser user = request.getUser();

from here, you can use the  UME API: IUser to get required information:


user.getDepartment();

user.getFirstname();

// etc.

Former Member
0 Kudos

Hi Sergei Haller,

Thanks for input.

I downloaded nwds-extsoa-7.3-EHP1-SP13-PAT0000-win32 and i created portal application.

Now where i need to write the code. in the project there no .java file to add the code.

Thanks

Suresh Babu

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Suresh,

If you need to get the the userid of a logged in user , you can either use wd abap or wd java, through system variables, which gives you the logged in user id. Inturn with the help of ID , you can fetch required details.

Its better to go for wd abap since, it requires minimal coding efforts compared to abap.

Regards,

Harsha

Former Member
0 Kudos

Hi Harsha Jalakam

Thanks for information, could you please mention any links or pdf, on how to develop

web dynpro ABAP.

Thanks in advance

Suresh

harsha_jalakam
Active Contributor
0 Kudos

Hi Suresh,

Please check the following link for developing customized aplications on Webdynpro Platform.

http://scn.sap.com/docs/DOC-8863

Regards,

Harsha

Former Member
0 Kudos

Hi Harsha Jalakam

Thanks for information,

How to get the windows longed in user in webdynpro ABAP.

I need to get the logged-in user and his LDAP variables,

Thanks in advance

Suresh

harsha_jalakam
Active Contributor
0 Kudos

Hi Suresh,

System variable SY-UNAME will give you the userid of the logged in user.Based on this you can query to get details from ECC, but I suspect not from the LDAP.

What variables are you looking for?

Regards,

Harsha