cancel
Showing results for 
Search instead for 
Did you mean: 

passing parameter with external window

Former Member
0 Kudos

H ai All,

I need to pass a parameter using external window through URL.

scenario :

when i select a record in a table the mandatory parameter should be passed to the external window through url.

Thanks

Veni.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

concatenate the parameter value pair to the url.

Something like this

CONCATENATE lv_url '?param1=' lv_param INTO lv_url.

former_member199125
Active Contributor
0 Kudos

hi Veni,

Check the below code.

Data w_url type string,

w_value type string.

      • get the url of calling aplication

call method cl_Wd_utilities->construct_wd_url

exporting application name = name of second application( to which u want to pass parameter )

importing out_absolute_url = w_url.

***Make the value type compatible that has to passed with url.

w_string = lv_pernr

***Now attach the parameter and its value with url that have to passed to 2nd application

call method cl_http_Server=>append_field_url

exporting name = 'pernr'

value = ' w_value'

changing url = w_url.

      • then popup window for 2nd application with above url

lo_window = lo_window_manager->create_external_application ( url = w_url ).

lo_window -> open( ).

***now in wddoinit of 2nd application

data lv_param type string

lv_param = wdr_task=>client_window->get_parameter( ' pernr ').

Now you can use lv_param in 2nd application.

Regards

srinivas

Former Member
0 Kudos

Hi Aliveni,

You ahve to use.. construct_wd_url

Please go through this..

also this..

http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynprofor+ABAP

Cheers,

Kris.