Designing Analytical CDS Views and Embedded BW Queries (Part 2)
Preview · a free account unlocks the full lesson
Explains how to design and build analytical CDS views and embedded BW queries against S/4HANA data, including annotations, virtual InfoProviders, and integration with reporting tools.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Once the decision has been made to use embedded analytics for a given reporting requirement, the implementation work centers on two closely related technical paths: pure ABAP CDS-based analytical queries, and embedded BW queries built on top of CDS-based virtual InfoProviders. Understanding how these fit together is essential for intermediate-level design work.
Analytical CDS views are built using CDS annotations that describe analytical semantics on top of a data model. A basic CDS view exposes fields from one or more underlying database tables (often joining several standard S/4HANA tables), and analytical annotations mark certain fields as measures (with aggregation behavior such as SUM) and others as dimensions or characteristics. Additional annotations can define currency/unit conversion, hierarchies, and default aggregation.
These CDS views can be layered: a basic interface view exposes raw fields, a composite view adds joins and associations, and a consumption view (often prefixed for analytical use) adds the OData/analytical annotations that make it consumable by Fiori elements, SAP Analysis for Office, or embedded BW.
Embedded BW builds on this by allowing a BW query to be defined against a virtual InfoProvider that is generated from an underlying CDS view (rather than against a physically loaded InfoCube or ADSO).
This virtual InfoProvider behaves like a standard BW InfoProvider from the BW modeling and query design perspective — you can add restricted/calculated key figures, variables, navigational attributes, and hierarchies in the BW query designer — but at execution time, no BW-owned physical data is read; the query pushes down to the underlying CDS view, which in turn reads live application tables.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.