on 05-03-2010 10:15 AM
Dear friends,
i have 2 web dynpro applications. i want to call first application from second application with some data passes to the first application.
how it is possible ????/
please guide me by sending procedural steps.
Regards
sunil
Hi sunil ,
you can find lots of threads related your question ,
reffer this below link
[http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.]
regards
chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
answered...if someone have other alternative than it would be more helpful for future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the 1st Comp/App, create an Interface node NODE_A with all the attributes you want to pass from comp-2 to Comp-1.
now Declare usage of Comp-1 in Comp-2. & usage of Component.Controller of Comp-1 in Component.Controller of Comp-2.
Now, the NODE_A of component-1 is available within Component.controller of Comp-2. So in Comp-2 you can fill the values in Node_A (of comp-1) & values are available in Comp-1 automatically when you fire the Comp-1 from Comp-2.
Thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well,
Don't look at the application for this, but look at the components.
behind every application there's a component
so you have
component A (start comp)
Component B (second comp)
now, component A has the data you want to pass to component B
This means that both components have a context node somewhere which should hold that data.
create a component C, which "uses" components A and B
set the default start view of window C to being the interface view of component A
create navigation to interface window of component B
map the interface context node of A to a context node in your own component C
in turn map your own context node C to interface node in B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mr jung u suggested,
How are you calling the second appliation? Do you have a component usage embedding the second application? Are you using a navigation plug? Dynamic Navigation via APIs? Opening the second application in a new window? The options you have to share data greatly depends upon how you are launching the second application.
what could be the best way in order to solve my proble.
how should i call the second web application so that i can pass the internal table data to the second appl from first appl.
please elaborate the steps in order to clear understanding.....
regards,
sunil
1) You can call an external windowby using the URL of the WD application. To do this look at the below code:
DATA: url TYPE string.
url = 'http://www.google.com'.
Get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
Call the url which we created above
lo_window_manager->create_external_window(
EXPORTING
url = url
RECEIVING
window = lo_window ).
lo_window->open( ).
Or
You can use the below class method to get the url by application name and open this URL in an external window:
Get the URL of the called application
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'ZTEST'
importing
out_absolute_url = w_url.
2) You can pass the Value between the applications by using the Application parameters of the WD application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do the both application are for the same component. If so, You would create an attribute in the component controller/node. And fetch the data where ever you want.
In the reply from Chinn.. there is a Wiki link, it represents the data passes between two applications.
Also close the duplicate thread in the forum with the same issue.
Thanks
Sanket
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.