Skip to Content
avatar image
Former Member

How to register an external program on gateway

Dear SAP Gurus,

Can someone help me in registering an external program in my gateway. Because the rfc connection using the program id is throwing error "Program not registered". Also to note is there are no entries maintained inside SMGW. Do I need to create one? Please suggest.

I tried many blogs and questions on scn but no help.


Abhishek Paritosh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 14, 2017 at 03:04 PM

    Hello Abhishek,

    Each program can have its own method for registration (e.g., you might need to create / edit a configuration file; there may be a GUI that you can use to set the registration details; and so on).

    You must contact the support team related to the product that should be performing the registration, so they verify why the program is not being registered.

    Do not use the rfcexec program. This is just a test program and in 99.99999999...% of the time it is not the correct program to be registered.

    If they find an error like "registration not allowed", it would be due to the Gateway security settings.

    You can then refer to the SAP KBA 1850230.



    Add comment
    10|10000 characters needed characters exceeded

    • Hello Abhishek,

      But what did you use instead of "<PROGRAM>"?

      Was it "rfcexec"? If yes, the program will be registered and a "connection test" will work on SM59.

      However, when a business process tries to communicate with it, it will most likely fail because the rfcexec (test!) program will not have the features / functions required by the business application.



  • Sep 13, 2017 at 09:29 AM

    Hi Abhishek,

    This is quite simple, create your RFC and then go to SMGW -> GoTo -> Expert Functions -> External Security -> Create Reg Info -> Highlight the RFC destination -> Save Selected entries in file -> and click Append.

    Same for the Sec Info..

    Then the gateway will allow the RFC/program go through

    Regards, JP

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Juan,

      Thanks for your replies as always. I did the above but also I ran commands at unix level like below in BACKGROUND.

      This helped me to register the program.

      <PROGRAM> -a <PID> -g <HOST> -x <SERVICE>