Overview of Calculation View Modeling In: Sap Hana Using Sap Web Ide
Overview of Calculation View Modeling In: Sap Hana Using Sap Web Ide
Overview of Calculation View Modeling In: Sap Hana Using Sap Web Ide
Las Vegas
September 24–27, 2019
Yves Augustin
Sebastian Grass
Barcelona
October 8-10, 2019
Jan Zwickel
Yves Augustin
Bangalore
November 13-15, 2019
Raghavendra Naykar
Narasimha Rao Bolagoni
The information in this presentation is confidential and proprietary to SAP and may not be disclosed without the permission of SAP.
Except for your obligation to protect confidential information, this presentation is not subject to your license agreement or any other service
or subscription agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or any related
document, or to develop or release any functionality mentioned therein.
This presentation, or any related document and SAP's strategy and possible future developments, products and or platforms directions and
functionality are all subject to change and may be changed by SAP at any time for any reason without notice. The information in this
presentation is not a commitment, promise or legal obligation to deliver any material, code or functionality. This presentation 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. This presentation is for informational purposes and may not be incorporated into a contract. SAP
assumes no responsibility for errors or omissions in this presentation, except if such damages were caused by SAP’s intentional or gross
negligence.
All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from
expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates,
and they should not be relied upon in making purchasing decisions.
Good to Know
Overview Exercises
Graph scenarios
Spatial scenarios
SQL hierarchies
push-down of filters
join-pruning
union-pruning
column pruning
control of parallelization
model outline
auto documentation
lineage analysis
Restricted columns
Calculated columns
Currency conversion
Temporal joins
Ranking
Star joins
Anonymization
Analytic Privileges
Hierarchies
Masking
History tables
For more details see: Live Expert Series: What’s New in SAP HANA 2.0 SPS 02
For more details see: Live Expert Series: What’s New in SAP HANA 2.0 SPS 03
Model-based parallelization
Flexible ranking
Influence processing flow by session variables
Fuzzy search
K-anonymity enhancements
For more details see: Live Expert Series: What’s New in SAP HANA 2.0 SPS 04
scenario/
nodes area
display
console
problem
view
console/build information
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 22
Close windows
To clean-up your working area you can close several windows at once
Right-click on the window that you want to keep and select “Close Others”
Each mouse click to unselected field selects this Each mouse click to already selected field unselects this single
field in addition field
press CTRL+M
or double click on tab
After changing models press Save and build the file so that the changes become effective. If you save a
modification but do not build the model you will see "Pending Deployment" behind your Calculation View
file. Also the including folder(s) will be set to "Pending Deployment" and the old deployed model will be
accessed
If Connector Icon does not appear, click outside node and at node again
Deployment
deployments are done into isolated HDI containers
runtime objects of Calculation Views reside in HDI-container
(“schema”)
Access
provide: services provide access to target objects of synonyms *_HDI_CONTAINER SCHEMA YXZ _SYS_BI
(services are referenced in mta.yaml file) „external data“
right-click on db-module
1.) create SQL role for the object owner and grant required privileges to the role
CREATE ROLE "grantToOOUser";
GRANT SELECT on SCHEMA DAT372 to "grantToOOUser" WITH GRANT OPTION
2.) create SQL role for application user and grant required privileges to the role
CREATE ROLE "grantToAPUser";
GRANT SELECT on SCHEMA DAT372 to "grantToAPUser";
{ "UPS": {
"object_owner": {
3.) create and build .hdbgrants file using the user provided
"roles": [ "grantToOOUser" ]},
service "UPS" to grant these roles to the respective technical
users "application_user": {
"roles": [ "grantToAPUser" ]
} }}
objects "application_user": {
"roles": [ "grantToAPUser" ]
} }}
synonym exists
3a refer to
object
no synonym
tick only if HDI Container was tick only if roles already exist that grant authorizations for
selected as Service Connection in object, otherwise adapt .hdbgrants file manually before (see
step 1 two slides earlier).
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 36
Improvements for Step 3 of Previous Slide (Add Data Source/mass synonym)
filter schema
b) mass
creation prior
to modeling
filter target object type
Activation Recommendation
− Activation time lengthened by number of − Use default / empty / SQL ACCESS ONLY
objects that depend on activated view type of views if hierarchy views are not
− If hierarchy-views are generated more needed for reporting
dependent objects are generated:
Hierarchy views generated for plain Calculation View type…
When are hierarchy views needed? reporting tools that use reporting tools that not
hierarchy views of use hierarchy views
As a rule of thumb: modeled hierarchies
− usage of hierarchies: if you do not model
hierarchies probably these hierarchy views are
not needed Reporting
− reporting tool: most SAP reporting tools use views
views of modeled hierarchies (a) but it is
Intermediate
unlikely that 3rd party tools need these
views
hierarchy views (b)
− function of view: hierarchy views only
(c)
needed for views that are directly facing
reporting tools (a) or used as Dimension views Star-Join
with hierarchies in star-join views (c).
Dimension
view
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 40
Overview Exercises
Exercises
• Chapter 1 Create a Project with a simple Calculation View (~10 minutes)
• Chapter 4 Use new Rank node (introduced with SPS04) (~20 minutes)
Access replays Continue the conversation Check out the latest blogs
Keynotes Read and reply to blog posts See all SAP TechEd blog posts
Live interviews Ask questions Learn from peers and experts
Select lecture sessions Join discussions
http://sapteched.com/online sap.com/community SAP TechEd blog posts
www.sap.com/contactsap