You are on page 1of 153

Material number: 50121345

Version: 07

1
2
3
4
5
SAP HANA combines database, data processing, and application platform capabilities in-
memory. The platform provides libraries for predictive, planning, text processing, spatial,
and business analytics.

This new architecture enables converged OLTP and OLAP data processing within a
single in-memory column-based data store with ACID compliance, while eliminating data
redundancy and latency. By providing advanced capabilities, such as predictive text
analytics, spatial processing, data virtualization, on the same architecture, it further
simplifies application development and processing across big data sources and
structures. This makes SAP HANA the most suitable platform for building and deploying
next-generation, realtime applications and analytics.

6
7
Some unique features of in-memory technology are to store massive amounts of
information compressed in main memory, utilize parallel processing on multiple cores and
move data intensive calculations from the applications layer into the database layer for
even faster processing. No need for the data duplication.

Since all the detailed data is available in main memory and processed on the fly, there is
no need for aggregated information and materialized views, fundamentally simplifying the
architecture and hence reducing latency, complexity and cost.

In addition, with new multi-core multi-threaded processors, 64-bit address space and
advancement in parallel data processing; you can get scalability beyond anything you
have seen so far.

8
SAP HANA has many use cases. Customers can deploy SAP HANA is different
scenarios.

Can be used as a side-car or a fully integrated scenario.

9
10
11
The SAP Business Suite is now powered by SAP HANA, the next generation platform.
With SAP HANA, we can unify analytics and transactions into a single in-memory
platform.

The result? The suite now allows real-time planning, execution, reporting and analysis
across your end-to-end business processes.

Business users can also get a unified at finger tip 360 views of real-time information -
on any device - across all SAP Business Suite applications and even beyond like
information from sensors and social medias. And you can leverage the suite to rethink
your business processes as needed or simply invent new business models not possible
before.

The SAP HANA platform provides the basis to dramatically increase the performance of
your SAP Business Suite applications now and continue to innovate without disruption by
also having the opportunity to leverage a new generation of real-time solutions from SAP
and partners natively built on an open platform.

With the SAP Business Suite now powered by SAP HANA, SAP is simply combining
together the best suite of applications (SAP Business Suite) and the next generation
platform (SAP HANA), for driving your entire business in real-time.

12
With the SAP Business Suite now powered by SAP HANA, SAP is simply combining
together the best suite of applications (SAP Business Suite) and the next generation best
performing platform (SAP HANA), for driving your business in real-time.

This new and unique approach in the market allows your organization to always work
on a single source of truth for real-time planning, execution, reporting and analysis on
very large volumes of data. As part of this first wave of innovation, you can take
advantage of 22 business value scenarios in Finance, Sales, Marketing, Service,
Manufacturing, and +400 reports which have been optimized with SAP HANA to
achieve unprecedented performance.

By combining analytics with transactions, business users can now get a unified view
of information within context rather than having to go back and forth between
applications. Business users can interact in real-time and access all data, of all types, on
any device of their choice.

13
14
15
** Notes relating to RDS

SAP HANA Live provides models and model exploration tools, SAP HANA Live RDS
provides SAP BI reporting content based on SAP HANA Live models

SAP HANA Live does not need SAP HANA Live RDS

SAP HANA Live RDS does need SAP HANA Live

SAP HANA Live actually comprises Analytical Model

SAP HANA Live for SAP Business Suite comes with a comprehensive set of predefined
models from across the SAP Business Suite.

SAP HANA-models contain all necessary joins and transformations to turn the data in
your database tables into meaningful information.

16
** Notes relating to RDS

There is a separate RDS for SAP HANA Live but we must not confuse SAP HANA
Live with the RDS for SAP HANA Live

SAP HANA Live provides models and model exploration tools, SAP HANA Live RDS
provides SAP BI reporting content based on SAP HANA Live models

SAP HANA Live does not need SAP HANA Live RDS

SAP HANA Live RDS does need SAP HANA Live

SAP HANA Live actually comprises Analytical Model

SAP HANA Live for SAP Business Suite comes with a comprehensive set of predefined
models from across the SAP Business Suite.

SAP HANA-models contain all necessary joins and transformations to turn the data in
your database tables into meaningful information.

17
SAP HANA Live delivers packages covering a large number of Suite application and
specific solution areas (FI, SD, MM, GRC, CRM etc.)
You install only what you need from Service Marketplace. Here is a list of all currently
(SAP HANA 1.0 SP04) available SAP HANA Live offerings:
Following product versions containing a virtual data model on SAP HANA are covered:
SAP HANA Live for SAP ERP 1.0 (SAP HANA ANALYTICS FOR ERP 1.0)
SAP HANA Live for EHP 4 for SAP ERP 1.0 (SAP HANA ANALY. ERP EHP4 1.0)
SAP HANA Live for Policy Management 1.0 (SAP HANA ANALY. FOR FS-PM 1.0)
SAP HANA Live for SAP CRM 1.0 (SAP HANA ANALYTICS FOR CRM 1.0)
SAP HANA Live for SAP SCM 1.0 (SAP HANA ANALYTICS FOR SCM 1.0)
SAP HANA Live for SAP solutions for GRC 1.0 (SAP HANA ANALYTICS FOR GRC
1.0)
SAP HANA Live for SAP GTS 1.0 (SAP HANA ANALYTICS FOR GTS 1.0)
SAP HANA Live for Transportation Management 1.0 (SAP HANA ANALYTICS FOR
TM 1.0)
SAP HANA Live for Event Management 1.0 (SAP HANA ANALYTICS FOR EM 1.0)
SAP HANA Live for Manufacturing 1.0 (SAP HANA ANALY. FOR MANUF. 1.0)
SAP HANA Live for SAP PLM 1.0 (SAP HANA ANALYTICS FOR PLM 1.0)
SAP HANA Live for Insurance 1.0 (SAP HANA ANALYTICS FOR INS 1.0)

