cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP

Former Member
0 Kudos

Hi guys,

I am using JCO to connect R3 backend system and call a FM.

But when I call "client.connect()", I got the following error:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

Connect_PM TYPE=A ASHOST=XYZ.company.en SYSNR=00 GWHOST=XYZ.company.en GWSERV=sapgw00 PCS=1

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR service 'sapgw00' unknown

TIME Tue Dec 12 15:38:34 2006

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -3

MODULE ninti.c

LINE 505

DETAIL NiPGetServByName2: service 'sapgw00' not found

SYSTEM CALL getservbyname_r

COUNTER 1

My parameters are:

JCO.Client client = JCO.createClient("100", "userid", "psw", "en", "xyz.company.en", "00");

where is the problem?

Thanks in advance!

Regards,

Liying

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check . You need to add an entry to your services file.

Regards,

Christophe

Former Member
0 Kudos

Hi Christophe,

I tried to this solution, at my service file, it stated

sapgw00 3300/tcp

and I modified it as

sapgw00 3300/tcp # SAP System Gateway Port

but it didn't work.

Is what I did correct? What means "# SAP System Gateway Port"

Thanks again

Regards,

Liying

Former Member
0 Kudos

Thanks Christoph

I restart the computer, and it works

Answers (0)