If the connection test fails when you create an RFC destination or search server relation, check the following:
- RFC destination
- TREX configuration
Checking the Gateway
- Check that the process gwrd is running:
ps -fu <gwsadm> | grep gwrd
- Check whether the group to which the user <gwsadm> belongs has the access permission rwx for the directory /usr/sap/<SAPSID>/TRX<instance_number>.
- Use the Task Manager to check whether the process gwrd.exe is running.
- Check the settings of the gateway service. To do this, choose the following paths:
- Windows 2000: Start → Settings → Control Panel → Administrative Tools → Services.
- Windows Server 2003: Start → Administrative Tools → Services.
Start the service SAPGWS_<SAPSYSNR> if it is not already running. If necessary, change the start type of the service so that it starts automatically.
- Open the SAP Management Console by choosing Start → Programs or All Programs → SAP System Management Console. Check whether the gateway instance has started. If necessary, start the gateway instance using Action → Start.
Checking an RFC destination:
Check the data that you entered when you created the RFC destination. Pay attention to lowercase and uppercase letters in the input parameters.
Checking the TREX Configuration
Check the gateway parameters in the file <TREX_DIR>/<TREX_host_name>/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?
The values for the parameters HOST and INSTANCE must be entered in lower case.