on 2012 Dec 21 4:43 PM
Hello,
Currently we are working on a project. we want to connect to the SAP server with JCO. We have all the information required. but still we get this error when we try to connect:
(102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=a27z, GWSERV=sapgw27, SYSNR=27
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'a27z' unknown
TIME Fri Dec 21 17:11:33 2012
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -2
MODULE ninti.c
LINE 895
DETAIL NiPGetHostByName: 'a27z' not found
SYSTEM CALL getaddrinfo
COUNTER 1
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:3272)
at TutorialConnect1.<init>(TutorialConnect1.java:15)
at TutorialConnect1.main(TutorialConnect1.java:25)
I would appreciate if some one can help in this situation.
Thnx in advance.
Kind Regards!
Request clarification before answering.
Thanks every one for the awnsers... but it is strange i used the IP address instead. and worked....:O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muhammad,
From the error it looks like it is a gateway issue,
Can you check if gateway port is open, ask your infrastructor / OS team to help you to find out.
You can access the SAP Gateway on every application server under the TCP port sapgw<nr> , where
<nr> is the instance number of the application instance.
Default values for instance number 00:
SAP Gateway port:
sapgw00 3300/TCPif the port is open it should work.
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Guru!
Muhammad,
Hi! In addition you may want to check the following (where you can perform a search and cross reference with other experts as well as post your any updated questions):
SCN - Web Synpro Java - http://scn.sap.com/community/web-dynpro-java
Best regards...Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.