cancel
Showing results for 
Search instead for 
Did you mean: 

how to read portal user id,

former_member199125
Active Contributor
0 Kudos

Hi Experts,

Scenario : we are developing custom portal application, and we are not maintaining SSO.

if we maintain SSO, I can get pern from HR_GET_EMPLOYEES_FROM_USER. Function module. ( Because same portal user id will work as user id for SAP Server ).

now we are not maintaining portal SSO, so,how can i read the portal user id?

in the wddoinit method of my application, i have to write a piece of code, which will read Portal User id. So please let me know the ways to read portal user id in webdynpro?

Regards

Srinivas

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

Hi srinivas,

check my article : [How to integrate WDA in portal and capture portal Log On User ID|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008fc414-997f-2e10-3899-fd895ec8eb5e]

hope this helps u.,

Thanks & Regards,

Kiran

Former Member
0 Kudos

Hi ,

You can use the below code to get the portal user in webdynpro abap :

1. go to HANDLEDEFAULT method of your main Window

2. in the parameters add userid type string

3. create a variable in Attributes tab of the component controller userid type string

4. code in the HANDLEDEFAULT method of the Window

wd_comp_controller->userid = userid.

5. now you can access userid in any method in the component.

Ask your portal admin, to create iView with parameter userid=<User.UserId>

Thanks

Ritushree

Edited by: Ritushree Saha on Sep 12, 2011 1:13 PM

Former Member
0 Kudos

Hi Sana,

Please check this threads,

Cheers,

Kris.