cancel
Showing results for 
Search instead for 
Did you mean: 

Jco Error: Connect from SAP Gateway to RFC-Server failed

Former Member
0 Kudos

Hello everyone,

i am trying to access the SAP-System via an ETL-Tool called talend.

talend utilizes the jco-Connector, to access data via RFCs.

Everytime i try to connect to the sap-system i get the Jco Error "(102) RFC_ERROR_COMMUNICATION: Connect from SAP Gateway to RFC-Server failed".

I searched these forums and found many "Connect to SAP Gateway failed" Threads but no "Connect from SAP Gateway to RFC-Server failed".

In other words: i can access the SAP-Gateway but it seems i don't get a connection to the RFC-Server from there.

I have SAP-GUI installed on that client and it works fine.

What could be the cause?

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Tanja,

would be helpful if you really post the COMPLETE error message and don't strip the most interesting part with the ERRNO and ERRNO TEXT. You certainly may anonymize your hostnames/addresses.

If your application is not showing the full error text, please have a look into the RFC error log file dev_rfc.trc or dev_jrfc.trc in your current working directory. It is logged there, too.

For example it might be that your gateway host cannot resolve the "targetserver" hostname.

Former Member
0 Kudos

Hi Tanja Wiemann,

I have faced the problem before in ou SAP System, it always appear "SAP Gateway Error".

Would you please inform me how many remote gateway still active in your system.

You can check it with tcode SMGW > Goto > Remote Gateways

If your remote gateway are many, just delete it and run your application afterward.

This way work for me to solve about RFC matter.

Hope it helpfull. Thank you.

Cheers,

AR

Former Member
0 Kudos

hello,

i have been trying to connect saprfc with php, php seems to be working fine and the module saprfc likewise, but i cannot connect using the saprfc_test.php. Can anybody tell me any other way to solve this, am using xampp 1.7

Former Member
0 Kudos

hi Tanja Wiemann,

if u had still in problem with jco connection ask me

now we are working on this sap-java interfacing using JCO

working fine if you had any issues ask me

if passble i can help u.

reagrds

ravindra_bollapalli2
Active Contributor
0 Kudos

hi tanja,

looking u r problem,

i been surfed int google

what i found is [LINK|http://www.road2biz.com/lang-en/sobre-nos/noticias/1-news/64-talend-disponibiliza-versao-30-com-suporte-para-solucoes-sap.html]

Talend announces version 3.0 with SAP Support

for this we need to install the jco for this one

which version of jco's are using like 2 or 3

let me know

ravindra

Former Member
0 Kudos

Hello Ravindra,

we are using Jco 2.1.8

But i don't think this is a Jco problem.

I googled for this a bit by myself and i have seen, that this problem can also occur, when you try to access the RFC-Server with Bex-Applications.

ravindra_bollapalli2
Active Contributor
0 Kudos

hi,

u can refer the oss note 447882

and more details u can refer this [LINK|;

while reading the oss note it was at previous date try to find out corressponding note down below

revert back the issue stil there

ravindra

Former Member
0 Kudos

Note 447882 refers to another error.

I am not getting a "Partner not reached" error.

Actually i reach the "partner" (SAP-Gateway) but i can't reach the RFC-Server from there (or so it seems).

Former Member
0 Kudos

Hi Tanja,

were you able to fix this error ? I am getting the same msg so would appreciate if you could please advise how you resolved it.

thanks !!!

Former Member
0 Kudos

Uhhh, just saw that the original post was from August 2009...

So why don't you start a new thread with your error message?

Former Member
0 Kudos

First, look if you have the latest version of Talend Open Studio. Then, check if you have the right compoment for SAP. Also check the Talend component page here: http://www.talendforge.org/components/index.php .

Tell us if it works,

Good programming.

Former Member
0 Kudos

Thanks for the reply.

sapgw02 3302/tcp was already part of the services-file (we are using system-number 02).

1. RFC settings are identical from ODB and NDB.

What does ODB and NDB mean and where can i review the RFC settings?

2. syntax of logon groups

What do you mean by syntax?

3. syntax of security and connection information in JCO connection

If you mean the logon paramters like server-name, system-nr. and so on: they are right.

4. IP addresses and ports were NATed correctly

i tried "telnet targetserver sapgw02" and "telnet targetserver 3302". both returned an empty cmd-window. as far as i know, that means the connection was succesful and i can reach the ports.

I am trying to get information about this right now, but the thing is: I can reach the SAP Gateway but not the RFC-Server. So half of the way seems to be ok, because otherwise i would get a "SAP-Gateway not reached" error (which i get if i use the wrong server name for example)

@Tgouru: I am using TOS 3.1.1 because the SAP-components in 3.1.3 don't work the way i like.

I can extract data from the SAP-Testsystem (which is a completely different network) with TOS 3.1.1.

PS: a morde detailed error-text:

Exception in Component tSAPInput_1

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

from SAP gateway to RFC-Server failed.

Connect_PM GWHOST=targetserver, GWSERV=sapgw02,

ASHOST=targetserver, SYSNR=02

LOCATION SAP-Gateway on host targetserver / 3302

ERROR Return codes (function=STIAsRcvFromGw /

CPIC-RC=CM_PARAMETER_ERROR / SAP-RC=C_NIHOSTTOADDR)

Edited by: Tanja Wiemann on Aug 24, 2009 5:34 PM

former_member192434
Active Contributor
0 Kudos

Hi

add the line:

sapgw00 3300/tcp # SAP System Gateway Port

To the File C:\WINDOWS\system32\drivers\etc\services

Also check this

1. RFC settings are identical from ODB and NDB.

2. syntax of logon groups

3. syntax of security and connection information in JCO connection

4. IP addresses and ports were NATed correctly

Refer SAP Note 316877

Thanks

Former Member
0 Kudos

I forgot one thing:

"Refer SAP Note 316877"

SAP Note 316877 covers the wrong error ("Connect to SAP gateway failed").

The error i am facing is "Connect from SAP Gateway to RFC-Server failed", that means i already have a connection to the SAP-Gateway, but not to the RFC-Server.