Integrating BW Queries with S/4HANA Embedded Analytics via CDS Views (Part 3)
Preview · a free account unlocks the full lesson
Learn how S/4HANA embedded analytics CDS views expose operational data directly for analytical consumption, how they relate to BW queries and InfoProviders, and how consultants design hybrid reporting architectures that combine live operational data with historical BW data.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Embedded analytics in S/4HANA is built on the principle that transactional tables can be read live, in real time, without extraction, using CDS (Core Data Services) views annotated with analytical semantics. This is architecturally different from classical BW, where data is extracted, transformed, and persisted in InfoProviders before it can be queried. Understanding when to use embedded analytics CDS views versus BW queries is a core skill for any consultant working on S/4HANA or BW/4HANA landscapes.
A CDS view intended for analytical consumption carries annotations such as @Analytics.query: true, which tells the system to expose it as an OData analytical service consumable by Fiori analytical apps, Analysis for Office, or SAP Analytics Cloud live connections.
These views are built on top of interface views and basic views in a layered virtual data model (VDM), where basic views read directly from underlying transparent tables or database views, composite views combine multiple basic views with joins and unions, and consumption views add aggregation, filtering, and analytical annotations for reporting.
The key difference from BW is persistence and latency. Embedded analytics CDS views execute their logic at query runtime against live operational tables in the S/4HANA database, so the data is always current to the second, but every query execution recalculates joins and aggregations on the fly. BW queries, by contrast, run against materialized InfoProviders where data has already been extracted, transformed, and often pre-aggregated, trading data freshness for predictable query performance and the ability to combine years of historical data without stressing the operational system.
In practice, most enterprise landscapes use both approaches together. Embedded analytics is well suited to operational, tactical reporting needs such as open sales order monitoring, real-time inventory positions, or exception dashboards where users need current-day accuracy and the data volume is bounded by natural operational limits (open documents, current period).
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.