Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to communicate view two different weddynpro components?

Former Member
0 Kudos

Hi Abapeers

how to communicate view two different weddynpro components?

comp1                                                                comp2

main view  

  create button------------------------------------------------->     Create view

                                            

display button ------------------------------------------------->     Display view

     my Reqiurement

the create button click it will open create view on 2nd component.

the display button click it will open display view on 2nd component.

3 REPLIES 3

Former Member
0 Kudos

hi Ram,

There are posts/docs on scn describing Component usage.

an simple example is here.

http://www.saptechnical.com/Tutorials/WebDynproABAP/Reusability/demo.htm

Your next webdynpro questions pls post in

Thank you,

Kiran

ramakrishnappa
Active Contributor
0 Kudos

HI,

You need to use component 2 inside component 1 i.e. component usage concept.

In component 2, you have to create 2 windows ....

     W_create where view V_create is embedded

     W_display where view V_display is embedded

and mark both windows as interface, so that these can be available when component usage is done

On button click, now navigate to the respective window using navigation plugs

Refer this link:

Regards,

Rama

0 Kudos

Hi

Rama,

Thanks for u r replay.

I am create 2 different views and windows in 2nd component.

the create button(comp1) ----- target_plug_name  = 'DEFAULT' ------>create view(comp2).


the 2nd display button(comp1) ----- target_plug_name  = '              ' ------>display view(comp2).


i declared window default plug (DEFAULT)create button(comp1) to create view (comp2).it is working fine.


when i use same default plug(display button(comp1) to Display view (comp2).) it will triggerd crate view only.


what is 2nd target plug name? and how to create 2nd target plug? is it possible to create 2nd target plug? more than one default plugs r  create is possible?


Regards

Ram