If the connection test fails when you create an RFC destination or search server relation, check the following:
Gateway
RFC destination
TREX Configuration
Checking the Gateway
On UNIX
Check whether the process gwrd is running:
ps -fu <gwsadm> | grep gwrd
Check whether the group that the user belongs <gwsadm> to has the access rights rwx for the directory /usr/sap/<SAPSID>/TRX<instanznummer> .
On Windows
Use the Task Manager to check whether the process gwrd.exe is running.
Check the settings for the gateway service. To do this, choose the following paths:
Windows 2000:
.Windows Server 2003:
.If the service SAPGWS_<SAPSYSNR> does not run, start the service. If necessary, change the start type of the service so that it starts automatically.
Open the SAP System Management Consoleover or . Check whether the gateway instance has started. If necessary, start the gateway instance using .
Checking the RFC Destination
Check the data that you entered when creating the RFC Destination (see Configuring and Administrating the RFC Connection) Pay attention to lowercase and uppercase letters in the input parameters.
Checking the TREX Configuration
Check the gateway parameter in the file <TREX_DIR>/<TREX_host_nummer>/TREXRfcServer.ini:
Is the host name of the host on which the gateway is installed correct?
Does the instance number match the number you specified during the gateway installation?
[CONNECTION]
HOST=<local_host_or_host_name>
INSTANCE=sapgw<gw_instanznummer>
The values of the parameter HOST and INSTANCE must be written in lowercase characters.