cancel
Showing results for 
Search instead for 
Did you mean: 

RFC_ERROR_PROGRAM: Missing R3NAME=... o

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185029
Active Contributor
0 Kudos

Hello Yuval,

It be more clear if you can provide code where you are calling RFC.

Ashu

Former Member
0 Kudos

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