on 10-11-2011 9:28 AM
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.
concatenate the parameter value pair to the url.
Something like this
CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.