cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Communication b/w 2 DC's

Former Member
0 Kudos

Hi,

I created 2 DC's. In DC1 calling only model details for this I used interface controller.In this controller i called methods.

In DC2 , I added DC1 component and in this DC2 view i want to call DC1 model details.

what is the procedure of calling DC1 from DC2.

Please give me reply.

Thanks

risha

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Risha,

You can share context/ methods between DCs. Whatever context you want to use in DC2, you have to map that to DC1's interface controller.

Check this [link|/docs/DOC-8661#section5]

Regards,

Siva

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Risha,

Check the following steps, these may helpful to you.

1. Create DC1 and create a webdynpro component for DC1.

2. In the interface controller of DC1, create a node in context with required attributes and nodes and set the properties of the parent node to caridnality 1>1 and isInputElement>True.

3.Complete the data binding and mapping for DC1.

4. Create the public part for DC1.

Create New Public Part ---> add WebDynpro Component

5. Create DC2.

6. Add public part of DC1 in used components of DC2.

7. Create webdynpro component for Dc2.

8. Add DC1 in the used webdynpro components of DC2.

9. Complete the data binding and create context mapping.

10. Deploy and run the application.

By following the above steps, we can call DC1 from Dc2.

Thanks & Regards

Reddi Pavana Krishna. K

former_member201361
Active Contributor
0 Kudos

hi ,

please refer this blog for communicating between tow dcs

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8881] [original link is broken] [original link is broken] [original link is broken];

thanks and regards

Former Member
0 Kudos

hi

Communication between DC's

you have to to add DC1 into public part to make it available for DC2 using Add to Public Part.

using these publicparts only we can expose the required functionality to other DC.

add DC1 in DC2 as Used webDynpro components,to access the publicpart.

Expose interfaceview of DC1 in DC2 to access the required methods.

Regards

sowmya.

Former Member
0 Kudos

Hi

Do like as above post and also see the below link you will get more about Dc's

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2...

Thanks,

Tulasi Palnati