I am writing this blog to describe steps to build RFC connection from cloud to on-premise using SAP Cloud Connector.
- OS: Windows10 64-bit
- CF cli: 6.51.0+2acd15650.2020-04-07
- CF (Europe – Frankfurt)
- NetWeaver ABAP 7.53 SP0
- SAP Cloud Connector 2.11.2
1. Setup Cloud Connector
Access SAP Cloud Connector and setup connection from SAP Cloud Platform to ABAP Server.
1.1. Add Subaccount
Click on “Add subaccount” button via menu “Connector”.
Enter Subaccount information.
If you use a trial account, do not use “Europe(Rot) – trial”. It is for Neo Environment.
“Subaccount” is displayed on SAP Cloud Platform Cockpit menu “Overview”.
1.2. Add ABAP Server to Subaccount setting.
Select “Cloud To On-Premise” menu and click on “+” icon.
Select “ABAP System” as Back-end Type.
Select “RFC” as Protocol.
My ABAP server does not have any Load balancers.
Enter “Application Server” and “Instance Number”.
No description at this point.
“Check Internal Host” is on and click on “Finish” button.
Click on check availability icon and check the availability.
1.3. Add Accessible Function modules
Click on “+” icon.
Enter Function information and the result is like this. I used Prefix Naming Policy, which does not need “*” as wildcard.
“BAPI_” is ncessary, since SAP Cloud SDK automatically call “BAPI_TRANSACTION_COMMIT”. I have not check the exact condition to call the BAPI.
Now Cloud Connector setting is completed. As a result, we can see the ABAP system from SAP Cloud Platform Cockpit.
Go to Subaccount and select menu Connectivity -> Cloud Connecotrs.
2. Define ABAP Server Destination
Create Destination service by CF cli command “cf create-service”. “lite” is service plan name.
cf create-service destination lite <destination name>
In my case, I have already created my destination service.
Now define destination for invocation. Go to SAP Cloud Cockpit destination instance and define ABAP service destination like this. Though I defined the destination under destination service, you can also define the one under subaccount -> Connectivity.
You can test the connection!