18
Following product versions containing analytical 2-Tier applications are covered:

SAP Access Control Role Analytics 1.0 (SAP GRC ANALYTICS 1.0)

SAP Invoice and Goods Receipt Reconciliation 1.0 (SAP GRIR MONITOR 1.0)

SAP Supply Chain Info Center 1.0 (SAP APO ANALYTICS 1.0)

SAP HANA Live tools 1.0 (SAP HANA CONTENT TOOLS 1.0)

SAP HANA Live for Manufacturing, option for performance management 1.0 (SAP
Manuf. ANALYTICS 1.0)

SAP Working Capital Analytics, DSO scope 1.0(SAP WORKING CAPITAL MGMT.
1.0)

Following product versions containing SAP Fiori analytical applications are covered:

SAP Fiori for SAP HANA Live for SAP APO 1.0 (SAP Analytic Apps for APO 1.0)

SAP Fiori for SAP HANA Live for SAP ERP 1.0 (SAP Analytic Apps for ERP 1.0)

SAP Fiori for SAP HANA Live for SAP Business Suite foundation component 1.0 (SAP
Analytic Apps for FND 1.0)

Following product versions containing SAP Smart Business applications are covered:

SAP Smart Business for SAP CRM 1.0 (SAP SMART BUSINESS for CRM 1.0)

SAP Smart Business for financial close 1.0 (SAP SMART BUSINESS FOR FCC 1.0)

SAP Smart Business for SAP ERP 1.0 (SAP SMART BUSINESS FOR ERP 1.0)

SAP Smart Business for access control management 1.0 (SAP SMART BUSINESS
FOR GRC 1.0)

SAP Smart Business for event management 1.0 (SAP SMART BUSINESS FOR EM
1.0)

SAP Smart Business for transportation management 1.0 (SAP SMART BUSINESS
FOR TM 1.0)

SAP Smart Business, component for KPI modelling 1.0 (KPI Modeler 1.0)

19
SAP HANA Live together with SAP BW, provides the best-of-breed suite of analytical
services (especially BW on SAP HANA).

BW is still the recommended solution for EDW scenarios. BW has many features that
neither SAP HANA or SAP HANA Live has:

Disciplined architecture model (LSA)

ETL with referential integrity and delta management

Planning

Data Governance

Information Lifecycle Management (NLS)

ABAP transformations (complex business logic)

Sophisticated security

Advanced OLAP engine

20
21
A key decision is - implement SAP HANA Live as an integrated scenario or a side-by-
side scenario?

Side by side requires SAP Landscape Transformation Replication Server (SLT) to


manage replication of data from Suite applications to SAP HANA.

22
Be aware, SAP HANA Live has undergone name changes so you may find references to
the old names on SCN etc.

23
Many customers have multiple Business Suite applications and would like to consolidate
the data in order to perform cross-system analytics.

The purpose of cross-system analytics is to consolidate, transform and clean data from
different data sources and in a consequence provide a central and consistent view for
reporting and analyzing data within a company.

To provide a holistic overview over the companies situation, data originating from various
source systems have to be harmonized and combined throughout the whole company.

24
Basic cross-system analytic scenarios can be implemented with todays available
capabilities of SAP HANA based Analytics. Database views provide already built-in
functionality for transformation and enrichment of data. With VDM further concepts like
currency or unit conversion are added. SAP SLT supports already replication from
multiple source systems into SAP HANA. With the same approach also data from non-
SAP systems could be integrated into cross-system analytics, assuming that the
requirements are basic too.

Advanced cross-system analytic scenarios may need features listed in the table below
as for example the involved systems are heterogonous in terms of data models or
processes. In this case the solution proposal is to harmonize the data before they are
replicated into SAP HANA. For this task special data management solution like SAP
Business Objects Data Services or SAP MDM exist that provides the listed capabilities.
Those solutions have to be implemented by customers. In the advance cross-system
scenarios also an arbitrary Data Warehouse system could be used as pre-processor that
replicates harmonized data into SAP HANA. Depending on the source systems
constellations (e.g. harmonized or heterogenic) the basic and advance approach can be
of course combined.

25
Predictive analytics encompasses a variety of statistical techniques and data mining
solution that enables building predictive models and visually interact with the data to
discover hidden insights and relationships in data, and thereby provide the basis for
making predictions about future events.

26
In predictive analytics often high data volumes are processed. Therefore the according statistical
and data mining algorithms are usually very performance intensive. Thus a first guiding principle is
to process data in the database. SAP HANA provides with PAL (Predictive Analysis Library) an
application function library that offers statistical and data mining algorithms. In addition specific
algorithms can be implemented if required. As shown in the figure those statistical and data mining
algorithms are invoked and orchestrated by implementing SQL SCRIPT code. Container for this
coding can be scripted views or procedures.
The statistical and data mining algorithms require application data as input for the computation.
The virtual data model (VDM) with its views is used for this purpose. Thus a simple and standard
access mechanism is reused. If existing VDM views are not sufficient to read the required input
data, standard SQL techniques can be used to enhance the existing or to define new views.
Usually the algorithms also require configuration parameter, e.g. the maximum number of clusters
for a clustering algorithm. Those configuration parameters are stored in specific tables and
encapsulated with VDM views. Depending on the execution time of the algorithms the results can
be provided to the user interface immediately or have to be stored in the database. In the second
case again VDM views should be offered to expose the stored results. The predictive logic and the
according control/result data can be triggered from UI directly or using the XS Engine (web server
inside SAP HANA). In the second case according OData services have to be provided so that the
access with HTTP protocol is supported.
The virtual data model concept is reused for input, control and result data. Therefore all solutions
for the typical challenges are inherited, e.g. security, enhancement, performance or access from
UI. Thus no new concepts are required here which results in a simple and powerful solution
architecture.

