on 09-17-2007 8:53 AM
Hi
I am writing a JCO program to connect to our backend.
While trying to connect to the server running R3 i get the following exception:
com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
I would appreciate receiving any comment to help me solve this problem
regards
yuval peery
Hello Yuval,
It be more clear if you can provide code where you are calling RFC.
Ashu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have investigated the data I am providing in the RFC;
mConnection =
JCO.createClient(
this.getClient(), //"001" SAP client
this.getUserID(), //"<userid>", // userid
this.getPassword(), // password
"EN", // language
this.getHostName(), //application server host name
this.getSystemNumber() );
and it turned out some of these getters were malformed.
Once I corrected these getters, everything rowked like a charm.
Thanks
Yuval Peery
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.