How to Register Program in Sap Gateway
Below is the command to register program in SAP Gateway,You need to execute it from SAP OS level.
<program name> -a<program ID> -g<SAP gateway hostname> -x<gatewayservice>
Suppose we want “Program1 “needs to be registered:
<program name> -aProgram1 -gABC -xsapgw00
<program name> is the name of the program you are trying to run.
- Program1 is the name given in SM59 (ProgramId).
- ABC is the gateway host (from the dev_rfc1 trace above)
- sapgw00 is the gateway service (from the dev_rfc1 trace).
If the program has been registered on the local gateway you should see an entry for it in
SMGW ==> “Logged on Clients”, it will be shown as a REGISTERED_TP / REGISTERED SERVER.
The example given in note 353597 is:
rfcexec -atest -gHOST -xsapgw00
Please note that “rfcexec” is a sample program delivered with the RFCSDK. If you do the following:
rfcexec -aProgram1 -gABC -xsapgw00
This means that you are trying to register the sample program “rfcexec” with ID “Program1” on the gateway.
NOTE: As of kernel 721 ,We are not using sample program rfcexec and there is different way to allow program to register in Gateway. I’ll explain that in separate post.