Setting up the Program Start Using SAP Gateway 

Use

You are making the settings for using Method A that uses the SAP gateway to start a program for the opening the RFC connection.

See also: Setting up an RFC Destination for a RFC Server

Prerequisites

The following information is required for method A:

Information

Description

GATEWAY_USER

Name of the user who started the SAP Gateway on GATEWAY_HOST

CONVERTER_HOST

Name of the conversion server (such as hs100)

Procedure

Replace the text between < and > with the values used in your enterprise.

<GATEWAY_HOST> Replace using the name of the computer where your SAP gateway is running.

  1. Create a user with the name <GATEWAY_USER> on the conversion server.
  1. Log on to the conversion server using <GATEWAY_USER>.
  1. Create or modify the file $HOME/.rhosts .
  1. Add the line <GATEWAY_HOST> to the file $HOME/.rhosts.
  1. Set the access authorization for the file using the following values: -rw-r--r--
    (for example with chmod 644 $HOME/.rhosts).

Read the main page for the command remote login if problems occur. The command could be man remsh or man rsh depending on the computer. Or contact a UNIX specialist.

IN some cases the Gateway computer must entered twice in two lines in the file $HOME/.rhosts once with and once without the domain name.

hs0009

hs0009.sap-ag.de

  1. Set the access authorization for <RFC_SERVER> so that <GATEWAY_USER> is authorized for at least r- a nd x- .

chmod 755 <RFC_SERVER>

  1. Give authorization to write to the files and files that are written on the <RFC_SERVER> the user <GATEWAY_USER>.

If you are using the SAP example programs you must give authorization to the <GATEWAY_USER> to write to the directories where <RFC_SERVER> is located.

  1. Start the transaction SM59 (Display and maintenance of RFC destinations) on your SAP System
  1. Select the value Start on explicit host as activation type.

Enter <RFC_SERVER> as the value for Program and <CONVERTER_HOST> as Target machine.

  1. Select the entry Gateway options in the Destination menu.

Enter <GATEWAY_HOST> as Gateway host and as <GATEWAY_SERVICE> Gateway service. Confirm the entry and save the document.

  1. Select Test connection.

Hints for troubleshooting can be found when files were created <RFC_SERVER>.

No files exist when:

Verify your procedure. You can find information in the UNIX help ( man remsh or man rsh ).
Conversion can only be executed when the connection test is successful.