27
28
29
30
Use Solution Manager to support the installation process.

31
32
The installation steps differ significantly between the two deployment options so we need
to consider this important decision first.

For side-by-side scenario Suite tables must be created in SAP HANA (empty) even if they
are not replicated with data.

33
For detailed installation steps refer to:

Administrator's Guide for SAP HANA

http://help.sap.com/hba#section2

For SAP HANA Live Browser installation notes and FAQs see:

Note 1914584

34
35
36
37
The image shows a more detailed view of the architecture of SAP HANA Live. There are several
terms that we have to understand.
Virtual Data Model (VDM):
The virtual data model (VDM) is a structured representation of SAP HANA database views used
in the SAP HANA Live for SAP Business Suite following consistent modelling rules.
It provides direct access to SAP business data via standard SQL or OData requests. Business
data is exposed via well-defined database views, operating directly on the tables of the SAP
Business Suite systems and transforming them into consistent and easily understandable
views. These views can be consumed directly by rich client UIs (e.g. HTML5, SAP
BusinessObjects, Excel) without any additional software layer (e.g. an ABAP application
system) in between (two-tier architecture).
The virtual data model consists of the following types of views:
Query views are designed for direct consumption by an analytical application (for example
based on HTML5) or a generic analytical tool (for example BusinessObjects tools). They are
always the top view in a hierarchy of views and are not designed for reuse in other views.
However, the virtual data model also includes query views in order to support (showcase)
applications based on the virtual data model.
Reuse views are the heart of the virtual data model. They expose the business data in a well-
structured, consistent, comprehensible way covering all relevant business data in SAP
Business Suite systems. They are designed for reuse by other views and must not be
consumed directly by analytic tools.
Private views encapsulate certain SQL transformations on one or several database tables or
even other views. They are not classified as reuse views as they might not carry clear business
semantics but are rather intended to be reused in other views. They are comparable to
subroutines or (private) methods in programming languages. A private view may be based on
database tables, other private views or on reuse views.
38
39
40
41
42
SAP HANA Live Browser is a SAP UI5 based web application that allows you to easily
and quickly browse, search, and tag SAP HANA content views and consume them in
SAP Business Objects Lumira or Analysis Office for analyzing the data.

With this web application, you can browse SAP HANA content views organized by
Application Component or browse SAP HANA content views organized by SAP HANA
modelling packages.

43
This application is available as an option for business users who want to consume SAP
HANA content views or preview data without using SAP HANA studio.

For ease of use, by default SAP HANA content views are pre-organized by Application
Component Hierarchy (ACH). You need to assign the developer or business role to a
user.

Two modes of SAP HANA Live Browser access:

1) Business User is able to view models

http://<SAP HANA Server Host>:80<SAP HANA


Instance>/sap/hba/explorer/buser.html

Technical name of developer role: sap.hba.explorer.roles::Developer

2) Developer is able to add additional meta-data to models such as tags

http://<SAP HANA Server Host>:80<SAP HANA Instance>/sap/hba/explorer

Technical name of business user role: sap.hba.explorer.roles::Business

44
SAP HANA content views are pre-organized in a tree layout either by package following
the application component hierarchy, or there is also an option to display SAP HANA
views organized by semantic tags such as Account, Address, or Billing, etc.

45
46
47
48
49
All SAP BusinessObjects reporting tools are able to consume SAP HANA Live models.

Where provided, SAP HANA Live model input parameters and variables are consumed
by each BusinessObjects tool.

This means you will be able to provide pop-up filters to the users to make personal data
selections.

50
RDS for SAP HANA Live

Ready-made reports for various SAP BI reporting tools such as Crystal, Dashboards
etc.

RDS for SAP HANA Live is a separate installation and is not included with SAP HANA
Live, it is purchased separately.

51
52
There are many delivered real-time apps with SAP HANA Live.

These use the standard programming model described later.

53
Example of an SAP HANA Live application that sit on top of the VDM.

This is part of SAP HANA Live (not the RDS).

54
Example of an SAP HANA Live application that sit on top of the VDM.

This is part of SAP HANA Live (not the RDS).

55
Example of an SAP HANA Live application that sit on top of the VDM.

This is part of SAP HANA Live (not the RDS).

56
Example of an SAP HANA Live application that sit on top of the VDM.

This is part of SAP HANA Live (not the RDS).

57
Standard Programming Model:

Front-end Technologies

Front-end processing should be delegated to the browser (or mobile device) using
HTML5 and client-side Javascript.

Control Flow Technologies

Application layer or Web Server part of the Architecture handles control flow logic and
the glue that is necessary to tie together the user interface with back-end DB
processing.

The technologies available are Server-side JavaScript, Odata(Open Data Protocol), or


XMLA.

Data Processing Technologies

