cancel
Showing results for 
Search instead for 
Did you mean: 

Getting user id in portal for WDA

Former Member
0 Kudos

Hello All.

I have created users in portal.

As soon as the user enters the portal I have to display their details in the very first screen.

For this I need the userid who has entered.

How to get the ID.

Using the ID I will retrieve their details from the table and Display their details.

Warm regards,

SampathKumar.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank u all.

Former Member
0 Kudos

Hi,

The portal user id will be stored in system variable sy-uname.

With Regards,

Ranganathan.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Hi,

> The portal user id will be stored in system variable sy-uname.

>

> With Regards,

> Ranganathan.

Not necessarily. Often Portals use User Mapping or Single SIgn On so that the ABAP AS Logon (SY-UNAME) is not the same as the portal user name. It is advisable that you not depend upon SY-UNAME and instead use the suggestion above to pass in the portal value from the iView.

Former Member
0 Kudos

Hello All.

Can anybody help me in step by step creating an iview for webdynpro abap and how to define the application parameters.

I am new to webdynpro and I have no idea in EP too.

Regards,

SampathKumar G.

Former Member
0 Kudos

Hello All.

What is the system type that I have to choose when creating an iview for webdynpro abap.

Regards,

SampathKumar.

Former Member
0 Kudos

Hello All.

I have created the iview but while clicking the preview it shows page cannot be displayed.

I have mentioned correct application name and application parameters.

Is there anything else to be done like assigning the iview to any page in the application.

Please help me in this regard.

Thanks,

SampathKumar.

Former Member
0 Kudos

hi

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>

reference :

i hope it helps

regards ,

amit

Former Member
0 Kudos

Hi,

Refer these threads, these might help you.

Regards

Runal

Former Member
0 Kudos

Hi.

I tried using the links that You have provided.

There they have mentioned while creating the iview we need mention our Application Name and Application Parameter.

But while creating the iview I doesn't come across such options.

What is the reason.

Regards,

SampathKumar.