Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

HANA views

View creation with tips &


tricks

Restricted © Siemens AG 2019 https://new.siemens.com/us/en.html


HANA views

• Client installation 3
• System addition 4
• View creation 6
• Modular approach 8
• Tips & tricks 9
• Sample view 13

Restricted © Siemens AG 2019


Page 2 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Client installation

Eclipse (latest version 2019-03 [4.11] as of June 2019)

Download the eclipse IDE from this link:

https://tools.hana.ondemand.com/

Once downloaded, install the software:

Once installed, execute Eclipse and follow below steps to install the SAP development tools:
• Select menu option Help > Install New Software...
• For latest Eclipse 2019-03 (4.11) add the URL https://tools.hana.ondemand.com/2019-03/
• Press Enter to display the available features.
• Select the SAP HANA Tools and click on Next.
• On the next wizard page, you get an overview of the features to be installed. Select Next.
• Confirm the license agreements and click on Finish to start the installation.

Restricted © Siemens AG 2019


Page 3 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Add an SAP system

Add a system to Eclipse:

Click on “Add system” icon and select the option “Add system…”

Populate next fields:


• Host Name
• Instance number
• Description

Click on “Next”
Please get your user and password
Populate next fields: ready for HANA views, if necessary,
• User Name you can contact the basis team to
• Password get your user ready and password
reset.
Click on “Finish”
Restricted © Siemens AG 2019
Page 4 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Add an SAP system

These are the system information for each system:


E2D system:
Host Name: sapha074.os.fth.sbs.de D3D system:
Instance: 01 Host Name: pkgd3d4d.os.fth.sbs.de
Instance: 02
E2I system:
Host Name: sapha074.os.fth.sbs.de D3I system:
Instance: 00 Host Name: pkgd3i4d.os.fth.sbs.de
Instance: 01
E1P system:
Host Name: pkge1p4d.os.fth.sbs.de D35 system:
Instance: 00 Host Name: pkgd354d.os.fth.sbs.de
Instance: 00
E2S system:
Host Name: sapha035.os.fth.sbs.de
Instance: 91
Restricted © Siemens AG 2019
Page 5 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
View Creation

Create your view in the respective folder: Documentation for HANA views/Fiori Authorization
concept:
Content → siemens → am → acc → your_module
https://wse04.siemens.com/content/P0013744/SAPFior
iTaA/How%20Do%20I/HANA%20XS%20user%20autho
rization%20concept.aspx
Right click on the folder you want to add a new
view:

Complete below fields:


• Name
• Data Category – Dimension
• Click on “Finish”
Restricted © Siemens AG 2019
Page 6 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
View Creation

This is the initial screen to start working on the view:

Sample view

Click on “View Properties” tab:


Adjust “Default client” to value
“Cross client”

Now the view is ready to start


Working on the logic

Restricted © Siemens AG 2019


Page 7 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Modular approach

When creating views, it is important to consider that certain information can be built as a
separated view which could be joined through specific objects, this way is possible to reduce
the size of the view and in addition the separated view could be reused in other views:

The semantics node Simple Join


represent the node that
contains the output of
the fields that are to
shown by the view.
Join with a sub-view

Restricted © Siemens AG 2019


Page 8 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Tips and Tricks - filters

You can use filters within the Projection nodes to select data according to your needs:

Click on the Projection node, then in


the output window, open the “Filter”
folder and double-click on the
“Expression”, then type or select the
fields and enter the criteria for the filter
to apply.

Restricted © Siemens AG 2019


Page 9 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Tips and Tricks - Calculated fields

You can create your own fields by adding calculated fields, the calculated fields is available in
the output window under “Calculated Columns” field:

Click on the node you would like to add


a calculated field, then right click on the
folder “Calculated Columns” then select
new, enter the name of the field, data
type and the corresponding
characteristics (i.e. length), then in the
syntax enter the logic for the field to be
calculated.

Restricted © Siemens AG 2019


Page 10 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Tips and Tricks – Data Preview

As you progress building the view logic, you can use


the feature “Data Preview” to ensure that the data
being pulled is accurate and at the same time have a
sense about the execution performance, normally
individual nodes should execute in a matter of few
seconds.

There are 3 tabs in the “Data Preview”:

Analysis: Could be use to graphically represent the


data like a excel graph.

Distinct values: Could be use to perform statistics for


an specific field in the view.

Raw data: Get the data that can be exported to a text


file. © Siemens AG 2019
Restricted
Page 11 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Tips and Tricks – A Script View

There is a different view which could be


useful, depending on the requirements,
an identified recurrent request is to get
one single field which could be result of
multiple records based on the data
selection.

For example, get multiple status in one During the creation of


field or get long text in one field. the view select type
“SQL Script” and then
This could be achieve with a “Script in the “View
View”, as you can use embedded Properties” tab select
functions in the data selection. the appropriate
“Default Schema”
based on the system
where the view is
Restricted © Siemens AG 2019
being created.
Page 12 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views
Sample view

Create a view to select service orders with sales organization data


and company code, that shows orders in release status and the
sum of actual costs.

Restricted © Siemens AG 2019


Page 13 E. Hernandez / SOP IT CTR ERP-AM AR2
HANA views

Edson Hernandez
CS team
SOP IT / US / AR
4800 North Point Pkwy
30022 Alpharetta, GA
Mobile: +1 470 496-4659
E-mail:
edson.hernandez@siemens.com

siemens.com

Restricted © Siemens AG 2019


Page 14 E. Hernandez / SOP IT CTR ERP-AM AR2

You might also like