SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Creating Custom Inbound API in SAP S/4HANA Cloud, public edition

SAP now offers new capabilities for integration using the developer extensibility offered in the 3 System Landscape to allow customers to create custom APIs using released ABAP objects. We will learn how to create such a custom inbound API in this tutorial.

Overview

You will learn

  • ✔How to identify objects to be consumed
  • ✔How to create a projection view
  • ✔How to create a behavior definition for the CDS projection
  • ✔How to create a service definition
  • ✔How to create a service binding
  • ✔How to create a communication scenario and to test the API
  • ✔Test your knowledge
Thomas Jung T Thomas Jung October 23, 2026
Created on February 10, 2023
Contributors

More from Thomas jung

See all 233 tutorials by Thomas jung →

Prerequisites

  • Before you start developing, the Eclipse environment and ADT has to be installed. The documentation on https://tools.hana.ondemand.com/#abap provides the steps to setup your development environment.
  • You would need your user to have the Developer role (Business role template ‘SAP-BR-DEVELOPER’) assigned to it.
  • You have created an ABAP Package under the ZCUSTOM-DEVELOPMENT ‘super package’ and has a Transport Layer attached to it.

Steps

Details

In this tutorial, we will look into one of the capabilities of developer extensibility which is to create a custom Inbound API based on released business objects. In a scenario where a released remote API is not available, but the business object was released for developer extensibility, you could use the approach mentioned below to create a custom API which can prove valuable in extracting data from the system or to integrate with other applications. While the blog focuses on the inbound scenario, these capabilities are also available for outbound scenarios.

Refer to the following information for more details:

Developing External Service Consumption

Developing APIs for Inbound Communication

You will learn

  • How to identify objects to be consumed
  • How to create a projection view
  • How to create a behavior definition for the CDS projection
  • How to create a service definition
  • How to create a service binding
  • How to create a communication scenario and to test the API
  • Test your knowledge

Step 1 Identify objects to be consumed
—

Use the API Hub (api.sap.com) to identify the business object you need. API Hub provides a list of all the APIs, CDS views, Events and Business Objects and Add-Ins exposed for developer extensibility. For my example, I am looking for Sales Order business object even though there are multiple Sales Order APIs released by SAP. Sales Order is used purely for illustration purpose.

API Hub
API Hub

Step 2 Create a Projection View
+
Step 3 Create a Behavior Definition for the CDS projection
+
Step 4 Create a Service definition
+
Step 5 Create a Service Binding
+
Step 6 Create a Communication Scenario
+
Step 7 Test your knowledge
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Identify objects to be consumed 2. Create a Projection View 3. Create a Behavior Definition for the CDS projection 4. Create a Service definition 5. Create a Service Binding 6. Create a Communication Scenario 7. Test your knowledge