How to Register a program on a Gateway??
Posted by brightenup on November 15, 2007
Many times we would have encountered problems in the SAP system, in the SM59 or work process trace files, which says “ERROR: program ABCD not registered”
To avoid this error, we need to register the program ABCD on the gateway. The server program is responsible for its registration on the gateway.
To register the program login into the OS level as sudo su – <sid>adm and execute the following command.
rfcexec –g<program id> -a<gateway host name> -x<gateway service>
rfcexec is the server program name, the <program id> can be obtained from SM59, it is case sensitive and should match with the entry in SM59. The <gateway host name> and <gateway service> can be obtained from the transaction SMGW.
The connection will fail once this command is terminated or the user executing this command logs off
To avoid this, instead of using the above mentioned command an entry should be made in the file saprfc.ini
To do this, execute the following command
sudo su – <sid>adm
rfcexec –D<destination name>
<destination name> is the RFC destination name in SM59
Eg: rfcexec –DXYZ
Where XYZ is the name of the RFC destination in SM59
To check if the program is registered,
In transaction SMGW choose GOTO-> Logged on clients. There should be an entry for the server program in the screen that is displayed with system type Registered_TP (which indicates that the program is registered)
Leave a Reply