Skip to Content
0
Former Member
Jun 03, 2010 at 10:43 AM

Error with JCO calls to PI

81 Views

Hi gurus,

We have a problem with an scenary Java Program -> PI 7.0 -> SAP R3 4.6

Connection between systems are Java Program using JCO libraries to do RFC calls to PI. PI calls to R3 system are RFC and works fine.

When Java Program calls to PI system we get the following error:

Problem retrieving JCO.Function object: ZXXX_WBV_VALUE_CHECK

Function ZXXX_WBV_VALUE_CHECK has been imported in PI Repository and

configuration steps has been done in diretory. Configuration was tested

calling from a R3 system and works fine.

Sender RFC channel has been configurated with verifySender unchecked,

Program ID is set to LN_RFC_ADAPTER and RFC Metadata Repository

Parameters are correct.

mRepository.getFunctionTemplate(functionName) returns NULL in every

call.

This is a part of Java code

publicvoidrun() {

logger.info("RUN");

JCO.Client mConnection;

String][ p = {

{ "ashost", "IP host" },

{ "gwhost", "GW host" },

{ "sysnr", "00" },

{ "gwserv", "sapgw00" },

{ "tpname", "LN_RFC_ADAPTER" },

{ "user" , "USER" },

{ "passwd", "PASS"},

{ "client", "XXX"},

{ "lang", "EN"},

};

mConnection = JCO.createClient(p);

try{

mConnection.connect();

logger.info("Connection is Valid: " +

mConnection.isValid());

JCO.Repository mRepository = newJCO.Repository

("POOL", mConnection);

//Creating function template

String functionName = "ZXXX_WBV_VALUE_CHECK";

IFunctionTemplate

fTemplate = mRepository.getFunctionTemplate(functionName);

This is the Java Log.

27.05 11:12:27,838 INFO (JCOSample.java:56) - RUN

27.05 11:12:33,322 INFO (JCOSample.java:84) - Connection is Valid:

true

27.05 11:12:33,416 INFO (JCOSample.java:98) - Problem retrieving

JCO.Function object: ZXXX_WBV_VALUE_CHECK

27.05 11:12:33,432 INFO (JCOSample.java:24) - Finally

Any Idea?

Thank you for your attention.