
SAP (ABAP) Level
1. Login to your SAP system. Go to transaction code SM59. Choose Create. Choose T (TCP/IP connection) for the Connection Type and fill in other field. Save your entries.

2. On the Technical Settings tab, choose Registered server program for Activation Type. Name the RFC server uses to register with the SAP Gateway for Program ID. You can name it like <REGISTRATION_NAME> (case sensitive).

3. Fill in the gateway if standalone otherwise just leave it blank if the gateway is from the application server.
Note:
• Gateway host: The host name to which the external program is registered (corresponds to parameter <HOST> without router string)
• Gateway service: Port of the gateway (corresponds to parameter <SERVICE>)
• If you are using the SAP Gateway of the application server, an RFC server needs to be registered for every application server used.
4. Save your entries and choose Test Connection.

Operating System Level
Temporary Registration
The registration process will be terminated once the SIDadm log off or command cancelled.
1. Login to the operating system as SIDadm. Execute below command
rfcexec -r -a <PROGRAM-ID> -g <HOSTNAME> -x <SAPGWxx>
Note:
• program_id is case sensitive and can be obtain from transaction code SM59.
• hostname & gateway can be obtain from transaction code SMGW
Permanent Registration
1. Login to the operating system as SIDadm. Using saprfc.ini file, you have to specify the path to this file in the environment variable RFC_INI.
2. Execute below command.
rfcexec -D <Destination-Name>
Verify Registration Process
The verify the program is registered, execute transaction code SMGW. Choose Goto > Logged on client. You can see something like below
LU name: ‘host name’ of the computer, on which the external program runs
TP name: <PID>
System Type: “Registered server”



