cancel
Showing results for 
Search instead for 
Did you mean: 

dc to dc communication

Former Member
0 Kudos

Hi

i have two dcs i want to acces amethod present in dc1 from dc2 .can you please tell me the code.

thanks rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Add comp1 as used Webdynpro component in comp2. By this, you can see the interfacecontroller of comp1 in comp2.

1) Add a method in interface controller of comp1 to call method of comp controller of comp1.

2) LInk the inteface controller of comp1(used Comp) with comp2 in Diagramview of Comp2.

3) call the method from comp2 controller as

wdThis.wdgetcomp1Interfacecontroller().method();

By this you can have only one way communication, like you can call comp1 from comp2, but you can not call comp2 from comp2. But the above method may solve your requirement.

If you want two communication you need to use Component Interface Definition, for this see the below doc

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0409d83-5ed5-2910-ef91-e41da6d5...

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Rahul ,

please check your previous thread and try to implement the answer provided.