cancel
Showing results for 
Search instead for 
Did you mean: 

JCO3 Connection parameters

0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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.

AntalP
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

Hi Antal,
Thank so much, you are the client 301 does not exist. It was 310.