Show TOC

Checking an RFC ConnectionLocate this document in the navigation structure

Use

If the connection test fails when you create an RFC destination or search server relation, check the following:

  • Gateway

  • RFC destination

  • TREX Configuration

Procedure

Checking the Gateway

On UNIX

  1. Check whether the process gwrd is running:

    ps -fu <gwsadm> | grep gwrd

  2. 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

  1. Use the Task Manager to check whether the process gwrd.exe is running.

  2. Check the settings for the gateway service. To do this, choose the following paths:

    • Windows 2000: Start of the navigation path Start Next navigation step Settings Next navigation step Control Panel Next navigation step Administrative Tools Next navigation step Services End of the navigation path.

    • Windows Server 2003: Start of the navigation path Start Next navigation step Administrative Tools Next navigation step Services End of the navigation path.

    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.

  3. Open the SAP System Management Consoleover Start of the navigation path Start Next navigation step Programs End of the navigation path or Start of the navigation path All Programs Next navigation step SAP System Management Console End of the navigation path. Check whether the gateway instance has started. If necessary, start the gateway instance using Start of the navigation path Action Next navigation step Start End of the navigation path.

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>

Caution

The values of the parameter HOST and INSTANCE must be written in lowercase characters.