Analytics Legends logoAI & Analytics Legends Sign inSign up
Concept card

CDS Views

CDS Views — AI & Analytics Legends section illustration for the SAP AI & Analytics knowledge base (concepts, studies, Academy)

As of 2026-11-23

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; throughput depends on package size, parallel jobs and view complexity, so measure it in your landscape.
  • 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 — DCL protects named-user access in S/4; Datasphere consumers behind a technical user need DAC — mixed landscapes often need both, kept consistent.
  • Three-layer pattern (basic → composite → consumption); avoid stacking composite views on composite views beyond what the three layers need.
  • S/4 release-management dependency: CDS changes follow S/4 transports (2-4 week cycle).

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 enabled for extraction) to Datasphere remote tables and replication flows. Analytic Models are created separately, for example by the Import Entities wizard, which reads the CDS annotations.
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 (#CUBE, #FACT, #DIMENSION, #TEXT, #AGGREGATIONLEVEL). Together with @Analytics.query on top, enables Analytic Model generation via Import Entities.
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 checks through DCL roles. The calling user needs an S/4 role; Datasphere connections use a technical user, so Datasphere consumers need Data Access Controls instead.
Embedded analytics
Pattern of consuming CDS analytical queries directly in SAC through a live (InA) connection to S/4HANA, bypassing Datasphere. For simple operational reporting only.

Sources

  1. SAP BW/4HANA — Help Portal
  2. Beyond SAP BW: How SAP HANA Native SQL and Google Cloud Are Redefining Enterprise Analytics — SAP Community (Technology Blog Posts by Members)
  3. Building an Inventory System with RAP on BTP Trial — CDS Views Explained — SAP Community (Technology Blog Posts by Members)
  4. Building a Sales Order Backlog Report Using Custom CDS Views (Sales + Billing) — SAP Community (Enterprise Resource Planning Blog Posts by Members)
  5. Displaying CDS Views in ALV using SALV IDA — SAP Community (Technology Blog Posts by SAP)
  6. Improving SAP HANA DB Performance: Two Common CDS View Pitfalls and How to Fix Them — SAP Community (ABAP Blog Posts)
  7. Conversational Analytics on SAP S/4HANA CDS View Data with AI Claude Code and SAP BusinessObjects — SAP Community (Artificial Intelligence Blogs Posts)
  8. Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-2] — SAP Community (Technology Blog Posts by Members)
  9. S/4HANA CDS View Dependency Navigator — SAP Community (Enterprise Resource Planning Blog Posts by Members)
  10. Sales Configuration display by CDS with table function/HANA SQL for Embedded Analytics and Fiori RAP — SAP Community (Technology Blog Posts by Members)
  11. CDS View Linkage between Outbound Delivery, ODO, Warehouse Order & Warehouse Task — SAP Community (Enterprise Resource Planning Blog Posts by SAP)
  12. Dump When Checking Faulty RAP Object Based On Union CDS-View (OnPremise 2023 SP01) — SAP Community (ABAP Blog Posts)
  13. SAP Sales & Service Cloud V2 + ESM - Track your API Consumption via Embedded Analytics table — SAP Community (CRM and CX Blog Posts by SAP)
  14. How to create a RAP application using a parameterized CDS view — SAP Community (ABAP Blog Posts)
  15. Enhancing Standard CDS Views in FIORI My Inbox — SAP Community (Technology Blog Posts by Members)
  16. HOW TO FETCH DATA FOR THE LATEST RECORD FROM SAP TABLE USING CDS VIEW — SAP Community (ABAP Blog Posts)
  17. Why SELECT returns different rows when querying a CDS View on MSEG versus MSEG directly — SAP Community (ABAP Blog Posts)
  18. What is SAP S/4HANA Embedded Analytics and How Can I Develop My Skills? — SAP Community (Data and Analytics Learning Group Blog posts)
  19. Calculating IBP Technical Week “Key Figure Date” in S/4HANA Using CDS View — SAP Community (ABAP Blog Posts)
  20. Custom CDS Views – What’s New up to 2602 — SAP Community (Enterprise Resource Planning Blog Posts by SAP)
  21. Consuming Data Products in SAP HANA Cloud via SAP Business Application Studio/SAP Build Code — SAP Community (Technology Blog Posts by SAP)
  22. Resources for Learning and Enablement: SAP Incentive Management and Embedded Analytics — SAP Community (Customer Experience Learning Group Blog Posts)
  23. A Handy Custom Report to Scan SAP CDS Views for Usage of Search Strings — SAP Community (ABAP Blog Posts)
  24. Detecting CDS View 2nd Level Dependencies on Custom Fields in SAP Transport Cross Reference Check — SAP Community (Technology Blog Posts by Members)
  25. Building a GL Account Hierarchy for SAC Planning with CDS Views – Part 3: Description for Hierarchy — SAP Community (Technology Blog Posts by Members)
  26. Authorization setup for SAC Import Model from S4 ABAP CDS Views — SAP Community (Tooling (+ SAP Build) Blog Posts)

Full card with the Consultant plan — €19.90/month. 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.

Open in the app →

Open missions

SAP analytics jobs and contracts · freelance SAP contracts.