cancel
Showing results for 
Search instead for 
Did you mean: 

sap gateway connection failed

Former Member
0 Kudos

hi experts,

t code sm 59 im connecting from tcp/ip connections to connect to r/3 system

i getin error sap gatewayconnection failed is sap gate way started

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai,

Have you given the entries such as Gateway host and Gateway port in your RFC (TCP/IP ) Connection.

The port number should be sapgw<inst.no> or 33<inst.no>.

Regards,

Yoganand.V

Former Member
0 Kudos

Hi Yoganand,,

We have our SAP server exposed on Public Ip.

When try to make a RFC Call i.e. calling a SAP BAPI from Non SAP System to this Public SAP,

then the request is declined...

We are getting error i.e. Connection refused...

Can anyone tell me what is the Port no for RFC Calls When SAP Server exposed to Public IP...

The exact error is Connection to SAP gateway failed...

Akshay_G
Contributor
0 Kudos

Hi Suruchi,

The port number is not for RFC, but the port for the SAP System's Gateway i.e. You should be able to get this port number from the SAP System in /etc/services, with the help of your Basis Admin.

It is something like this =>

sapgw00 3300/tcp        # SAP System Gateway Port

sapgw01 3301/tcp        # SAP System Gateway Port

sapgw02 3302/tcp        # SAP System Gateway Port

sapgw03 3303/tcp        # SAP System Gateway Port

sapgw04 3304/tcp        # SAP System Gateway Port

sapgw05 3305/tcp        # SAP System Gateway Port

sapgw06 3306/tcp        # SAP System Gateway Port

Additionally, you should cross-check the hostname/IP of your SAP System and the respective System/Instance no. which you are calling.

Also if you are making HTTP call, you also need to ensure the correct HTTP port number of the SAP system.

Regards,

Akshay.

Answers (2)

Answers (2)

0 Kudos

Hello,

Please provide info from st11 dev_rd, and what is exaclty error when you try this connection.

Hope you are using correct IP and hostname, do not use long hostname or special hostname as chinese character or any other - this will lead to problem.

Let us know you logs, then it will be easy to reply you what is root cause.

Peter

Former Member
0 Kudos

Hi,

Are you entering correct gateway details on 'Technical settings' tab in SM59? Is message server status ok? Can you ping to gateway?

Hope this helps.

Manoj Chintawar

Former Member
0 Kudos

Hi Manoj,

yes i can ping to gateway........

In drivers/etc host done entry ip adress & host name.......

for gateway services to start

do we need to make any entry abt the gateway, tcp/ip port no in drivers/etc/sapservices

i dnt hve an idea abt it......

thanks&regards

pavankumar

Former Member
0 Kudos

Hi,

Do you have any entry like below in the D:\WINDOWS\system32\drivers\etc\services?

sapgw00 3300/tcp # SAP System Gateway Port

Thnaks,

Manoj