Heavy lifting of application processing is performed in the SAP HANA DB.

Vast majority of application logic, business logic, calculations, or any data-intensive


operations should be implemented using SQL, SQLScript, or Calculation Engine (CE)
functions.

58
59
60
61
For more details please take a look at this document:

How to Enhance SAP HANA Live Models

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40d205ae-7407-
3110-b6be-881c8f17bf3a?QuickLink=index&overridelayout=true&58695023097947

62
63
Do not extend SAP delivered Views directly. Use Query/Reuse views for extensions by
copying over to customer namespace.

To find a list of Query and Reuse views refer to http://help.sap.com/hba SAP HANA Live
for SAP ERP/CRM/SCM etc.

Views that are not mentioned here are Private Views and should not be copied or
modified.

For all graphical calculation views the flag 'Enforce SQL Execution' must be set to 'true.

For all enhancements, graphical calculation views must be used. If they are not sufficient,
use script based calculation views.

Avoid using Attribute and Analytical views unless there is a requirement to use features
that are only available in these types of views.

64
65
After this lesson you will be able to:

Describe the key components of SAP HANA Live

Describe the relationship between release numbers of components

etc.

66
67
It might be tempting to completely remove the attribute (or measure) from the model but
bear in mind that it might be referenced by other objects.

Hiding it will ensure it can still be referenced by other objects but it will no longer be
exposed to the output view.

68
* You may not need to copy the entire model if the fields are actually included at the lower
levels but are then missing from higher levels, simply copy the levels you need to modify
and then consume the standard unchanged levels into your model.

69
70
71
72
* You may also need to use projection nodes to develop calculated attributes in order to
harmonize the columns before the join / union can take place.

** For OLAP models also work on the aggregation logic before the final output.

73
74
75
76
With the SAP HANA Live Authorization Assistant, you can provide users authorizations in
the SAP HANA system that is required to access business data displayed by the virtual
data model of SAP HANA Live.

For this, SAP HANA Live Authorization Assistant take those permissions into account that
the same users already have in ABAP-based Business Suite application.

77
You can select multiple query views for multiple users and create analytic privileges for all
the query views.

You do not need to manually check for privileges in the SAP ABAP system and manually
create privileges for each query view.

Hence, the mass process available with this tool reduces the effort required to create
analytic privileges for query views.

The existing analytic privileges can be reused between different users.

78
79
80
81
For more information, refer to the Administration guide on SAP Service Marketplace
at http://service.sap.com/instguides SAP In-memory Computing SAP HANA Live for SAP
Business Suite (Section 4.3.5 Download and Deploy Content Package).

_SYS_REPO user should have SQL Execute privilege REPOSITORY_REST with


Grantable to others option selected.

You have replicated the tables USRBF2 and UST12 from the ABAP based system
where you want to create the authorizations.

82
* The two available plug-ins are Analytic Authorization Assistant and Analytic
Authorization Assistant Metadata. If the user does not want to enter new metadata and
only generates analytic privileges with SAP delivered metadata, then you require only
Analytic Authorization Assistant plug-in.

For more information, refer to the Administration guide on SAP Service Marketplace
at http://service.sap.com/instguides SAP In-memory Computing SAP HANA Live for SAP
Business Suite (Section 4.3.5 Download and Deploy Content Package).

83
Developer role is needed to maintain additional meta data for custom views.

84
85
86
87
* If you have selected views that use tables from multiple SAP HANA schemas you can
then select a schema in this step from where the user authorizations will be taken.

** A role is automatically generated with the name ROLE_<abap user name> and the
generated privilege is automatically assigned to this role. If this role already exists (from a
previous generation) the new privilege will be added to the role.

Do not manually modify any analytic privilege or roles generated by the tool.

88
With the SAP HANA Live Authorization Assistant, you can also update analytic privileges
generated earlier using SAP HANA Live Analytics Authorization Assistant. When you
make changes in the ABAP authorizations, the changes are reflected in the SAP HANA
authorization tables through replication. The update analytic privilege tool identifies the
changes in the ABAP authorizations and new restrictions are created when you run the
tool. The valid analytic privileges are retained in the role and newly created analytic
privileges are added. If the analytic privilege is not valid, it is removed from the role and if
analytic privilege is not assigned to any role, it is deleted. The tool only checks if the
analytic privilege is assigned to the role.

89
SAP delivers the required metadata for all the relevant query views of the virtual data
model.

For customer created views, the metadata is defined with the view as specific properties.

To view the SAP delivered metadata, open the respective query view and navigate
to Properties Analytics Metadata Maintain Metadata.

In addition, you can use this tool to maintain metadata for views created using tables from
the ERP system.

90
91
92
93
STUDENT EXERCISE MANUAL
HA900 Collection 07

Exercise information given by instructor

Remote Desktop Alias

Remote Desktop Username

Remote Desktop Password

SAP HANA Database Host

SAP HANA Database Instance

SAP HANA Database Username

SAP HANA Database Password

SAP BusinessObjects Server

SAP BusinessObjects Username

SAP BusinessObjects Password

SAP AG HA900 - Exercises 1


Module 2 - Exercise 1 ..................................................................................................... 3
Module 3 - Exercise 2 ..................................................................................................... 5
Module 4 - Exercise 3 ................................................................................................... 11
Module 4 - Exercise 4 ................................................................................................... 15
Module 4 - Exercise 5 ................................................................................................... 21
Module 4 - Exercise 6 ................................................................................................... 25
Module 4 - Exercise 7 ................................................................................................... 29
Module 4 - Exercise 8 ................................................................................................... 33
Module 4 - Exercise 9 ................................................................................................... 37
Module 5 - Exercise 10 ................................................................................................. 45
Module 6 - Exercise 11 ................................................................................................. 53

