Results 1 to 2 of 2

Thread: SAP R3 Java

  1. #1
    Felissa is offline Member
    Join Date
    Jun 2007
    Posts
    95
    Rep Power
    0

    Default SAP R3 Java

    Hello! At the moment I am developing an interface between a system under SAP R3 (language ABAP) and a Java application, which will serve as bridge to communicate to the system in SAP with a system with data base SQLServer (all route Intranet, nothing of Web server).

    I go to you in search of some suggestion, since it is first time that use the JCO library, that provides SAP to make the connection with Java, and in the tests that there are been making the connection has been quite unstable. I copy the error to them that throws when invoking from SAP the Java application.

    ERROR:

    Java Code:
    Server JAVASERVER changed state from [ STOPPED ] to [ STARTED ]
    
    Server JAVASERVER changed state from [ STARTED ] to [ STARTED LISTENING ]
    
    Server JAVASERVER changed state from [ STARTED LISTENING ] to [ STARTED LISTENING BUSY ]
    
    Exception in server JAVASERVER:
    
    com.sap.mw.jco.JCO$Exception
    
    : (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template 'ZSAPJAVA'
    
    caused by:
    
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    
    Connect_PM GWHOST=10.0.0.4, GWSERV=sapgw00, ASHOST=10.0.0.4, SYSNR=00
    
    LOCATION CPIC (TCP/IP) on local host
    
    ERROR partner not reached (host 10.0.0.4, service 3300)
    
    TIME Fri Jul 07 17:12:36 2006
    
    RELEASE 640
    
    COMPONENT NI (network interface)
    
    VERSION 37
    
    RC -10
    
    MODULE nixxi_r.cpp
    
    LINE 8634
    
    DETAIL
    
    com.sap.mw.jco.JCO$Exception
    
    : (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template 'ZSAPJAVA'
    
    caused by:
    
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    
    Connect_PM GWHOST=10.0.0.4, GWSERV=sapgw00, ASHOST=10.0.0.4, SYSNR=00
    
    LOCATION CPIC (TCP/IP) on local host
    
    ERROR partner not reached (host 10.0.0.4, service 3300)
    
    TIME Fri Jul 07 17:12:36 2006
    
    RELEASE 640
    
    COMPONENT NI (network interface)
    
    VERSION 37
    
    RC -10
    
    MODULE nixxi_r.cpp
    
    LINE 8634
    
    DETAIL
    
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(
    
    Native Method)
    
    Exception in server JAVASERVER:
    
    com.sap.mw.jco.JCO$Exception
    
    : (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function 'ZSAPJAVA'
    
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(
    
    MiddlewareRFC.java:1368)
    
    at com.sap.mw.jco.JCO$Server.listen(
    
    JCO.java:6844)
    
    at com.sap.mw.jco.JCO$Server.run(
    
    JCO.java:6773)
    
    at java.lang.Thread.run(Unknown Source)
    
    com.sap.mw.jco.JCO$Exception
    
    : (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function 'ZSAPJAVA'
    
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(
    
    Native Method)
    
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(
    
    MiddlewareRFC.java:1368)
    
    at com.sap.mw.jco.JCO$Server.listen(
    
    JCO.java:6844)
    
    at com.sap.mw.jco.JCO$Server.run(
    
    JCO.java:6773)
    
    at java.lang.Thread.run(Unknown Source)
    
    Server JAVASERVER changed state from [ STARTED LISTENING BUSY ] to [ STARTED LISTENING ]
    
    Server JAVASERVER changed state from [ STARTED LISTENING ] to [ STARTED ]
    
    Server JAVASERVER changed state from [ STARTED ] to [ STOPPED ]
    
    Server JAVASERVER changed state from [ STOPPED ] to [ STARTED ]
    
    Server JAVASERVER changed state from [ STARTED ] to [ STARTED LISTENING ]
    Felissa :p

  2. #2
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default RE: SAP R3 Java

    Have you test changing the parameters of ashost? often it can cause similar problems, check if router String something like "/H/...", followed of the name of host you have it in the parameter of ashost.

    For example check it in this string of example:
    Java Code:
    mConnection JCO.createClient("100","userid","pw","DE", "/H/SAPROUTER2.HCC.UNI- MAGDEBURG.DE/S/3299/H/A22Z","A22");
    I hope that it serves to you!

    Albert:rolleyes:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •