Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
ShilpaVij
Advisor
Advisor
0 Kudos
This blog is the Part4 of the 5-part blog-series. In this blog, we will introduce REST Interfaces which are exposed from SAP Process Orchestration (SAP PO) can be exposed as Open APIs and managed through SAP Cloud Platform, API Management. Here with this blog you will be able to connect SAP Cloud Platform, API Management to your backend (SAP PO System) using cloud connector and will be able to manage REST Endpoints exposed in SAP PO.

Cloud Connector Overview

The SAP Cloud Platform cloud connector (cloud connector) serves as the link between on-demand applications in SAP Cloud Platform and existing on premise systems. The cloud connector runs as on premise agent in a secured network and acts as a reverse invoke proxy between the on-premise network and SAP Cloud Platform. Due to its reverse invoke support, you don't need to configure the on-premise firewall to allow external access from the cloud to internal systems

 

To know more on SAP Cloud Platform, API Management, refer

In this blog I have taken an example of my (******) hanatrial account for SAP Cloud Platform, API Management, N75 as a backend(PO) system.

 

Pre-requisites

  • You have access to N75 or any of the PO system

  •  IFLOW with REST endpoint should be available in PO system.


Let’s get started!

For Downloading and configuring cloud connector refer

https://blogs.sap.com/2015/02/11/set-up-your-sap-web-ide-on-hana-cloud-part-2/

Type https://localhost:**** on your browser following screen should come up



Enter User name and password to login as Admin

Click on Add Account to add an account



Fill in the appropriate details as shown below for your account

Here for SAP Cloud Platform, API Management I have taken example of my hanatrial account



Under Account Dashboard; Account should be added

As I have added my hanatrial account as host so my hanatrial account should be added as shown below



Now we will be adding the On Prem system for eg N75 (PO system)

Click on Cloud To On-Premise



Add Backend System as SAP Process Integration and Click Next



Select Protocol as HTTP and click Next



Add host and port of Backend System and click Next



In Virtual Host and port don’t put the same name and port as above



 

Select Principle Type as None and Click Next

Check the summary, select internal host checkbox and select Finish

System should get added

Click on Add button under Resources Accessible to add url path as”/” this is to consider all the resources after “/”



 

 

With this we have configured our backend system and now we will check in SAP API Management whether we can access REST services.

 Let’s Manage REST Endpoints from SAP Cloud Platform, API Management!

Open SAP Cloud Platform Cockpit from where I can see under Connectivity – Cloud Connectors the successful connection to the on-prem system.



 

That’s All you need now let’s go to API Portal ->Services->click on API Management Tile->click on Access API Portal.



Click on Develop and Navigate to API Providers



Create API Provider and fill in the following details



Navigate to Authentication and give backend system details



In my case I am connecting to N75 PO system and catalog service settings look like this



To test the new connectivity, just create a new API Proxy. Give API Provider as “PISYS” and give URL(which we have copied above from PO system) for eg /RESTAdapter/REST_VAR4/test

and Save it.

Navigate to Test and click on the API provide Basic Authorization



Post a request by giving payload in Body and a response 200 OK should come



Let’s Manage our REST Endpoint!

Now lets apply traffic management policy which is Response Cache which will  improve API's performance through reduced latency and network traffic. It caches data from a backend resource to reduce the number of requests to the resource

 
14 Comments