3. Defining the RFC Destination in SAP

3. Defining the RFC Destination in SAP


For the e-commerce system to be able to write data in SAP, the RFC destination must be defined. This is a proprietary SAP interface for communications between SAP systems and external programs, such as ONIBEX's E-Commerce system. That is, data transactions are not limited to obtaining data from the server, but records can also be inserted; SAP can act as either Client or Server in an RFC call.


In order to configure the RFC in SAP, you need to know several parameters of the Web page to which you will be exchanging information, such as: URL, Port,  RFC type, route, version of the protocol to use, etc.


ROUTE: IDOC Interface / Application Link Enabling (ALE) > Communication > Create RFC Connections

T-Code: SM59


When accessing this transaction, the following screen will appear:



Figure-5 T-Code SM59 Initial Screen

Click over the HTTP Connections to External Server or Type G folder, and then press the “Create New” icon to create a new entry. The RFC Destination screen appears as shown in Figure-6.

 


Figure-6 Fields necessary to establish communication.


Then fill in the boxes in red:


  1. RFC Destination. – Type in the target system ID, in this case: ECOMMERCE


  1. Description 1.- Short text to describe what the connection is about: E-Commerce Portal.


  1. Target Host. –IP address of the server in which the E-Commerce Portal is installed.


  1. Service NO.- Port used for communication: 80



  1. Path Prefix: Path where the app is located: /demos/CUSTOMER/api/




Figure -7 RFC Destination screen filled in with typical data 


In the following tab, the configuration is left as shown in Figure-8:



Figure-8:    Logon & Security tab


Finally, the Special Options tab should look as shown in the following Figure-9:



Figure-9: Special Options tab

Lastly, test the communication to verify if the E-commerce backend responds to SAP, for this click on “Test Connection”.  If communication is successful, the following screen should be displayed:



Figure-10 Screen with successful connection test with external system.