SAP AG HA900 - Exercises 2


Exercise 1

Module 2: Detailed HANA Live architecture

Purpose:
You would like to explore the architecture of SAP HANA Live in order to
develop your knowledge around the supplied Virtual Data Model

Use the HANA Studio to locate the model


BillingDocumentQuery. You will then explore
this model in order to develop your understanding
of how this was built by SAP.
Later, you will explore the same model using
HANA Live tools.

Launch the HANA Studio and add a system to


the navigator view using the details supplied
by the instructor.
Navigate to the required model by expanding
the nodes: Content > sap > hba > ecc >
Calculation Views

Tip: use the filter menu option on the package


to reduce the result set of models

SAP AG HA900 - Exercises 3


Open the required model and answer these
questions: (answers at the end of the
exercise)

What type of model is this?

Are there any variables used in this model?

What is the purpose of projection node


Project_1_1?

Apart from exposing the view


BillingDocumentHeader what other purpose
does the projection node Projection_1 have?

Using the HANA Studio locate the model


SalesOrderQuery

Open the model and answer this question:


(answer at the end of the exercise)
Can you identify the source tables that are
used in the model?

ANSWERS: Apart from exposing only limited


columns from the view
What type of model is this?
BillingDocumentHeader, what other
Answer: Graphical calculation model
purpose does the projection node
Projection_1 have?
Are there any variables used?
Answer : excludes the
Answer: Yes Client number
AccountingTransferStatus D and E
What is the purpose of projection node Can you identify the source tables used
Project_1_1? in the model?
Answer: To provide three additional Answer: VBAK, VBKD, VBUK, VEDA,
calculated measures T001, TVKOT, TVKO

SAP AG HA900 - Exercises 4


Exercise 2

Module 3: Discovering HANA Live Models

Purpose:
You would like to explore the models that are provided with SAP HANA
Live using a simple-to-use web browser based interface.

Log in to the HANA Live Explorer by using the


following URL and your HANA credentials:
http://wdflbmt7200.wdf.sap.corp:8001/sap/hba
/explorer/
NOTE: If you didnt already change your initial
password (previous exercise) then you will be
prompted to do it here.

SAP AG HA900 - Exercises 5


Using only the Application Component view,
locate the query view:
MaterialValuatedStockQuery
Do this by expanding the hierarchy nodes as
follows:
>MM > MM-IM > QUERY
NOTE: you could also use the filter field to
locate the view

Click on the Open Definition icon to see the


structure of the query

Your view should now appear like this

SAP AG HA900 - Exercises 6


Now click on the Open Content icon to see
the business data

Enter 800 for the Client at the prompt

You will now be able to preview 100 rows of data

SAP AG HA900 - Exercises 7


Now click on the Open Cross Reference
icon, and then the Graph View button

You will see the related views, and also the tables
from where the data is sourced
Click on any of the views to drill down to the
lower view in order to reveal the data tables

Add a tag to the view so that you are able to


search for this more easily using familiar
business words

Use the tag word Sourcing


(you could add more tags if you wish)

SAP AG HA900 - Exercises 8


Now try to locate the same view but use the
Search feature so that you can enter the
name of the tag you created in the previous
step

Add the view to your Favourites so it is easy to


locate next time
Click on the grey star icon, it will change to
orange

Navigate to My Favorites menu and you


should see your view again

SAP AG HA900 - Exercises 9


SAP AG HA900 - Exercises 10
Exercise 3

Module 4: Consuming HANA Live Models


Application: Analysis for Office

Purpose:
As a Business user, you want to use Analysis Edition for Office in order
to consume an SAP supplied HANA Live view. This view allows you to
discover the 5 Sales Organizations which have the highest Net Amount
for Orders which that are still in processing.

Open Analysis for Microsoft Excel


from the Start Menu

Select Analysis from the ribbon


bar and click on INSERT then
Select Data Source

SAP AG HA900 - Exercises 11


Enter your SAP BusinessObjects
Username and Password

user: train-##
pass: train-##

For the Web Service URL ensure


you are using the following:
http://wdflbmt5074:8080/dswsbo
bje/services/Session

Highlight SAP_ECC connection


and press NEXT

Search for the query


SalesOrderItemNetAmountQuery
Highlight the query and press OK

Add the details as shown and


press OK

SAP AG HA900 - Exercises 12


Drag Sales Organization Name to
Rows pane.
Restrict the measures to show only
Net Amount in Display Currency.
You can do this by right-clicking on
the heading cell of the required
measure and chose Filter
Members
Sort the results descending and
apply a filter to view the top 5 sales
organizations

Add a chart to visualise the results

Modify the results in order to


answer the following questions:
Who are my top 10 customers
based on Net Amount in Display
Currency?
What is the total value of the top
ten materials for the measure
Open Delivery Amount in
Display Currency?

Close Analysis for Microsoft


Excel

You dont need to save your analysis

SAP AG HA900 - Exercises 13


SAP AG HA900 - Exercises 14
Exercise 4

Module 4: Consuming HANA Live Models


Application: Analysis for OLAP

Purpose:
As a Business user, you want to use the pre-delivered Analysis
workspace, Inventory Report Workspace which is based on a pre-
delivered SAP HANA Live model.

