on 09-27-2011 11:37 AM
Hi
I am new to WDA.
now i try to do in pass the value from one webdynpro application to another webdynpro application through url?
I already done in through this method
call method cl_Wd_utilities->construct_wd_url
exporting
application name = 'XXX'
importing
out_absolute_url = w_url.
Now i want in through URL?
can any one help to me.
Regards
P Sheela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sheel
check this.
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.
please read my previous code clearly, i am passing through URL only.
first u have to generate url through construct_wd_url method, then
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_value = 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 w_rul will have both url and field value**
***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.
Thanks and Regards
Edited by: sanasrinivas on Sep 27, 2011 1:12 PM
Edited by: sanasrinivas on Sep 27, 2011 1:13 PM
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.