You are on page 1of 52

EXPERIENCE INNOVATION FOR REAL-TIME

ANALYTICS WITH SAP S/4HANA


BA275

Exercises/Solutions
Jürgen Butsmann, Thomas Fleckenstein / SAP SE
BA275

TABLE OF CONTENTS

Before you start ..........................................................................................................................................3

Chapter 1: Getting Started with SAP HANA Studio ...................................................................................4

Overview ...................................................................................................................................................4

Exercise 1: Setup SAP HANA Studio .......................................................................................................4

Exercise 2: Understand the basics of working with tables and SAP HANA Live Views in SAP HANA
Studio. ......................................................................................................................................................7

Summary ..................................................................................................................................................11

Chapter 2: Working with SAP HANA Live Views in SAP lumira.................................................................12

Overview ...................................................................................................................................................12

Exercise 1: SAP Lumira............................................................................................................................12

Summary ..................................................................................................................................................21

Chapter 3: Customizing SAP HANA Live Views and analyzing it in SAP lumira .......................................22

Overview ...................................................................................................................................................22

Exercise 1: Create your own SAP HANA View based on a SAP HANA Live content .............................22

Exercise 2: Create new Hana View by combining the copied views ........................................................31

Exercise 3: Analyzing the new Hana view in SAP Lumira .......................................................................39

Summary ..................................................................................................................................................45

Chapter 4: Working with reports in S/4HANA.............................................................................................46

Overview ...................................................................................................................................................46

Exercise 1: Analyze Data .........................................................................................................................46

Summary ..................................................................................................................................................52

2
BA275

BEFORE YOU START


In this Hands-on session BA275 you have the opportunity to select your exercises depending on your
personal area of interest. You find the solutions to all exercises as reference – this way you can also
see the solution of the exercises you did not finish. However, we recommend that you go through all
exercises in the chapters 1 to 4 as this follows a logical flow and the exercises build upon each other.

You do not have to finish all exercises. There are solution templates for all parts. Consult the instructor
to find out which template objects to use in an exercise in case you did not finish your own ones.

All object names you will create do contain your group number for the purpose of uniqueness.
Thus please always replace the string “##” in this handout with your individual group number!

Chapter 1: GETTING STARTED WITH SAP HANA STUDIO


Estimated Duration: 20 minutes

Chapter 2: WORKING WITH SAP HANA LIVE VIEWS IN SAP LUMIRA


Estimated Duration: 15 minutes

Chapter 3: CUSTOMIZING SAP HANA LIVE VIEWS AND ANALYZING IT IN SAP LUMIRA
Estimated Duration: 45 minutes

Chapter 4: WORKING WITH REPORTS IN S/4HANA


Estimated Duration: 15 minutes

3
BA275

CHAPTER 1: GETTING STARTED WITH SAP HANA STUDIO

Overview
Estimated time: 20 minutes

Objective
In the following exercise you will login to our workshop´s system environment and establish a
connection to the SAP HANA database in SAP HANA Studio (exercise 1). Afterwards find a certain
SAP ERP table in HANA Studio, have a look at its structure and contents.

Exercise Description
 Setup SAP HANA Studio
 Understand the basics of working with tables and SAP HANA Live Views in SAP HANA Studio.

Exercise 1: Setup SAP HANA Studio


In this exercise you start SAP HANA Studio and create a connection to the SAP HANA database of
this workshop BA275.

Explanation Screenshot

In the d-code Workshop system environment


start SAP HANA Studio:

 START 
 All Programs 
 SAP 
 SAP HANA 
 SAP HANA Studio - BA275

If you are asked to confirm a Workspace


folder select OK to keep the default setting.

4
BA275

Explanation Screenshot

Password recovery is not needed for our


purpose. Press No.

Select Open Modeler to go on.

In the top left System view, select Add System


and specify the following details:

Host Name = lt5082


Instance No = 01
Description = BA275

Choose Next > to go on.

5
BA275

Explanation Screenshot

Enter your User-ID and Password to finish the


system setup.

User Name = STUDENT##


