cancel
Showing results for 
Search instead for 
Did you mean: 

Reading URL parameters

Former Member
0 Kudos

Hi,

I have a requirement where in I have to create different iViews for a same WebDynpro application e.g. one iView for manager and one for employee. The WebDynpro application url will have a parameter which will determine whether it has been called by an employee or a manager and accordingly the application will behave differently.

Can someone suggest me how to access url parameter from the WDDOINIT method of the component controller in WebDynpro ABAP.

Regards

Mukesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

inside the appropriate start plug. eg Default


data: lt_all_url_param TYPE tihttpnvp.
wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'
IMPORTING value = lt_all_url_param ).

Cheers

phil

IanStubbings
Active Participant
0 Kudos

Hi Mukesh

Sorry, only just seen your posting. Phil has answered it expertly anyway.

Cheers

Ian

former_member196517
Contributor
0 Kudos

Hi Mukesh,

First u go to webdynpro application click on tab parameters and add your parameters there...

Then u go to your default window and add same parameters to your default in plug and you can then access these parameters as simple inbound parameters and can set a data in context nodes..

Anuj

Former Member
0 Kudos

hi,

please check this <a href="/people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp for code sample on reading url parameters

grtz,

Koen