Introduction:-
In this blog post, we will be going through –
- Steps to configure SAP Cloud Connector to establish connection between SCP and On-Premise system.
- Create API using API Management
SAP Cloud Connector:
The SAP Cloud Connector (SCC) acts a link between SAP Cloud Platform and On-Premise systems.
It can be used for below scenarios:-
- Connecting Cloud Applications to On-Premise Systems
- Connecting On-Premise Database Tools to SAP HANA Databases
SCP API Management:
SAP Clould Platform API Management enables you to publish, promote, and oversee APIs in a secure and scalable environment.
It enables us to use the Odata services available in On-Premise system and create API, which can be further used by third party applications.
1. Steps to configure SAP Cloud Connector to establish connection between SCP and On-Premise system.
I. Create Trial Account on SAP Cloud Platform.
- Use below link to Register on SAP Cloud Platform.
https://account.hana.ondemand.com/#/home/welcome
Pre-requisites and Steps:-
Cloud connector Setup and Creation: –
- Download SAP JVM and JDK 1.8
Prerequisites for successful installation of the Cloud Connector.
SAP Cloud Connector Installation link. Scroll down to “Cloud Connector”.
https://tools.hana.ondemand.com/#cloud
JDK Installation link.
https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
- Install SAP JVM and JDK 1.8
- Navigate to folder where SAP JVM is installed and execute go.bat (Batch file)
- This will start the Cloud Connector on local machine.
- Once Cloud Connector has started, open browser and enter URL “https://localhost:8443″.
- On Cloud Connector login page for first time use below credentials.
Username: Administrator
Password: manage
- On next page change the initial password. Now you have successfully logged in.
II. Establish connection between SAP Cloud Platform and SAP Cloud Connector.
- Navigate to folder where SAP Cloud Connector is installed and execute go.bat (Batch file).
- This will start the Cloud Connector on local machine.
- Once Cloud Connector has started, open browser and enter URL “https://localhost:8443”.
- On Cloud Connector login page for first time use below credentials.
Username: Administrator
Password: manage
- On next page change the initial password. Now you have successfully logged in.
- Now, create Subaccount with below details.
- Region: Europe (Rot) – Trial
- Subaccount: HANA trail id + trial (concatenated, use lowercase for initial letter of trial user id)
- Display Name: Free text
- Subaccount user: email id used for SCP trial account
- Password: SCP trial account password
- After entering all details click on “Save”.
- Subaccount is created successfully.
- Connection is established between your SAP Cloud Platform trail account and SAP Cloud Connector.
III. Establish Connection between SAP Cloud Connector and On-Premise system
- In SAP Could Connector, click on “Could to On-Premise” located in the left-hand menu under Subaccount you created in Step II.
- Click on “Add”.
- Now, follow the wizard and add below details.
- Back-end Type: ABAP System
- Protocol: HTTPS
- Internal Host: IP address of backend system
- Internal Port: HTTPS Port number which is enabled
- Virtual host name : Any desired name
- Virtual Port : Any desired number
- Principal Type: None
- Host In Request Header: Select Use Virtual Host
- Click on finish and check the option of Check internal host if you want to test the connection on FINISH.
- The check result will show as below while checking.
- And then finally you should have this displayed.
- In Actions column click on button “Check availability of internal host” to check whether backend system is reachable.
- Now, add Resources by clicking on “Add” button.
- URL path: /sap/iwbep/
- Active: checked
- Access Policy: Select “Path And All Sub-Paths”
- Click on “Save”.
- Follow above steps to create another resource.
- URL Path: /sap/opu/odata
- Active: checked
- Access Policy: Select “Path And All Sub-Paths”
- Click on “Save”.
- Now resources are saved.
- Finally check the status of both “Virtual to Internal System Mapping” and “Resources”. Both should show status as “Active”.
This concludes Cloud connector configuration with On-Premise system. Check in SAP Cloud Platform Cockpit under “Cloud Connectors”. On-Premise system configured should be displayed here.
2. Steps to configure API Provider and create API
- Login to SCP trial account.
- Navigate to “Neo Trial” in SAP Cloud Platform Cockpit.
- Now, click on “Services” and search for “API Management”.
- Click on tile “API Management”.
- After clicking on it, for the first time you would need to click on the Enable button and then we can see the following.
- Once enabled, click on “Access API portal”.
- In Quick Actions section click on “API Provider”. Enter below details.
-
Name: Enter name as per your choice
Description: As per your choice
In Connection Tab: –
Type: Select On-Premise
Host: Enter Virtual Host name as mentioned in Cloud Connector
Port: Enter Port as mentioned in Cloud Connector
Location ID: Keep blank
Authentication: None
Use SSL: checked
Additional Properties: sap-client – Enter sap client
In Catalog Service Settings Tab: –
Path Prefix: /sap/opu/odata
Service Collection URL: /iwfnd/catalogservice/ServiceCollection
Authentication type: Basic
Username: Backend system username
Password: Backend system password
- Click on “Save”.
- Click on Test connection. Following message should be displayed.
- Now, create API.
- Click on API Provider radio button.
- Select API Provider created above.
- Click on “Discover”.
- Search by Odata service name (created in backend).
- Select and click on OK. Keeping the rest of the details as follows and finally create.
- Select and click on OK. Keeping the rest of the details as follows and finally create.
- Search by Odata service name (created in backend).
- Finally just save and deploy.
Now, API is ready to be used in third party applications using the generated URL.
Conclusion
I have tried to cover all steps in detail so I hope you find this blog post helpful.
Please do share your thoughts and do not hesitate to ask queries in case of any issues.
Happy learning!
Original Article:
https://blogs.sap.com/2020/06/18/how-to-configure-sap-cloud-connector-create-api-using-scp-api-management/