(## means your group number)

Password = Training1
(this is the initial password only)

Keep the other default settings and choose


Finish.

In case you are asked, repeat your Password


and change it to a new permanent one:

Old Password = Training1


Password = Training2
Confirm = Training2

(Of course you can define the final password


as you like, Training2 is only a proposal)

Choose OK.

Now you have finished the system


preparation.

There is SAP HANA System in the left view


and four nodes related to it:

1. Catalog: DB-Schemas and their tables.


2. Content: HANA models like SAP HANA
Live and your own ones. The Hana Live
models can be found in Content  sap
 hba and we are especially interested
in the one in package “ecc”
3. Provisioning: Tools to provision data to
SAP HANA (e.g. ETL-tools, Replication
servers)
4. Security: Users, Roles and
Authorizations

6
BA275

Exercise 2: Understand the basics of working with tables and SAP HANA Live Views in
SAP HANA Studio.
In this exercise you analyze a SAP ERP-table from SD (Sales and Distribution), VBRK (Header of
Billing document). This table is one of the key sources of our SAP HANA Live model which you will
analyze at the end of this exercise.

Explanation Screenshot

In the Systems view in the top left, find the


tables of SAP ERP on SAP HANA, System ID
ZME.

Catalog  SAPZME  Tables

In order to find a certain table, right-click on


Tables and choose Filters...

Set the filter on VBRK.

Double-click on VBRK to see the list of


columns of this table.

7
BA275

Explanation Screenshot

Change to the tab Runtime Information to


see, that there are 31.176 records in this table
and the memory consumption of this column
store table is around 3 KB

Again, select VBRK table from the Systems


view and choose Open Data Preview from
the context menu.

Tab Raw Data: See the first 200 records of


table VBRK

Tab Distinct values: See the distribution of


values for all fields. E.g. See that there are
31.173 records (i.e. billing documents) for
Client 800.

8
BA275

Explanation Screenshot

Tab Analysis: Explore the data even more.

1. Drag&Drop VKORG into the Labels axis


2. Drag&Drop NETWR into the Values axis
3. Sort NETWR in descending order
4. Change graphic to pie chart

Result:
Sales organization 1000 is most successful.

9
BA275

Explanation Screenshot

Back in the Systems view, close the Catalog


node and open the Content node. Within there
go to:

saphbaeccCalculation Views

This is the place where SAP HANA Live


Views have been deployed to.

In the alphabetic list find


BillingDocumentQuery.

Select Open Data Preview from the context


menu.

This SAP HANA Live Views requests to define


a variable value for SAP client. Enter 800 and
press OK.

Now repeat a similar analysis like you have


done already on VBRK-table before.

Labels axis: Sales Organization and/or Sales


Organization Name

Values axis: TotalNetAmount_E in


descending sort order

Result: For SAP Client 800 sales


organizations Germany, Netherlands and USA
are the most successful.

10
BA275

Explanation Screenshot

Go back to the Systems view and Select


Open to see the actual model of the SAP
HANA Live View BillingDocumentQuery.

You can see that this model consists of a


Projection_1 which is continuously enhanced
with Joins to enrich some master data like
Sales Channel und DocumentType etc.

In the Semantics there is the definition of input


variable V_SAPClient.

Summary
You have completed the exercises of Chapter 1!

You are now able to:


 Setup SAP HANA Studio
 Understand the basics of working with tables and SAP HANA Live Views in SAP HANA Studio.

11
BA275

CHAPTER 2: WORKING WITH SAP HANA LIVE VIEWS IN SAP LUMIRA

Overview
Estimated time: 15 minutes

Objective
In the following exercises you will learn to work with a SAP Hana Live view in SAP Lumira

Exercise Description
 SAP Lumira: Create Visualizations and compose a dashboard

Exercise 1: SAP Lumira


In this exercise we will introduce SAP Lumira.

Explanation Screenshot

Minimize SAP HANA Studio and open SAP


Lumira via the Windows Start Menu: Start 
SAP  SAP Business Intelligence  SAP
Lumira  SAP Lumira

The main window of Lumira should be visible.

12
BA275

Explanation Screenshot

From here, select File  New to create a new


dataset

We will take the data from Hana, so select


“Connect to SAP HANA”  Next

For the logon, use again the same server and


credentials:
Server: LT5082.wdf.sap.corp
Instance: 01
Your User and (changed) password
 Connect

13
BA275

Explanation Screenshot

You can now search for a specific view using


the whole name or parts of it. In the entry field,
enter BillingDocumentItem.
For execution in Lumira, select/doubleclick the
view BillingDocumentItemQuery.

The parameter screen comes up: Enter 800


for the SAP Client

The fields of the view are displayed. We will


not do any changes here, so just press Create

14
BA275

Explanation Screenshot

The Visualize-screen of Lumira will be shown

For the start, just dag&drop Item Net Amount


of Billing to the X-Axis field,
and Distribution Channel Name to the Y-Axis.

The resulting graphic shows the distribution of


billing mounts as a bar-chart.

This is our first visualization.

Now create an additional visual by clicking on


the “+” sign in the lower part of the screen.

15
BA275

Explanation Screenshot

Select the chart type “Pie Chart”.

Add the Billing Quantity field to the “Size”


section and the Plant field to the “Color”.

Create another visual by clicking on the “+”


again.

This time we will create a table.


Select the table icon in the upper part of the
screen.

We will now also set a necessary filter by


clicking on the filter-icon in the upper part of
the screen.

16
BA275

Explanation Screenshot

The dimension for which we set a filter is


“Transaction currency”

We only want to see Euro-values, so select


the “EUR” from the list.

Important:
As this filter has to be applied to all visuals,
we select the radio button “Apply to Entire
Dataset”.
So even that we did not select a filter for the
first two visuals, the data shown in those will
now also be filtered by Transaction currency.

Press “Apply”

17
BA275

Explanation Screenshot

Drag&drop Billing Quantity, Item Net


Amount… and Tax Amount to the
“Measueres” section.

Drag&drop the Sales Organization Name to


the “Rows”.

The result should look close to the


screenshot.

We will now use the visuals to create a simple


dashboard.
Click on “Compose” in the upper part of the
screen and select the “Blank” Template from
the window that opens.

This will open a blank page

18
BA275

Explanation Screenshot

Now drag&drop the three visuals on the left


one-by-one on the blank page and arrange
them as you like.
You can resize the space a visual occupies
with your mouse.

The result could look like the screenshot.

We want to add the ability to filter the data in


the dashboard on additional dimensions.
Select “Input Controls” in the pane on the left.

19
BA275

Explanation Screenshot

Drag&drop the Distribution Channel Name


from the list of fields onto the page where the
visuals are already located.

In the control properties, select “List-box”.


This will show all members of this dimension
and allow an easy selection.

Now select any of the shown Distribution


Channels.

The data in the charts and the table will


change accordingly.

20
BA275

Explanation Screenshot

Add/change the selection if you like

Using the “File”-menu, you can now save the


entire document, including the visuals and the
composed dashboard.

Summary
You have completed the exercises!

You are now able to:


 Analyze the data from SAP HANA Live Views in SAP Lumira

21
BA275

CHAPTER 3: CUSTOMIZING SAP HANA LIVE VIEWS AND ANALYZING


IT IN SAP LUMIRA

Overview
Estimated time: 45 minutes

Objective
In the following exercise you will learn the basics of customizing SAP HANA Live Views.

Exercise Description
 Create your own SAP HANA View based on a SAP HANA Live content.
 Enhance your SAP HANA View with other delivered SAP HANA Live Views.
 Analyze the data delivered by this view in SAP Lumira.

Exercise 1: Create your own SAP HANA View based on a SAP HANA Live content

Explanation Screenshot

Go back to the SAP HANA Studio

22
BA275

Explanation Screenshot

Right-click on your user’s package and select


New  Package

The name of the package should be


“DEMO_##”, where ## is your student
number.
The description will be filled automatically.

23
BA275

Explanation Screenshot

Result: New package under your user.

Right-click on the new package and select


New  Calculation View

24
BA275

Explanation Screenshot

In the pop-up, enter the name


“##_Billing_Documents”, where ## is your
student number.

Check the box “Copy From” and press


“Browse”.

25
BA275

Explanation Screenshot

In the Browse window, enter


“BillingDocument” and from the search results,
pick the view “BillingDocumentQuery
(sap.hba.ecc)”

Press Ok

Once back, press “Finish”.

The view will be copied and opened in the


view editor.

26
BA275

Explanation Screenshot

Result: Your copied view and it’s structure.

Press the save and activate button above in


the header of the view model.

The view will activate.

After activation, the icon of the view should


look like the one on the right.

27
BA275

Explanation Screenshot

Repeat copying a view: Right-click on


“Calculation Views”  New.

Enter the name for the view:


##_CUSTOMER_DATA, where ## is your
student number.

Check “Copy From” and press “Browse”

28
BA275

Explanation Screenshot

Search for “CustomerBasic” and from the


result, select “CustomerBasicData
(sap.hba.ecc)”

Press OK.

Press “Finish” and wait for the view to be


copied and shown in the view editor.

Press the Save and Activate icon as before.

29
BA275

Explanation Screenshot

Result: You now have to copied views in your


package.

30
BA275

Exercise 2: Create new Hana View by combining the copied views

Explanation Screenshot

Right-click on Calculation Views  New.

Enter the name of the view:


“##_CUSTOMER_MAP”, where ## is your
student number.

Now press “Finish”.

31
BA275

Explanation Screenshot

In the view editor, click on the icon for “Join”.

Draw the rectangle for the join right below the


“Aggregation” box.

In the left pane, select view


“##_BILLING_DOCUMENTS” and drag&drop
it onto the box “Join_1”.

The system might take a moment to reflect


this action on the screen.

32
BA275

Explanation Screenshot

Select view “##_CUSTOMER_DATA” in the


pane on the left and drag&drop it onto the box
“Join_1”

Result should look similar to the screenshot


on the right.

If not done already, select the Join_1 box.

33
BA275

Explanation Screenshot

Drag and drop a line from the field


“SAPClient” in the left field list to the field
“SAPClient” in the right field list.

Drag and drop a line from the field


“SoldToParty” in the left field list to the field
“Customer” in the right field list.

Click on the first field in the left field list, old


the SHIFT-key, click on the last field in the
same list.

Right-click and select “Add to Output”.

34
BA275

Explanation Screenshot

In the right list, select field “CityName”, old the


CRTL-key and add “Country” to the selection.

Right-click and select “Add to Output”.

The output list on the right will show all the


selected fields that got added to the output.

With the mouse, using the right mouse button,


draw a line between the circle on top of
“Join_1” and the circle on the bottom of
“Aggregation”.

35
BA275

Explanation Screenshot

Select the Aggregation box, right-click and


select “Add to Output”.

Finally, select the “Sematics” box.


In the upper right corner, click on the indicated
icon and auto-assign the semantic to the
fields.

36
BA275

Explanation Screenshot

Result: Measures and Characteristics are now


indicated.

Save and activate the view using the indicated


icon in the upper right corner.

Select the newly activated view


“##_CUSTOMER_MAP”, right-click on it and
select “Data Preview”.

37
BA275

Explanation Screenshot

Select the “Raw Data” tab and check the


displayed data.

38
BA275

Exercise 3: Analyzing the new Hana view in SAP Lumira

Explanation Screenshot

Minimize SAP HANA Studio and open SAP


Lumira via the Windows Start Menu: Start 
SAP  SAP Business Intelligence  SAP
Lumira  SAP Lumira

The main window of Lumira should be visible.

From here, select File  New, to create a


new dataset

39
BA275

Explanation Screenshot

We will take the data from Hana, so select


“Connect to SAP HANA”  Next

For the logon, use again the same server and


credentials:
Server: LT5082.wdf.sap.corp
Instance: 01
Your User and (changed) password
 Connect

Search for “##_CUSTOMER_MAP”.


Select the view with your student number and
press “Next”.

40
BA275

Explanation Screenshot

Leave all as it is and press “Create”.

In the main window, look for “Country” in the


field list on the left. Click on the icon right of
the name and from the menu, select “Create a
geographic hierarchy”  “By Names”.

41
BA275

Explanation Screenshot

If not defaulted, select “Country” from the


drop-down box.

Press “Confirm”.

SAP Lumira shows which country identifiers


could be assigned.

Press “Done”.

Select the “Geo Bubble” chart type.

42
BA275

Explanation Screenshot

The main window will display an empty world


map.

From the Measures in the left list, drag and


drop “Total Net Amount” to the “Size”-field.

From the Dimensions in the left list, drag and


drop the “Country” to the “Geography”-field.

In the lower part of the screen, click on the “+”


to add another visual.

Select the “Tree Map” from the chart types.

43
BA275

Explanation Screenshot

From the Measures, drag and drop the


“Number of Billing Documents” to the field
“Size”.

From the Measures, drag and drop the “Total


Net Amount” to the field “Color”.

From the Dimensions, drag and drop


“Country” to the field “Label”.

Clock on “Compose” in the upper part of the


screen.

Select the “Blank” template and press


“Create”.

You will see the visuals you created on the left


and an empty canvas in the middle.

44
BA275

Explanation Screenshot

Drag and drop the map visual onto the canvas


and resize it using the mouse.

Drag and drop the Tree Map on an empty


space of the canvas.
Resize it using the mouse.

In the left pane, click on “Input Controls”.


From the list of fields that appears, drag and
drop the “Sales Organization Name” onto an
empty space of the canvas.
In the “CONTROL PROPERTIES” on the
right, select “List-box” from the drop down
box.

You can now select Sales Organizations and


thus filter the data in the map and in the Tree
Map.

Summary
You have completed the exercises!

You are now able to:


 Create your own SAP HANA View based on a SAP HANA Live content.
 Enhance your SAP HANA View with other delivered SAP HANA Live Views.
 Analyze the data delivered by this view in SAP Lumira.

45
BA275

CHAPTER 4: WORKING WITH REPORTS IN S/4HANA

Overview
Estimated time: 15 minutes

Objective
In the following exercise you will learn how multidimensional reports are working in S/4HANA

Exercise Description
 Analyze data via slice and dice
 Save personalized views of a report.

Exercise 1: Analyze Data

Explanation Screenshot

Log on to the Fiori Launchpad.

Scroll down to the Fiori groups “Sales –


Analytics”.
Here you find two multidimensional reports
“Revenue from Invoices” and “incoming Sales
Orders”.
You can click on “Incoming Sales Orders”. To
execute the report.

Note: In the Fiori group “Sales – Sales


Orders” you can see several Smart Business
KPIs. But those are not part of the exercise.

46
BA275

Explanation Screenshot

But we will use the search feature of the Fiori


Launchpad.

In the search box, enter “Incomi”. The system


will already propose “Incoming Sales Orders”.
Select this report from the result-list.

The report will first show a variable pop-up.


Enter “EUR”, press return and click on “OK”.

The report will show the result.


To change the data-slice, click on the left-
most icon of “Bill-To Party Name”.

47
BA275

Explanation Screenshot

To refresh the result set, click on the wrench-


icon.

The result set will be updated and now also


show “Bill-To Party Name”.

Click on the chart icon to switch to a graphic


representation of the data.

48
BA275

Explanation Screenshot

Click on the indicated icon to show chart and


table at the same time.

Remove “Bill-To Party Name” by clicking on


the leftmost icon left of the fieldname.

The result is the view we want to save under a


n own name to be able to call up this state of
the report without repeating all the steps we
did.

49
BA275

Explanation Screenshot

Click on the indicated icon.


IN the box that opens, click on “Save”.

You can now enter an arbitrary name for your


variant.

Click on “ok”.

Back on the Fiori Launchpad, click on the


“Query Browser”.

50
BA275

Explanation Screenshot

The Query Browser will show a list of all your


reports.

Among them is the “Incoming Sales Orders”


report.
Select the report by checking the box on the
left.
Click on “Open in Design Studio” in the lower
part of the screen.

Again, enter “EUR”, press return and click on


“OK”.

In the report, open the list of variants using the


indicated icon.

In the list, select your variant.

51
BA275

Explanation Screenshot

The saved variant will be displayed.

Summary
Congratulations - You have completed the exercises!

You are now able to:


 Analyze data using a S/4HANA multidimensional report
 Personalize multidimensional reports

© 2015 SAP SE or an SAP affiliate company. All rights reserved.


No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP
affiliate company. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

52

You might also like