SAP RFC Program not registered

SAP RFC Program not registered error

When new RFC with type T is created the testing the same through SM59 may get error as shown below with error "SAP RFC Program not registered".

Logon     Connection Error
Error Details     Error when opening an RFC connection
Error Details     ERROR: program <program name>not registered
Error Details     LOCATION: SAP-Gateway on host xxxxxx / sapgw01
Error Details     DETAIL: TP <program name> not registered
Error Details     COMPONENT: SAP-Gateway
Error Details     COUNTER: 6268
Error Details     MODULE: gwr3cpic.c
Error Details     LINE: 1694
Error Details     RETURN CODE: 679
Error Details     SUBRC: 0
Error Details     RELEASE: 700
Error Details     TIME: Tue Jan 27 00:56:55 2009
Error Details     VERSION: 2

The program in the above error should be registered in the gateway for this connection test to complete successfully. The server program rfcexec is responsible for its registration on the gateway."SAP RFC Program not registered".

To register the program login into the OS level as sudo su - <sid>adm and execute the following command.

rfcexec u2013g<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. When this command is executed it goes to a hanging loop.

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 u2013D<destination name>

<destination name> is the RFC destination name in SM59



So now we are done with registering the server program, but how do we check it is registered, once a server program is registered it is displayed in the Logged on clients in SMGW.

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)

For example, If you got the error "SAP RFC Program not registered". as shown below, the command that you have to execute is

Logon     Connection Error
Error when opening an RFC connection
ERROR: program PI_RFC not registered
LOCATION: SAP-Gateway on host tyhggs2561 / sapgw01
DETAIL: TP PI_RFC not registered
Details     COMPONENT: SAP-Gateway
COUNTER: 15866
MODULE: gwr3cpic.c
Details     RETURN CODE: 679

rfcexec u2013g PI_RFC -a yhggs2561 -x sapgw01
rfcexec u2013D PI_RFC

0 comments:

Post a Comment