cancel
Showing results for 
Search instead for 
Did you mean: 

Call one WDA from another

Former Member
0 Kudos

Hi all,

I need to make some communication between two WD componenets.

I have two WD applications. I need to display a screen of one application in a pop up of another application. How would I do this?

Also, when a screen from second application is called I need to pass some parameters to it.

Please let me know if you've ever faced this need.

Thank you.

Regards,

Georgy Norkin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can execute any method of the component-B using this code in component-A:

DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI_PROJECT_DISPLAY .

l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Display( ).

l_ref_INTERFACECONTROLLER->Get_Project( PROJID = pid ).

Here Get_Project( ) is declared in the methods of the Interface controller. And this Get_Project( ) method is implemented in the component-B. In Get_Project( ) you can directly access the context of Component-b. And ZIWCI_PROJECT_DISPLAY is ABAP interface of the Interface controller created.

This is the way we can access the context of component-B from component-A. Hope I am clear..

Regards,

Ravikiran.

Former Member
0 Kudos

Hi Pavikiran,

Thanks for the reply.

You say that I can access <b>context</b> of one component from another.

However, I need to display the whole screen of component A in component B.

Thank you.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can use a view container in your layout and simply include the component A as a used component. Very similar to the way you use Select-options or the ALV components in your WDA applications.

Regards,

Rich Heilman

Former Member
0 Kudos

Thanks.