Challenge 7: Analytical Dashboard Using SAP S/4 Hana DB - Coach’s Guide

< Previous Challenge - Home

Notes & Guidance

There are few actvities for the PowerBI APP intergation with SAP HANA DB, at the high level steps can be summerized into three activities.

Contact your Microsoft team for the deployment files like SAP HANA studio, HANA client.

Activity 1:

Make sure that SAP S/4 appliance is installed and have access details to correct SAP client.

Activity 2:

Download and install the Power BI client, SAP Hana client and SAP HANA studio on SAP windows jump box to configure the DB connection and create the direct query using power BI desktop,

Activity 3:

Configure the poweBI app connection to SAP HANA DB using steps from documenations (both SAP and Azure). steps include –

  1. Create the additional SAP schema user , Assign appropriate previleges and roles to newly created users in HANA studio to conenct to SAP S/4 schema.
  2. In power BI clinet GUI add the user name / password of HANA db user and connection strings with tables name to extract the data.
  3. Once the data is extracted into power BI client, use appropariate column, row and filter criteria to create the query to show vistulaization using PIE and BAR chart.
  4. Publish the power BI app for the end user so they can use on their desktop for future use.

Login into SAP HANA Database using HANA Studio:

Image1

Initial screen of SAP HANA studio will pop up

Image8

Right click on the left space under systems and select “Add System”

Image9

Enter the system information as below

Image10

Enter system user ID and password for SAP HANA DB

Image11

Add SAP system S4P

Image12

Enter the “SYSTEM” DB user and password

Image13

Setup new User ID in SAP HANA Database:

Create a new user ID SAPOPENHACK in SAP HANA, this user will be used to connect Power BI to SAP HANA Database

Image14

Create new user SAPOPENHACK

Image15

Enter “SAPOPENHACK” ID and Password –

Add “ ABAP admin” “content admin” public” roles

Image16

Add “catalog read”, “data admin” and “export” system privileges ..

Image17

Add following object privileges — create and select

Image18

Image19

Save the configuration

Image20

When we update the “Object Privileges” with TBTCO and granter is SYSTEM it won’t save it and gives an error. So remove that object and login into S4P with SAPHANADB ( User ID) and then goto securityàUsers-àSAPOPENHACK and add the object privileges with TBTCO.

Image21

Follow the steps above and add an entry for SAPOPENHACK user also in HANA Studio.

Image7

HANA configuration is complete … now Let’s work on Power BI connection and report…

Setup the connection in Power BI desktop to SAP HANA Database:

Install Power BI Desktop

Image22

Open Power BI desktop

Image23

Click on “Get data from another source” and select “ Connect”

On following screen, type SAP Keyword

Image24

Enter SAP DB information on following screen

Image25

Enter port information as follows

Image26

How to find the right SQL port in SAP HANA

Image43

Select custom and SQL query as follows

Image27

Note: When entering User credentials please make sure you select “Database” not “Windows” on left hanad side as highlighted on the below image.

Image41

Will pop up with information about SAP table TBTCO as follows

Image28

Select “Load” after the screen appears

Image29

Select “transform data “ on opo up screen as shwon in following screen

Image30

Image31

Image32

Creating visualization in Power BI using the SAP table TBTCO

Create a Matrix.

Image33

Add fields “JOBNAME” and “AUTHCKMAN” in Rows

Add field “STATUS” in Columns

Add “EVENTID” in Values

Image34

Create a new Table in the visualization

Drag and drop fields “JOBNAME”, “JOBCLASS”, “JOBLOG”, “REAXSERVER” and “ENDDATE” under values

Image35

Create a Pie chart:

Drag and drop field “AUTHCKMAN” under Legend and field “JOBCOUNT” under Values ( with count).

Image36

Create a Filter or Slicer

Drag and drop field “AUTHCKMAN” under Field.

Image37

Image38

Image39

Save the report

Image40

Once the report is saved need to publish to Power Apps