cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Personnel number between two WDA applications

Former Member
0 Kudos

I am new to webdynpro for ABAP.I have developed two individual webdynpro applications by hard coding unique field personnel Id in the select queries.

What I mean is I am getting all the fields from the select query and I am able to display the values on screen, I am writing query like

"select required-fields from table1 into table2 where pernr = '000000'".

I need to import common personnel Id(pernr) from one application to another.This can be achieved in portal integration or It can achieved

during individual web dynpro applications development?.Please suggest.

Thanks,

Reddy.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member199125
Active Contributor
0 Kudos

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 Reddy ,

You can also do it throgh component usage.

have a look at this tutorial by Thomas Jung :

[http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/e0bf5a27-8b7f-2d10-758e-9bc403e5e6e9]

regards

Kuldeep

Edited by: Kuldeep85 on May 31, 2011 10:16 AM

Former Member
0 Kudos

Hi sudhir,

check this wiki to pass parameters between applications..

http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.

Cheers,

Kris.