cancel
Showing results for 
Search instead for 
Did you mean: 

Using Custom Controller of DC1 in DC2 (NWDS CE 7.1 EhP1)

Amey-Mogare
Contributor
0 Kudos

Hi,

I have a scenario where there is an existing WD DC1 which has RFC calling logic inside a custom controller.

(It has a context node 'Z_BAPI' and a method 'executeBAPI' )

Now I want to call same RFC in my new WD DC2.

How can I reuse of this custom controller of DC1 in DC2?

Please help.

Thanks and regards,

Amey

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You would need to define DC dependency.

Add the custom controller having the logic in DC1 to the public part. Do a DC build.

Define DC dependency on DC1 (add DC1 in Used DCs) in DC2. Do a DC build so that the new dependency is available for re-use.

Add the custom controller of DC1 in required controllers in the controller of DC2 where you want to re-use the logic.

Kind Regards,

Nitin

Amey-Mogare
Contributor
0 Kudos

Hi Nitin,

Thank you for helpful reply.

Can you tell me how to "Add the custom controller having the logic in DC1 to the public part." ?

I right clicked on custom controller in DC1, but it doesn't show any option to add to public part.

Thanks and regards,

Amey

former_member185086
Active Contributor
0 Kudos

Hi

Custom controller doesnt have public part option because it is not meant for that, through interface only use can expose and use the methods.

BR

Satish Kumar

Amey-Mogare
Contributor
0 Kudos

Hi Satish,

Thanks for reply.

Can you please tell me how do I expose my custom controller (context and method) via Interface controller?

Thank you.

Amey

former_member185086
Active Contributor
0 Kudos

Hi

Consider you CC like a controlller , once you defined the uses relationship with Intf Cont. , its context and method will accessible to you from Inte. Cont.

BR

Satish Kumar

Answers (0)