IT CanvassTalk to an advisor
SAP APIs · LessonBy , SAP Trainer, 10 yrs · Published · SAP S/4HANA 2023 · all levels

CDS APIs

CDS-based APIs expose SAP data models as services, especially OData, directly from Core Data Services views. In modern SAP, CDS is the primary way to build APIs and the data behind Fiori.

Quick answer

CDS-based APIs embody code-to-data and clean-core: define the model once, expose it as a service, and consume it everywhere.

Key takeaways
  • CDS views define rich, reusable data models on HANA (joins, aggregations, associations, annotations).
  • The ABAP RESTful Application Programming model (RAP) is the strategic framework: you define behaviour on CDS entities and bind them…
  • In modern SAP, CDS is the primary way to build APIs and the data behind Fiori.
  • Watch out: Bypassing CDS with hand-built services.

CDS as the API foundation

CDS views define rich, reusable data models on HANA (joins, aggregations, associations, annotations). By annotating a CDS view (or using a RAP service definition/binding), you expose it as an OData API, so the same model powers Fiori, analytics and external integration. This is the modern, low-effort path to SAP APIs.

How it works

@OData.publish: true
define view entity Z_C_SalesOrder as select from I_SalesOrder { ... }
" → generates an OData service consumable by Fiori and integrations

RAP and service binding

The ABAP RESTful Application Programming model (RAP) is the strategic framework: you define behaviour on CDS entities and bind them as OData (V2 or V4) services. This produces robust, transactional APIs for both UIs and integration, aligned with clean-core and cloud.

Why it matters

CDS-based APIs embody code-to-data and clean-core: define the model once, expose it as a service, and consume it everywhere. For modern SAP development and integration, CDS + OData (via RAP) is the standard, and a key skill.

Common pitfalls

  • Bypassing CDS with hand-built services.
  • Ignoring annotations that generate/shape the API.
  • Not using RAP for transactional APIs.

Practice challenge

+0 XPStreak ×0
Question 1 of 3
Which statement is true of CDS APIs?

Frequently asked questions

What does the term CDS APIs refer to in SAP?
CDS-based APIs expose SAP data models as services, especially OData, directly from Core Data Services views. In modern SAP, CDS is the primary way to build APIs and the data behind Fiori.
What is connected to CDS APIs in an SAP landscape?
CDS views define rich, reusable data models on HANA (joins, aggregations, associations, annotations).
What is the practical takeaway on CDS APIs?
CDS-based APIs embody code-to-data and clean-core: define the model once, expose it as a service, and consume it everywhere.
What tends to go wrong with CDS APIs?
Bypassing CDS with hand-built services. Ignoring annotations that generate/shape the API. Not using RAP for transactional APIs.
Already working on SAP and stuck on a live ticket?Get an expert SAP developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support