Sei sulla pagina 1di 30

Your Trusted Analytics and Planning Partner

SAP S/4HANA
CDS views for Analytics

Vijay Paravasthu
TekLink International, Inc.
Agenda

 S/4 HANA Overview


 ABAP CDS Views
 VDM View Types
 CDS View Integration with BW
 CDS view Integration with Odata
 Embedded Analytics
 Native HANA vs CDS Views

TekLink International Confidential 2


S/4 HANA Intro..

 What is S/4 HANA

The Platform for Next-Generation Applications and Analytics


Introducing SAP S/4HANA, the next-generation business suite designed
to help you run simple in the digital economy. This new suite is built on
our advanced in-memory platform, SAP HANA, and offers a personalized
user experience with SAP Fiori.

TekLink International Confidential 3


S/4HANA Key benefits..

 Instant Real-time Insight for better decisions


 Re-invented Process for High Performance
 Fiori based UI for higher productivity
 Simplified architecture to lower TCO
 Engineered for providing choice of deployment (on-premise, cloud,
hybrid)
 Code push down – Most of the business logics is processed in the
database layer

TekLink International Confidential 4


Evolution of SAP S/4 HANA Solution

 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

TekLink International Confidential 5


SAP S/4HANA Analytics Architecture

TekLink International Confidential 6


ABAP Core Data Services..

 Offers capabilities beyond the traditional data modeling tools

 New modelling Infrastructure, consume Database rather the server.

 Define entity types and built to the semantic relationships between them.

TekLink International Confidential 7


CDS view Types

 Define View
 Define view with join
 Define View with association
 Define view with parameters

TekLink International Confidential 8


CDS view using Single table

TekLink International Confidential 9


CDS Views Using Join

TekLink International Confidential 10


CDS View using Association

TekLink International Confidential 11


CDS View using Parameter

TekLink International Confidential 12


Extending the CDS View

TekLink International Confidential 13


Interface Views as Virtual Data Models

 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.

Syntax: @VDM.Viewtype: #BASIC

TekLink International Confidential 15


Composite VDM View

 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

This view is the foundation for Consumption Views


Tech naming pattern: I_*. Ex: I_BillingDocumentItemCube

TekLink International Confidential 16


Consumption VDM View

 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

The view consumed by applications for Analytic reports


Tech naming pattern: C_*. ex. C_APFlexibleAging

TekLink International Confidential 17


VDM – Sales Scenario

TekLink International Confidential 18


Analytics Data Category

 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.

TekLink International Confidential 19


Analytic Data Category

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

TekLink International Confidential 20


Analytic Category Annotations

1)Dimension-Represents Master Data


@Analytics.dataCategory: #DIMENSION.

2) Fact-Fact data can not be joined with master data views.


@Analytics.dataCategory: #FACT

3) Cube-Fact data can be joined with master data views


@Analytics.dataCategory: #CUBE

4) Aggregation Level- This type of view analytics manager offers write-back functionality
@Analytics.dataCategory: #AGGREGATIONLEVEL

TekLink International Confidential 21


Sample Dimension Analytic Category using Basic View

TekLink International Confidential 22


CDS Dimension Analytic Category as Source to BW

@Analytics: { dataCategory:#DIMENSION, dataExtraction.enabled:true }


@Analytics.dataExtraction.delta.byElement.name:'LastChangeDateTime'
@Analytics.dataExtraction.delta.byElement.maxDelayInSeconds: 1800

TekLink International Confidential 23


Odata Service

 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.

TekLink International Confidential 24


CDS view for Odata

 Annotation: @OData.publish: true


 /n/IWFND/MAINT_SERVICE to add service

TekLink International Confidential 25


Embedded Analytics

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

TekLink International Confidential 26


Embedded Analytics - Methodology

Approaches Using Consumption views[C_]:


 Embedded Analytics with SAP S/4HANA
 Integration between SAP S/4HANA and SAP BO
 Integration between SAP S/4HANA and SAP BW

Annotations:
@Analytics.query: true
@Analytics.dataCategory: #DIMENSION, #CUBE, #FACT, #AGGREGATION LEVEL
@Analytics.query: true
@Analytics.planning.enabled : true

TekLink International Confidential 27


Native Hana vs. CDS Views

Native Hana CDS Views

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

Performance has to be manually streamlined across Performance is more stable


engines

Graphical design AMDP script Coding

TekLink International Confidential 28


Queries!!
Your Trusted Analytics and Planning Partner
BW and HANA EDW BI Strategy & Roadmap
S/4HANA Embedded Analytics Big Data Adoption Strategy
Trade Management Solutions Global Delivery & Support
Business Objects
Predictive Analytics

BPC Planning and Innovation Labs & PoC


Consolidation Solution Accelerators
S/4HANA Planning Cloud & Technical Services
Cloud Planning Solutions

TekLink International Confidential 30

Potrebbero piacerti anche