Skip to Content
avatar image
Former Member

JCO and SAP Custom Namespaces

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 17, 2005 at 11:10 PM

    Hello Olaf,

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

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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