Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SAP S/4HANA
CDS views for Analytics
Vijay Paravasthu
TekLink International, Inc.
Agenda
S/4HANA is SAP’s next-generation business suite, completely built on advanced in-memory platform SAP
HANA® – and modern design principles with the SAP Fiori user experience (UX).
Key features of S/4 HANA Solution:
Re-designed applications based on in-memory capabilities of SAP HANA
High performance - Push down calculations and processing down to SAP HANA
New user interface – enabling transactions along with context specific analytics
Choice of deployment – cloud / or-premise
Multi-tenancy support
Business
SAP R/2 SAP R/3 SAP ECC Suite on S/4 HANA
HANA
First ERP release Client Server ERP Web enabled In Memory Re-designed for
NetWeaver based Database HANA platform
Define entity types and built to the semantic relationships between them.
Define View
Define view with join
Define View with association
Define view with parameters
Interface views are the central ingredient of the Virtual Data Model.
To take advantage of powerful functionality of virtual data model in ABAP CDS views, SAP
introduced @VDM annotations to define an ABAP CDS view which can be consumed
and interpreted by Analytics engine used in different tools for Analysis. It offers additional
features.
TekLink International Confidential 14
Basic VDM View
A basic view is created on top of DDIC tables/views, which means only a basic view is a view which
interacts with database for fetching data. The fetching of data directly from database results as core
data for other type of view types without any data redundancies.
A composite view is created on top of basic views, which means composite views doesn’t interact
with database directly for data, but instead thorough dimension result set of basic views. The
multiple basic views can be used with join / association for fetching data and doing calculations
Syntax: @VDM.Viewtype: #COMPOSITE
A consumption view is created on top of composite view, which means consumption view doesn’t
interact with DDIC tables/views or basic views. The consumption view is written on top of
composite view which provides factual and cube data. This view is used to expose the data to
different analytics tools (such as HTML, SAP BusinessObjects, Analysis for Excel, SAP Lumira, etc..)
which helps to create reports and different visualization for presenting Business data.
Syntax: @VDM.Viewtype: #CONSUMPTION
We have already seen, different virtual data model view types that are used for
Analytics purpose.
But only using VDM view types is not just enough for consuming CDS view in
analytics tools because till now we have just defined data model for CDS view,
nothing related to type of data CDS view is returning. So, to let the Analytical
manager know how to interpret each CDS entity we have to declare Data
Category for each particular ABAP CDS views with VDM view type annotations.
DIMENSION: Master Data (or Business Documents) (incl. associations to attributes and texts)
TEXT: Text View (containing 1 or more language-dependent texts)
HIERARCHY: Hierarchy Nodes (contains the key of the hierarchy directory)
FACT: Transaction Data (incl. at least one measure)
CUBE: Transaction Data, incl associations to all elements with master data (“star schema”), and incl. all dimensions and all fields relevant for
grouping (“navigation attributes”). Typically a CUBE is based on a single view of category FACT
4) Aggregation Level- This type of view analytics manager offers write-back functionality
@Analytics.dataCategory: #AGGREGATIONLEVEL
REST-based protocol for querying and updating data and is built on standardized technologies such
as HTTP, Atom/XML, and JSON. It is different from other REST-based web services in that it provides
a uniform way to describe both the data and the data model.
Using OData protocol, the resources are exposed in two formats; XML based Atom and JSON.
It is a set of Analytical Features integrated in SAP S/4HANA, that enables users to perform real time
analytics on the live transactional data. It comes with a set of inbuild representations of operational
data, called VDM (Virtual Data Models) which will allow users to arrive at better decisions from the
available data.
The key architectural components of SAP S/4HANA embedded analytics include
SAP HANA database
Virtual Data Model
Analytical Engine (embedded SAP BW)
OData service
Annotations:
@Analytics.query: true
@Analytics.dataCategory: #DIMENSION, #CUBE, #FACT, #AGGREGATION LEVEL
@Analytics.query: true
@Analytics.planning.enabled : true
HANA Live has pre-defined calculation views part of paid S4HANA has around 9000 std. Views across each Line of
License business
All the functions and Integrations readily available SAP is still investing more in the Integration with other
application
Runs both on-Premise and Cloud Runs both on-Premise and Cloud