cancel
Showing results for 
Search instead for 
Did you mean: 

Communication b/w multiple DC's through interface controller

Former Member
0 Kudos

Hi,

I created one DC with 2 views. I wrote the code in views.

I added this component into another DC through public part and added in used component. I want to execute component of DC1 in the component of DC2.

How to communicate this components?

Plz give me brief procedure.

Thanks

Shirisha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shirisha,

Please close the thread , if ur problem is solved.

regards

Sumit

Answers (3)

Answers (3)

former_member312910
Participant
0 Kudos

Hi Shirisha

You have defined the method you want to call in component controller of DC1. Create a method of the same name in the Interface controller and call the component controller method from there.

Step 1: Go to DC Metadata of DC 1 and create the public part

Step 2: Go to DC Meta data of DC 2 - Got o Used Dcs and add the Public part of DC1

Step 3: Go to used webdynpro components of DC 2 and add the component from DC1

Step4: Add the DC 1 component to the required view or controller from which you want to execute DC1.

Step5: Then call the interface controller method

regards

Deepu

Former Member
0 Kudos

HI Shirisha,

Check this for sample application & tutorials for ur requirement

https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#9

U will find it under Componentization section

regards

Sumit

Former Member
0 Kudos

Hi,

Steps for using methods of another component

1) Add in the "Used Web Dynpro Components" which has options of

a) Create on Demand - instance will be created on demand b) Manual - write code for creation of component

2) "Now in Component Controller, add as required controller" and you should be able to access all methods defined in Component Interface Controller which inturn call CC's methods for functionality

To use views of another compnet

1) Repeat steps 1 & part of 2 which is in quotes

2) In your CC's window, right click and say add view, you can choose compont inetrface view and add the view