cancel
Showing results for 
Search instead for 
Did you mean: 

How to acces one method of DC in other DC

Former Member
0 Kudos

Hi,

I have two DCs: DC1 and DC2.

DC2 has one Java Class file with two methods defined in it.

I want to access these methods in DC1. How can I access these methods? Please help.

Thanks.

Venki

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

hi Venki,

u will not be able to access the methods present in the Java Class of DC2 directly in the DC1.

But define a method in the Interface controller and in this method call the methods present in the Java Class(implement the funtionality) ...

Finally expose the dc2 to the public part and add the component to the Dc1 as used Component .

now from the dc1 call the method defined in the interface controller .

for more information please refer this blog

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

[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

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

suppose you have two DC's :DC1,DC2.

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

PradeepBondla
Active Contributor
0 Kudos

Hi,

[using functions of other DC|http://help.sap.com/saphelp_erp2005vp/helpdata/en/c9/43973fade73c17e10000000a114084/frameset.htm]

its been discussed in SDN many time... just search in sdn you will find lots...

http://help.sap.com/saphelp_nw04/helpdata/en/e2/084c16e1e4d545bb94c2bc8379d5f8/frameset.htm

PradeeP

Former Member
0 Kudos

Hi,

Why not expose this methods using interface controller and then access them from other DCs?

Regards

Ayyapparaj

sureshmandalapu6
Active Contributor
0 Kudos

Hi,

You must use one DC into another DC by mentioning the Interface controler. Create public parts and used DC for accessing the method in other DC.

points if useful

thanks

Suresh

Former Member
0 Kudos

Hi, can I get any screen shots or docs on this,..I am bit confusing.