Open BI LAUNCHPAD from the


Start Menu.

START > ALL PROGRAMS >


SAP BUSINESS INTELLIGENCE
> wdflbmt5074-BOE-BI

Log in to BI LAUNCHPAD with


the BusinessObjects credentials
User : train-##
Password: train-##
Launch Analysis for OLAP from
the Application drop down list in
the Launchpad toolbar.

SAP AG HA900 - Exercises 15


When the Open Data Source
pop up appears, press Cancel
(we will not be creating a new
workspace)

Use the Open icon within


Analysis OLAP to open an
existing workspace

Select Inventory Management


Report from:
Public Folders > SAP >
SAP.HBA > MM >

For the Client, enter 800 and view


the sheet:
Top Plants with the highest
Value of Stock
Resize and drag the chart scale
slider to the right to see a
different view of the chart.
Resize the columns so you can
see the values of the measure.

SAP AG HA900 - Exercises 16


Add Company code name from
the navigator to the background
filter and apply a filter on the
following:
IDES Chicago
IDES New York
IDES Palo Alto
IDES US Inc.

Click in the table pane and then


click on the Analyze tab in order
to see the Conditional Formatting
button
Add the following Conditional
Formatting based on the measure
Total Value for Valuated Stock
Green = Greater than 15000000
Amber = Between 1000000 and
15000000
Red = Less than 1000000

SAP AG HA900 - Exercises 17


Insert a Pie Chart

The final workspace should look like this:

Click on SAVE AS and save your


workspace in the FAVOURITES
folder as:
## INVENTORY REPORT
(where ## is your assigned
student number)

SAP AG HA900 - Exercises 18


Close the tab that contains your
workspace

SAP AG HA900 - Exercises 19


SAP AG HA900 - Exercises 20
Exercise 5

Module 4: Consuming HANA Models


Application: Dashboard

Purpose:
As a Business user, you want to use the pre-defined Dashboard from the
BI Launchpad which is based on a pre-delivered SAP HANA Live model

Note: You may already have the


Launchpad open, in which case
ignore this step
Open BI LAUNCHPAD from the
Start Menu.
The menu path is:
START > ALL PROGRAMS > SAP
BUSINESS INTELLIGENCE >
wdflbmt5074-BOE-BI

Log in to BI LAUNCHPAD with


the BusinessObjects credentials
System: wdflbmt5074
User : train-##
Password: train-##

SAP AG HA900 - Exercises 21


Open the Purchasing Group
Analysis Dashboard using the
View option

SAP AG HA900 - Exercises 22


From the dropdown, change the
year to 2012 for analysis and
then to 2008 and view the results

If you would like review the


Dashboard and identify which
universe is used and therefore
the HANA model, you can start
by opening the dashboard in the
Dashboards application.

Click on File > Open from


Platform > Dashboard Object
Logon on to the platform using
the credentials
Host: wdflbmt5074
User : train-##
Pass: train-##
Open the file as shown.

Please note: it might take some time


to open the file, with the embedded
MS Excel file.

SAP AG HA900 - Exercises 23


Click on the Query Browser
button to look at the queries that
make up the Dashboard.
You can click on the Edit (pencil
icon) on top to look at the HANA Live
Universe used.

You can now see the universe that is


used in the Dashboard:
PurchasingGroupAnalysisQuery_
Dashboard_BL

SAP AG HA900 - Exercises 24


Exercise 6

Module 4: Consuming HANA Live Models


Application: Explorer

Purpose:
As a Business user, you want to use the pre-defined Explorer
Information Spaces which are built on SAP HANA Live models

Note: You may already have the Launchpad


open, in which case ignore this step
Open BI LAUNCHPAD from the Start
Menu
The menu path is:
START > ALL PROGRAMS > SAP
BUSINESS INTELLIGENCE > wdflbmt5074-
BOE-BI

SAP AG HA900 - Exercises 25


Note: You may already have the Launchpad
open, in which case ignore this step
Log in to BI LAUNCHPAD with the
BusinessObjects credentials
User : train-##
Password: train-##

Click on the Explorer icon to launch the


application

There are pre-defined Exploration


Information Spaces available in Explorer.
Select the Purchase Order Average
Delivery Time Information Space

SAP AG HA900 - Exercises 26


You want to see the top 20 Plants by
Average times so set the criteria as
follows:

This is how the result displays:

Change it to top 10 Plants by Average


times

Change to top 5 and Add Vendor to the


list

Close Explorer

SAP AG HA900 - Exercises 27


SAP AG HA900 - Exercises 28
Exercise 7

Module 4: Consuming HANA Models


Application: SAP Lumira

Purpose:
As a Business user, you want to use the SAP HANA Live pre-defined
model in SAP Lumira for quick analysis of sales contract data.

Log on to SAP Lumira using the


path
START > ALL PROGRAMS >
SAP BUSINESS INTELLIGENCE
> SAP LUMIRA

SAP AG HA900 - Exercises 29


Create a New Document

Select HANA Online

Enter your SAP HANA login


credentials
SAP HANA Server:
wdflbmt7200.wdf.sap.corp
SAP HANA Server Inst: 01
Username: STUDENTXX (Where XX
is your student number)

SAP AG HA900 - Exercises 30


Select the following Query and
click on Acquire
SalesContractQuery

Select Client 800 for the variable

From the object picker right click


on the following objects and add
to the current chart:
Sales Organization Name
Total Net Amount
Number of Sales Contracts

SAP AG HA900 - Exercises 31


