Some weeks ago somebody ask me about how to connect the virtual machine with the SAP HANA Cloud open Platform provisioned by SAP AG.
I’ve been researching and this tutorial will explain how to do it step by step. In next tutorials I will use this connection as back-end and the front-end will be created on SAP HANA Cloud Platform.
The image below explain how the different systems are going to work together and synchronized. This image belong to SAP Official help document.
- Create a SAP HANA Cloud Platform account
SAP HANA Cloud Connector
From SAP development tools page in Cloud section we need to download the Cloud Connector. I’ll share the example using the windows (portable) version. You can read the oficial documentation and prerequisites for more details about the connector.
Extract the content of the ZIP file and execute the go.bat file.
Start the SAP NW AS ABAP and BW 7.50 SP02 : Virtual Machine.
In your web browser (within Windows OS), open the url: https://127.0.0.1:8443. Login using the default user: Administrator and password: manage (the system will ask to you change the default password).
Define a SubAccount using your SAP HANA Cloud account information and the Region hanatrial.ondemand.com.
Your connection should looks like the image below.
In Cloud To On-Premise section, create a new Mapping Virtual To Internal System.
Select ABAP System as back-end.
Select HTTPS as protocol.
Put 127.0.0.1 and 44300 as on-premise host.
Put the same 127.0.0.1 and 44300 as Virtual information.
Use None as principal type.
Select Check Internal Host option. Your sumary should look like this. Finish
This is the Mapping Virtual To Internal System configurated. Clic on Add button at Resources Accessible On 127.0.0.1:44300 section.
Put the OData url (/sap/opu/odata/sap/zflight_crud_srv_01), created on the tutorial: SAP ABAP Repository – CRUD OData Service, check the Enabled option and select Path and all sub-paths as Access Policity.
The Cloud To On-Premise configuration looks like this:
SAP HANA Cloud Cockpit
Get into your HANA Cloud account and within Connectivity menu select Cloud Connectors option. We can see our SAP virtual machine system as back-end linked with our SAP HANA Cloud account.
Within Destination menu option create a New Destination.
Set theses parameters:
- TutorialOData as Name.
- HTTP as Type.
- https://127.0.0.1:44300/sap/opu/odata/sap/zflight_crud_srv_01 as URL.
- OnPremise as Proxy Type,
- BasicAuthentication as Authentication.
- developer as User.
- Appl1ance as Password.
- Additional Properties:
- WebIDEEnabled = true
- WebIDESystem = localhost
- WebIDEUsage = odata_gen,odata_abap,bsp_execute_abap
- Save it
Clic on Check Connection button and the result should be Succesful.