cancel
Showing results for 
Search instead for 
Did you mean: 

Howt to retrieve the parameters sent from an iView in WDA

Former Member
0 Kudos

Hi,

I´m sending some parameters form the Portal iView containign the WDA component, how can I retrieve the parameters sent in to my webdynpro ABAP development.

Kind Regards,

Gerardo J

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gerado,

Go to the window in your WD ABAP component.

Declare those parameters as importing type in HANDLEDEFAULT method.

You will receive the values at runtime in these parameters.

Please check this wiki also. It tells about reading URL parameters in WD ABAP but it will work the same way for iView paramters.

[http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynproforABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynproforABAP]

I hope it helps.

Regards,

Sumit

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

you need to write the code in the handledefault method of the window to fetch the parameters and then pass the values to the

component controller thorugh context mapping.

suppose you are paasing parameter id=456

in the handle default you need to write the following code to fetch the parameter.

data lv_param type string.
lv_param = wdr_task=>client_window->get_parameter( 'id' ).

then use this string lv_param to set an atribute of context which through component controller you can access in the desired

view controller.

thanks

sarbjeet singh

Former Member
0 Kudos

Hi,

I would recommend to use the WIKI instruction posted by Sumit.

Avoid using sap internal classes which are not recommended.