Skip to Content

JCO3 Connection parameters

Hello,

In order to to call a function module using JCO, i am trying to connect to SAP server first. But the connection has failed and the console shows the following message :
Caused by: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Client 301 is not available in this system

Note: when i logon on the SAP GUI to do manually trasactions the client of my user is 301.

An other question, can I use the same user on both SAP GUI for manually transactions and calling a function module via JCO ?

Best Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 09, 2020 at 11:55 AM

    Hi Malek,

    Maybe the JCo application connects to a different server where client 301 really does not exist.

    You can set the trace level with this JVM parameter:

    -Djco.trace_level=8

    and check in the logs the hostname and system ID from where the error comes.

    For RFC access the user needs some authorizations see

    SAP Note 460089 Minimum authorization profiles for external RFC programs

    "can I use the same user on both SAP GUI for manually transactions and calling a function module via JCO"

    I think it is possible.

    Best regards,

    Antal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2020 at 09:27 AM

    It's not possible to use the same user on both SAP GUI for manually transactions and calling a function module via JCO or any RFC. The first (via GUI) needs a dialog user and the second (RFC) needs a communication user.
    see this link.

    And it works fine for me now.

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.