on 05-31-2011 8:49 AM
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.
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 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sudhir,
check this wiki to pass parameters between applications..
http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.
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 |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.