CDS Views
As of 2026-07-24T14:00:00Z
What is CDS Views?
CDS views are the bridge layer between S/4HANA business logic and every analytics consumer — three view types (basic, composite, consumption) draw the line between 'S/4 application' and 'analytics platform'.
What it is
Core Data Services, shortened to CDS, is SAP's declarative modelling layer for defining semantically rich views directly on the HANA database inside S/4HANA. Instead of writing procedural ABAP loops or hand-tuned SQL, a developer writes a compact DDL statement that describes what a view should expose — fields, associations, currency and quantity semantics, authorisation rules — and HANA compiles that declaration into an optimised database view. For anyone doing SAP analytics work, CDS is not an optional skill to pick up later; it is the connective tissue between S/4HANA's transactional world and every downstream consumer, from Datasphere and SAC to Joule and third-party BI tools. Most extraction logic a consultant touches on a modern S/4 engagement is written, or should be written, as a CDS view.
Why it matters
- Consumption CDS views carry the @Analytics and @VDM annotations that Datasphere reads to auto-build compatible Analytic Models — get the annotations wrong and the model build breaks.
- Composite views are where business semantics (currency conversion, time filters) actually live — misplacing that logic at the wrong layer creates rework later.
- CDS view authoring is daily-bread skill: it's where most extraction logic and most consumption-layer definitions live in a real S/4 estate.
Key points
- Three view types: basic (over tables) · composite (with business logic) · consumption (analytics-exposed).
- Annotation system is the differentiator: @Semantics, @Analytics, @VDM, @AccessControl, @ObjectModel.
- ODP-CDS protocol bridges S/4 → Datasphere with metadata + extraction (50-100k rows/sec).
- Five canonical patterns: extract · currency convert · hierarchy · auth push-down · embedded analytics.
- CDS for 'what an S/4 record means'; Datasphere SQL for 'how sources combine for analytics'.
- Authorisation push-down via @AccessControl; or Datasphere DAC at catalog — pick one, don't stack.
- Three-layer pattern (basic → composite → consumption); avoid 3+ deep nesting.
- S/4 release-management dependency: CDS changes follow S/4 transports (2-4 week cycle).
- CDS Views is mastered only when it changes a named buyer decision.
- Start with the semantic contract and control model before demonstrating the tool.
Terms used on this page
- CDS (Core Data Services)
- SAP's declarative DDL framework — typed views with associations, annotations, authorisations, exposure. Sits on HANA SQL.
- Annotation
- Inline metadata declaration decorating fields/views with semantics (@Semantics, @Analytics, @VDM, @AccessControl, @ObjectModel).
- ODP-CDS
- Extraction protocol bridging S/4 (CDS views) to Datasphere. Reads CDS annotations + creates compatible Analytic Models.
- VDM (Virtual Data Model)
- SAP's hierarchical CDS view organisation — basic → composite → consumption. Each layer has annotation-defined role.
- @Analytics dataCategory
- Annotation marking a CDS view's analytics role (#FACT, #DIMENSION, #AGGREGATIONLEVEL). Drives Datasphere AM auto-creation.
- CURRENCY_CONVERSION
- Standard CDS function using TCURR/TCURX delivered tables for S/4-native currency conversion. Used inline in CDS view.
- @AccessControl
- Annotation enabling S/4-side authorisation push-down. Calling user must have S/4 role; reaches Datasphere consumers via identity propagation.
- Embedded analytics
- Pattern of exposing CDS views directly to SAC via OData, bypassing Datasphere. For simple operational reporting only.
Sources
- SAP CDS — official reference
- TechEd 2025 — recorded sessions
- SAP Note — CDS performance tuning
- Joule-assisted CDS drafting (preview)
- SAP News Center — Accelerate the Autonomous Enterprise with SAP Business Data Cloud
- SAP News Center — SAP Unveils the Autonomous Enterprise
- SAP News Center — The Future of the Enterprise Is Autonomous
- SAP News Center — 2026 SAP Sapphire Keynote: Powering the Autonomous Enterprise
- SAP Datasphere — Help Portal
- SAP Datasphere — official product page
- SAP Analytics Cloud — Help Portal
- SAP Analytics Cloud — official product page
- SAP BW/4HANA — Help Portal
- SAP S/4HANA — Help Portal
- SAP News Center
- SAP Community
- SAP — industries overview
- Gartner — research & analyst site
- BARC — BI & Analytics research
- TDWI — data & analytics research
- DSAG — German-speaking SAP user group
- ASUG — Americas' SAP User Group
- Databricks — official site
- EU AI Act Art. 9 risk management requirements
- SAC Performance optimisation guide
- Beyond SAP BW: How SAP HANA Native SQL and Google Cloud Are Redefining Enterprise Analytics — SAP Community (Technology Blog Posts by Members)
- Building an Inventory System with RAP on BTP Trial — CDS Views Explained — SAP Community (Technology Blog Posts by Members)
- Building a Sales Order Backlog Report Using Custom CDS Views (Sales + Billing) — SAP Community (Enterprise Resource Planning Blog Posts by Members)
- Displaying CDS Views in ALV using SALV IDA — SAP Community (Technology Blog Posts by SAP)
- Improving SAP HANA DB Performance: Two Common CDS View Pitfalls and How to Fix Them — SAP Community (ABAP Blog Posts)
- Conversational Analytics on SAP S/4HANA CDS View Data with AI Claude Code and SAP BusinessObjects — SAP Community (Artificial Intelligence Blogs Posts)
- Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-2] — SAP Community (Technology Blog Posts by Members)
- S/4HANA CDS View Dependency Navigator — SAP Community (Enterprise Resource Planning Blog Posts by Members)
- Sales Configuration display by CDS with table function/HANA SQL for Embedded Analytics and Fiori RAP — SAP Community (Technology Blog Posts by Members)
- CDS View Linkage between Outbound Delivery, ODO, Warehouse Order & Warehouse Task — SAP Community (Enterprise Resource Planning Blog Posts by SAP)
- Dump When Checking Faulty RAP Object Based On Union CDS-View (OnPremise 2023 SP01) — SAP Community (ABAP Blog Posts)
- SAP Sales & Service Cloud V2 + ESM - Track your API Consumption via Embedded Analytics table — SAP Community (CRM and CX Blog Posts by SAP)
- How to create a RAP application using a parameterized CDS view — SAP Community (ABAP Blog Posts)
- Enhancing Standard CDS Views in FIORI My Inbox — SAP Community (Technology Blog Posts by Members)
- HOW TO FETCH DATA FOR THE LATEST RECORD FROM SAP TABLE USING CDS VIEW — SAP Community (ABAP Blog Posts)
- Why SELECT returns different rows when querying a CDS View on MSEG versus MSEG directly — SAP Community (ABAP Blog Posts)
- What is SAP S/4HANA Embedded Analytics and How Can I Develop My Skills? — SAP Community (Data and Analytics Learning Group Blog posts)
- Calculating IBP Technical Week “Key Figure Date” in S/4HANA Using CDS View — SAP Community (ABAP Blog Posts)
- Custom CDS Views – What’s New up to 2602 — SAP Community (Enterprise Resource Planning Blog Posts by SAP)
- Consuming Data Products in SAP HANA Cloud via SAP Business Application Studio/SAP Build Code — SAP Community (Technology Blog Posts by SAP)
- Resources for Learning and Enablement: SAP Incentive Management and Embedded Analytics — SAP Community (Customer Experience Learning Group Blog Posts)
- A Handy Custom Report to Scan SAP CDS Views for Usage of Search Strings — SAP Community (ABAP Blog Posts)
- Detecting CDS View 2nd Level Dependencies on Custom Fields in SAP Transport Cross Reference Check — SAP Community (Technology Blog Posts by Members)
- Building a GL Account Hierarchy for SAC Planning with CDS Views – Part 3: Description for Hierarchy — SAP Community (Technology Blog Posts by Members)
- Authorization setup for SAC Import Model from S4 ABAP CDS Views — SAP Community (Tooling (+ SAP Build) Blog Posts)
Full card available to members. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.