Choose Pie with Variable Slice
Depth and make sure that Total
Net Amount is used for the pie
depth.

We can now see that although the


number of contracts are higher in
other areas, the Total Net Value is
shown by the depth, so the total net
value of orders in the US are higher,
Now close SAP Lumira.

SAP AG HA900 - Exercises 32


(optional) Exercise 8

Module 4: Consuming HANA Models


Application: Crystal Reports For Enterprise

Purpose:
As a Business user, you want to use the pre-defined Crystal Reports for
Enterprise. You want to view top 10 materials which is based on a pre-
delivered SAP HANA Live model

Note: You may already have the Launchpad


open, in which case ignore this step
Open from the Start Menu.
START > ALL PROGRAMS > SAP
BUSINESS INTELLIGENCE >
wdflbmt5074-BOE-BI

SAP AG HA900 - Exercises 33


Note: You may already have the Launchpad
open, in which case ignore this step
Log in to BI LAUNCHPAD with the
BusinessObjects credentials
System: wdflbmt5074
User: train-##
Password: train-##

Select the Top 10 Materials Crystal


Reports document, and select VIEW from
the context menu.

Select the following for the parameters

SAP AG HA900 - Exercises 34


You can now access the pre-defined
report template.

SAP AG HA900 - Exercises 35


SAP AG HA900 - Exercises 36
(optional) Exercise 9

Module 4: Consuming HANA Models


Application: SAP Design Studio

Purpose:
As a Business user, you want to create a custom web page to view
analysis from multiple HANA Live views

Open from the Start Menu.


The menu path is:
START > ALL PROGRAMS > SAP
BUSINESS INTELLIGENCE > SAP
BUSINESSOBJECTS DESIGN STUDIO
> DESIGN STUDIO

SAP AG HA900 - Exercises 37


Create an Analysis Application

Enter the name U##_HANA_APP


(## is your student number)
Target Device is Desktop Browser

Choose the BLANK template

SAP AG HA900 - Exercises 38


Add a new Data Source

Press the Browse button

Select HDB32 connection and click on


OK
Enter your HANA user credentials
user: STUDENT##
pass: your password

SAP AG HA900 - Exercises 39


We want to display different SAP HANA Live
Queries. For the first query,
Search for the following Query

MaterialValuatedStockQuery

At the prompt enter client 800

From the context menu of the Data


Sources, click on Edit Initial View

The Initial view should look as shown.


Also apply a filter on Company Code
name for:
IDES Retail Inc. US

SAP AG HA900 - Exercises 40


Sort the measure by Descending sort and
click OK

Now add another Data source based on


OpenSalesOrderQuery
Enter client 800 at the prompt

The Initial view should look as shown.


Also apply a filter on Sales Organization
name for
Germany Frankfurt

Sort the measure by Descending sort as


shown and click OK

SAP AG HA900 - Exercises 41


Copy the existing Data Source,
OpenSalesOrderQuery and paste it

Edit Initial View and change the Sales


Organization filter to USA Philadelphia
Apply a Descending sort on the measure
and click on OK

Drag and drop a Tabstrip and resize it to


fill out most of the screen

Select the first tab and add a Chart.


Drag and Drop the first Data Source onto
the chart
Change the chart to a Pie Chart from the
properties window on the right

SAP AG HA900 - Exercises 42


Select the Tabstrip so you can see the
properties of the Tabs on the right.
Change the description of the first Tab as
shown,

Click on the second Tab and add a chart.


This time drag and drop the second Data
Source on the chart.
Change the name of the second Tab to
Open Orders for Germany

Now we need a third Tab and call it Open


Orders for USA Philadelphia
Follow the same steps to add the chart
and drop the third Data Source to create
a Column Chart.

Save your work. Click on Save As and


add the name U##HANA_APP where ##
is your student number.

SAP AG HA900 - Exercises 43


Now Execute locally and view the results

Close SAP Design Studio

SAP AG HA900 - Exercises 44


Exercise 10

Module 5: Modifying HANA Models

Purpose:
You want to create your own custom Calculation View that consumes
multiple pre-delivered HANA Live models and combines these with your
own custom table

Background:

The customer has created one customer specific table with the
classification of countries into their potential for future sales (the values
are saturated or emerging).

This classification table is updated regularly by marketing / sales and


replicated to HANA in real-time

SAP AG HA900 - Exercises 45


Open the HANA Studio - Modelling
perspective

You may already have Studio open, if so


then ignore the previous step

Find the country classification table


Z_COUNTRY_CLASSIFICATION under
the schema ZME_ECC

View the data in the table by right clicking


on the table name and selecting Open
Data Preview

The content of the customer-specific table


is displayed.

SAP AG HA900 - Exercises 46


In the next step, we will now extend the
SAP HANA Live pre-defined model with
the information in this this table. We will
create a sales order report per country
and include the customer-specific
attributes for the market unit potential.

In the HANA Navigator we will first create


a package, STUDENT## (where ## is
your student number)

Create a new Calculation View

SAP AG HA900 - Exercises 47


CV_CUSTOM_## (## is your student
number)
Subtype should be Graphical

Add two HANA Live Views:


SalesOrderHeader
CustomerBasicDataQuery
Tip: use the search field at the top of the
screen to help you locate the views

From the ZME_ECC schema add the


table:
Z_COUNTRY_CLASSIFICATION

SAP AG HA900 - Exercises 48


Add two Joins to the model and
arrange the data sources as shown

