on 07-08-2020 12:15 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.