Skip to Content
0
Former Member
Dec 12, 2006 at 03:58 PM

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

885 Views

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