Connect as shown.
JOIN_1 =
SalesOrderQuery +
CustomerBasicDataQuery

JOIN_2 =
JOIN_1 +
Z_COUNTRY_CLASSIFICATION

SAP AG HA900 - Exercises 49


NOW WORK ON JOIN_1
Add an Inner Join with 1:n cardinality as
follows on SAPClient and Customer
fields

Add the following fields as output

SalesOrderHeader CustomerBasicData
SalesOrganizationName Country
DistributionChannel Region
Sales Office Industry
CustomerGroup
SalesOrderCount
TotalNetAmount
The output from JOIN_1 should look like
shown

NOW WORK ON JOIN_2


NOTE: The data sources for the joins are
laid out on top of each other so you might
have to drag the top table to the right so
you can see it
Add an Inner Join with 1:n cardinality as
follows on SAPClient and Country

SAP AG HA900 - Exercises 50


Add all the fields into Output as shown

NOW WORK ON THE AGGREGATION


NODE
Add all fields into output as shown

Note: Remember the two measures


should be added as aggregate columns
to the output

Now work on the Semantics node as shown

Tip: use auto assign to speed things up

Save and Activate the view

SAP AG HA900 - Exercises 51


Use the data preview feature and create an analysis as shown below which now incudes
the additional attribute to be used in your analysis.

SAP AG HA900 - Exercises 52


Exercise 11

Module 6: Analytics Authorization Assistant

Purpose:
You have already created ABAP authorisations in the Suite application on
which the HANA Live models are based. You would like to automatically
generate HANA Analytic Privileges using the same field values from the
ABAP authorizations. You will now use the Analytics Authorisation
Assistant to accomplish this.

Navigate to the User node under Security and


choose the menu option New User

Create a new user USER##


Set the initial password to Training1

Click on the + icon under the tab Granted


Roles tab

SAP AG HA900 - Exercises 53


Locate the RESTRICTED_ROLE using
the search field
Highlight the role and press OK

Press the Deploy icon

Right-click on the instance node for


STUDENT## and select Add Additional User

Enter the user USER## and the password


Training1 then press Finish
Note : you will need to change the initial
password to one of your choice

SAP AG HA900 - Exercises 54


Under the USER## instance expand the
Contents folder as shown to reach the
Calculation Views folder

Continue to expand the folder until you find the


Calculation View SalesOrderQuery
Right-click on the view and select Data
Preview option

At the prompt enter client 800 in the From field

and of course you receive an authorization


error as your user (USER##) does not have
privileges to view any data at all in the vie

Now lets generate a HANA Analytical Privilege


from the ABAP authorisation profile that
belongs to the ABAP user AUTHSALES-##

First we will review the authorisations that are


currently assigned to this user

SAP AG HA900 - Exercises 55


Log on to the ABAP system ZME using the
following credentials:
User: student-##
(where ## is your number)
Pass: INITIAL
(you must change this the first time, choose
any 6 characters)

Note: the user student-## is the security


administrator user, so has plenty of power to
view all authorisations

Use transaction code SU01 and enter the


ABAP user AUTHSALES-## in the user field
and press the display option

Select the Profiles tab and notice the


HA900SALES profile has already been
assigned to your user

Double-click on the profile name to display a


list of authorisation objects
Expand the object V_VBAK_VKO and observe
the fields that are part of that object
Expand the field VKORG and observe the data
value that the profile grants access to, in this
case 1000
Checkout the other fields and their assigned
values

SAP AG HA900 - Exercises 56


We now want to generate HANA Analytic
Privileges from the ABAP profile of user
AUTHSALES-##
Back in the HANA Studio select the menu
option Analytics Authorization > Generate
Analytic Privilege

As you now have more than one system


available in your Studio you must select the
instance under user STUDENT##

Expand the Packages hierarchy:


sap > hba > ecc
Highlight the view SalesOrderQuery and
press Add to move it to the Selected Query
Views pane
Click Next

SAP AG HA900 - Exercises 57


In the SAP Client field enter 800
The list of users that are created in the ABAP
system under client 800 are now shown
Find your ABAP user AUTHSALES-## (where
## is you number) and highlight it then press
the Add button to move it to the selection pane
on the right

Tip: use the search field to locate you user


quickly, there are a lot of users in this list

Press the Finish button


In the job log you should see the Analytic
Privilege generation has completed
successfully

Find the generated Analytic Privilege under the


path show opposite
Open the Analytic Privilege to observe the data
values assigned to each attribute

Open the view SalesOrderQuery and ensure


you can see the Properties view (Window >
Show View > Properties)
Select Analytics MetaData to observe the
mapping of ABAP fields to HANA attributes

SAP AG HA900 - Exercises 58


Here are the mappings you should find in the
properties of the view

Now lets assign the newly generated Analytic


Privilege to the HANA user USER##

Under the instance which uses the user


STUDENT##, open the user USER##

Click on the Analytic Privileges tab


Click on the + icon

Highlight the privilege found and press OK


Press the Deploy icon

Let now see if the USER## can finally view the


data now they have been assigned the
generated privilege.
Expand the hierarchy as shown.

SAP AG HA900 - Exercises 59


.to find the view we used earlier
Choose the Data Preview menu option
At the prompt enter client 800 in the From field

You should now see data

Notice in particular the Sales Organision 1000


which is the only value you are authorized to
see

Open the Distinct Values tab and click on the


SaleOrganization attribute

You should see there is only 1 distinct value


and that should be 1000
Check the other fields too

SAP AG HA900 - Exercises 60