cancel
Showing results for 
Search instead for 
Did you mean: 

how to call one application from another one in eb dynpro abap

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

answered...if someone have other alternative than it would be more helpful for future.

phanir_mullapudi
Active Participant
0 Kudos

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

TomVanDoo
Active Contributor
0 Kudos

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

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This thread appears to largely be a duplicate of the question in this thread:

Please do no open duplicate threads.

Former Member
0 Kudos

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

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

What are your requirements? Do you want the second application to open in a new window? Do you want it to open in the same window and replace the current application? Do you want it to open within the currrent application?

Former Member
0 Kudos

in same window but with the replacement of the current application.

Former Member
0 Kudos

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.

Former Member
0 Kudos

thaks for your suppor.

but how can i pass data. i have to pass interal table data to second appl.

please elaborate if it is possible.

regards,

sunil

Former Member
0 Kudos

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