This website is not affiliated with, sponsored by, or approved by SAP AG.

JCO.Server could not create server function .....

Interfaces (ALE, IDOC, RFC, EDI etc.)

JCO.Server could not create server function .....

Postby sap_ped » Thu Jul 29, 2004 3:06 am

I have found an error in sm58 ...
'JCO.Server could not create server function IDOC_INBOUND_ASYNCHRONOUS'

Please advise what could be possible cause of such error or how can I get more information regarding this.

Regards,
sap_ped
 
Posts: 175
Joined: Tue Jun 24, 2003 4:38 am
Location: Planet Earth

Re: JCO.Server could not create server function .....

Postby dcolley » Mon Aug 09, 2004 7:04 am

As per the tutorial... are you able to execute this code?

Code: Select all
JCO.Client mConnection;
JCO.Repository mRepository;
long rowCount = 0;
try {
  mConnection = JCO.createClient(clnt, user, pass, lang, host, sysn);
  mConnection.connect();
  mRepository = new JCO.Repository("netSimple", mConnection);
  JCO.Function function = null;
  JCO.Table codes = null;
  try {
    String func = "RFC_READ_TABLE";
    IFunctionTemplate ft = mRepository.getFunctionTemplate(func);
    if (ft == null)   {
      System.out.println("Error calling function " + func);
      System.exit(1);
    }
    function = ft.getFunction();
  } catch (Exception ex) {
    throw new Exception("Problem retrieving JCO.Function object.");
  }
  if (function == null) {
    System.out.println(func + " not found in SAP.");
    System.exit(1);
  }
} catch (Exception ex) {
  ex.printStackTrace();
  System.exit(1);
}
Rgds,
Derek
_________________
For formal [onsite | telephone | IM | email] support on SAP Business Connector and ITS, please contact me directly
dcolley
 
Posts: 120
Joined: Fri Nov 29, 2002 8:36 am
Location: London


Return to Interfaces

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.