cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass the value from one webdynpro application to another via url?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi sheela,

Please go thorugh this thread..

Cheers,

Kris.

former_member199125
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Srini

I Already got the answer from this method.

instead of passing application name, i have to pass my url(with carrying value also)

how to achieve this?

Regards

Sheela P

former_member199125
Active Contributor
0 Kudos

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