Documente Academic
Documente Profesional
Documente Cultură
Public
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP's
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.
Public
Agenda
Data Modeling in SAP HANA
New Approaches
Best Practices
Future Look
Public
Physical Tables
Database Layer
Public
Calculation View
Multidimensional Tools
support Hierarchies for
Navigation, Filtering and
Aggregation and HANA
Prompts (Variables & Input
Parameters) for efficient
Pre-Filtering of Data.
Calculation Views
are usually build upon
Analytic-, AttributeViews, and Column
Tables
Analytical View
Attribute View
Column Table
Public
Complex Calculation
Views demand a
more explicit intent
and control of the
modeled set-based
data flow, i.e. slicing,
aggregation and
filtering of sets as
input to joins, unions
etc.
Public
Attribute Views
Analytic Views
Calculation View
SAP AG 2011
Public
SAP AG 2011
Public
10
Analytical View
Fact Table
N
N
fact table contain the key figures
Measures
Dimensions describe the
key figures and enrich the data
Cardinality in star schemas is generally N:1 fact to dimension, Left Outer Joins
Left Outer
N
N
N
1
SAP AG 2011
HANA Analytical Views are highly optimized for aggregating mass data
Public
11
SAP AG 2011
Public
12
Application UI
Calculation Views are composite views and can be used to combine other views
Can consume other Analytical-, Attribute-, other Calculation Views & tables
Approach to model custom scenarios like
Combined use of Multiple-Fact Tables/Analytics Views
Build Models on Normalized Data
Re-Use and stack views
Calculation View
SAP AG 2011
Public
13
Calculation View
Attribute View
Analytical View
Calculation View
Column Table
SAP AG 2011
Public
14
Scripted
SAP AG 2011
Public
15
New Approaches
SAP HANA Information Models
Public
17
Usage Scenario
Dynamic hierarchy structures and properties are required
Star-Join Calculation Views (details see following slides)
Dynamically mapped attributes
Public
18
Dimension Properties
All DIM-View Attributes are automatically part of the StarJoin (incl. Hierarchies)
DIM-Views are added as shared (referenced) dimensions, changes to dimension
views are immediately available
Local hierarchies can also be defined
Measures, like Counters use the dimension reference, hence can reference
to attributes hidden from the output
UseCase
Make use of special Calculation View Dimension capabilities
(e.g. parameterized Hierarchies) or multiple fact-table input
Important Note: Star Join-Views currently cannot regarded a replacement for Analytic View
capability, especially as they have not been yet fully optimized for aggregation performance. Further,
Star Join-Views cannot be consumed by other Calculation Views.
2014 SAP SE or an SAP affiliate company. All rights reserved.
Public
19
To enable consumption
Remote data structures are registered and referenced as virtual tables
Virtual tables can also be consumed as data sources within HANA
Calculation Views.
Supported external systems and restrictions are documented in SAP note 1868209
Public
20
Switching on
performance analysis
mode
Public
21
Explain Plan
Public
22
Public
23
Best Practices
SAP HANA Information Models
Calculation View
Analytical View
Attribute View
Analytical Privileges
Column
Store Tables
Public
25
Calculation View
STAR SCHEMA MODEL
AGGREGATION
WITH OR WITHOUT
WHERE CLAUSES
Complex Joins
2014 SAP SE or an SAP affiliate company. All rights reserved.
26
Filters pushed
down
Aggregation
Public
27
Public
28
Public
29
COUNT
Apple
3000000
Banana
4000000
Orange
9000000
CE Functions will try to exploit underlying database engines and will push
filters down, prune columns and omit joins where possible
FIELDA
COUNT
Apple
3000000
Banana
4000000
Orange
9000000
Public
30
Constraint Filter
$$YEAR_1$$
2014 SAP SE or an SAP affiliate company. All rights reserved.
Constraint Filter
$$YEAR_2$$
Public
31
Constraint Filter
$$YEAR_1$$
2014 SAP SE or an SAP affiliate company. All rights reserved.
Constraint Filter
$$YEAR_2$$
Public
32
Tips and Tricks Union with Constants for Input Source Pruning
SELECT
ORDER
SALESORG
DIVISION
AMOUNT
QUANTITY
GROUP_CONSTANT
Constant Column
FROM VIEW
WHERE
(GROUP_CONSTANT = A AND ORDER IN 1, 2,3)
OR
(GROUP_CONSTANT = B AND ORDER IN 6,7,8)
Public
33
Standard Union
Public
34
Optimized join
Where clause(s) filters data-set
before Join occurs
Public
35
Split big
models into
smaller parts
Do not build
monolithic
models
Demands a more explicit intent and control of the modeled setbased data flow, i.e. slicing, aggregation and filtering of sets as
input to joins, unions etc.
2014 SAP SE or an SAP affiliate company. All rights reserved.
Public
36
SAP HANA Live! Virtual Data Models for SAP Business Suite
Open Interfaces https | oData | SQL | MDX
SAPdelivered
Query
Views
Personalized
Views
Personalized
Views
Completely build on
SAP HANA Calculation Views
Personalized
Views
Customer Extensions
Reuse Views
Private Views
Physical Tables
Query Views
Top of the SAP HANA Live view
hierarchy (VDM) and provide
consumable output fields
Query Views are consumed by reports
or analytical applications
Reuse Views
Re-use of
Real-Time
Views
Private Views
encapsulate SQL transformations on
single or multiple data base tables or
Reuse views
Private Views are comparable to
subroutines
Public
37
38
Outlook
SAP HANA Information Models
Script-based CV enhancements
Table function support
Output column structure import
Future Direction
Harmonize object naming
Supportability
Debugging Views with drill-down
analysis, join cardinality
Logging and tracing for modeler
plugins (preferences)
WebIDE
Calculation View editor
Analytic Privilege editor
Public
40
Further Information
Public
41
Feedback
Please complete your session evaluation for
DMM103.
Public
4242
http://sapdcodehandson.sap.com
http://sapdcode.com/online
Public
43
Thank you
Contact information:
Christoph Morgen
SAP HANA Product Management
SAP SE | Dietmar-Hopp-Allee 16 | 69190 Walldorf | Germany
christoph.morgen@sap.com | www.sap.com
Source: http://www.saphanacentral.com/
Public
45