Sap API With Cpi
Sap API With Cpi
in
SAP CPI
Sakshi Tekale
SAP CPI helps you build and expose APIs, but API Management gives you the tools to
control those APIs by:
All the standard APIs are available in API Business Accelerator Hub/ API Business Hub
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
Building blocks in SAP API Management:
🔌 1. API Provider
Think of this as the connection setup to your backend system, like SAP CPI, S/4HANA, or
any third-party system.
🧠YouExample:
create an API Provider for SAP CPI with host URL:
https://your-cpi-tenant.hana.ondemand.com
🛡️ 2. API Proxy
"The public-facing version of your API"
An API Proxy is a wrapper around your real API (hosted on CPI, for example). This is where
you apply policies like security, quota, or rate limiting.
● External consumers never call your CPI directly — they call the API Proxy.
● You can apply API key check, OAuth, etc., here.
🧠YourExample:
real CPI endpoint:
https://your-cpi-tenant.com/http/customerdata
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
📦 3. API Product
"A bundle of APIs with access rules"
An API Product is a package of one or more API Proxies that you want to offer to a consumer
(like a partner or another developer).
🧠YouExample:
create an API Product called Customer Services which includes:
1. Configure
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
4. Connection
For username and password ->
Create an account on the SAP Gateway Demo System.
Check here: https://developers.sap.com/tutorials/gateway-demo-signup.html
6. Save
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
Creation of API Provider is successful.
Select API Provider from dropdown.
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
Discover shows list of API Proxies available.
Search for GWSAMPLE_BASIC and click OK.
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
Click on Create.
API Proxy is created successfully.
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
10. Save.
11. Deploy
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
16. Publish
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
20. Edit
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
24. In the Code Editor found in the bottom pane, look for the <APIKey ... /> tag. Replace
the string variable_containing_api_key with request.header.APIKey
https://www.linkedin.com/sakshi-tekale/
Sakshi Tekale
https://www.linkedin.com/sakshi-tekale/