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:
Figure -7 RFC Destination screen filled in with typical data 
Figure-8:    Logon & Security tab
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.