cancel
Showing results for 
Search instead for 
Did you mean: 

JCO and SAP Custom Namespaces

Former Member
0 Kudos

Hi all,

we are currently moving our RFCs to a custom namespace in SAP.

Until now we just called some RFCs by the function name, e.g. ZABC_MYFUNCTION, like

JcoConPool.getInstance().getRepository().getFunctionTemplate("ZABC_MYFUNCTION").getFunction();

Now these RFCs have been moved to our custom namespace so they look like /ABC/ABC_MYFUNCTION

Is there any way to make this distinction in the Java code? Or do we just call the function ABC_MYFUNCTION?

And if so, how do we call identical named RFCs in different namespaces? That must be possible, right?

Sorry, this is rather a beginner question but we're stuck at this point.

Thanks,

Carsten

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello Olaf,

have you tried to use JcoConPool.getInstance().getRepository().getFunctionTemplate("/ABC/ABC_MYFUNCTION").getFunction(); ?

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

yes, that's exactly what we've tried first because it seemed to us also to be the natural way to do that.

That's we had

JcoConPool.getInstance().getRepository().getFunctionTemplate("/ABC/ABC_MYFUNCTION").getFunction();

in our code.

But in this case the RFCs could not be found.

Sorry I forgot to mention that.

After that try we left out the namespace prefix like in my post and that helped. That's why I've asked if the custom namespace may not be provided via JCO and if so what sense that does make.

Thanks.

Carsten