Skip to Content
Technical Articles

How to configure SAP Cloud Connector & Create API using SCP API Management

Introduction:-

 

In this blog post, we will be going through –

  1. Steps to configure SAP Cloud Connector to establish connection between SCP and On-Premise system.
  2. 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:-

  1. Connecting Cloud Applications to On-Premise Systems
  2. 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.

  1. 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.

https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/e23f776e4d594fdbaeeb1196d47bbcc0.html#loioe23f776e4d594fdbaeeb1196d47bbcc0__jdk

 

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.

  1. Navigate to folder where SAP Cloud Connector is installed and execute go.bat (Batch file).Path%20for%20Batch%20file
  2. This will start the Cloud Connector on local machine.Could%20Connector%20service%20started
  3. Once Cloud Connector has started, open browser and enter URL “https://localhost:8443”.
  4. On Cloud Connector login page for first time use below credentials.

Username: Administrator

Password: manage

  1. On next page change the initial password. Now you have successfully logged in.
  2. Now, create Subaccount with below details.Create%20SubAccount
  • 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
  1. After entering all details click on “Save”.
  2. Subaccount is created successfully.Subaccount%20creation%20successful
  3. 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

  1. In SAP Could Connector, click on “Could to On-Premise” located in the left-hand menu under Subaccount you created in Step II.Create%20Cloud%20to%20On-Premise%20instance
  2. Click on “Add”.
  3. 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.
  1. In Actions column click on button “Check availability of internal host” to check whether backend system is reachable.
  2. Now, add Resources by clicking on “Add” button.
  3.   URL path: /sap/iwbep/
  4. Active: checked
  5. Access Policy: Select “Path And All Sub-Paths”
  6. Click on “Save”.
  7. Follow above steps to create another resource.
  8. URL Path: /sap/opu/odata
  9. Active: checked
  10. Access Policy: Select “Path And All Sub-Paths”
  11. Click on “Save”.
  12. Now resources are saved.
  13. 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

  1. Login to SCP trial account.
  2. Navigate to “Neo Trial” in SAP Cloud Platform Cockpit.
  3. Now, click on “Services” and search for “API Management”.
  4. Click on tile “API Management”.
  5. After clicking on it, for the first time you would need to click on the Enable button and then we can see the following.
  6. Once enabled, click on “Access API portal”.
  7. In Quick Actions section click on “API Provider”. Enter below details.
  8. In Overview Tab: –

    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

  9. Click on “Save”.
  10. Click on Test connection. Following message should be displayed.
  11. 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.
  12. 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!

2 Comments
You must be Logged on to comment or reply to a post.