RFC Destination is one of the way to connect from an ABAP system to an external system. This weblog talks about the basic HTTP connection to external server (type G).
Business usecase from my area of expertise is connecting any R/3 system to a CE ESR (mainly for Proxy generation of Services Modeled in ESR).
Go to transaction SM59.
UI looks like as follows:
As shown in the picture above, select the HTPP connection to external server and click on the Create icon (marked in red).
RFC Connection UI will come up. Fill in the necessary details as shown below:
Note that RFC Name should be unique, connection type should be Type-G.
Other information you need to enter is the host (or IP), Port and the Context root. The following URL should match the service deployed on AS.
A good example to use the RFC destination will be to write a small ABAP code to establish connection to a servlet deployed on AS. User can use HTTP protocol to invoke it from ABAP.
Click on the save iconand you will recieve an info message stating "HTTP connection may not be secure" which is true.
Press to continue.
Now most of the application which the RFC destination points to will require some basic authentication. And if it is not provided part of the RFC destination, quite possible when the program uses the RFC Destination, it prompts for username-password! So lets enter the logon & security details as shown below:
Click on the save icon
- Incase wrong entries are provided error message comes at the status bar:
- Connection test DO NOT check the credentials. Even if wrong credentials are passed this information is not validated.
Next steps... write small abap code to invoke a servlet...!!! Sounds simple & interesting.