How To Create Reports In Hana
We have till now loaded data from SAP Source, Non-SAP, and Flat file through SAP SLT, SAP BODS and created information view (Attribute View, Analytic View, and Calculation View).
Now we will discuss the information view in reporting tools –The drivers like JDBC, ODBC, and ODBO in reporting tool are part of SAP HANA Client.
So by installing SAP HANA Client software (*.exe file) will make all the drivers available on the PC for connecting to reporting tools to SAP HANA.
We will use SAP BO, SAP Lumira, and Microsoft Excel to access SAP HANA information view in this tutorial.
The choice of reporting tool depends upon the type of reports that are required.
In this tutorial, you will learn-
- Reporting In SAP BI (Business Intelligence) Overview
- Reporting In Webi of SAP Business Objects (BO) on HANA
- Reporting In Crystal Report
- Reporting In SAP Lumira
- Reporting In Microsoft Excel
Reporting in SAP BI (Business Intelligence) Overview
SAP BI is a data warehousing and reporting tool.
In BI (Business Intelligence) raw data will be cleaned, business logic applied, processed and provide meaningful information to the user. BI is a SAP Product, which provides the user friendly environment.
SAP BI support many databases, but when we migrate from source data to SAP HANA then architecture will be as below-
SAP BI is three tier architecture –
- Database Server – In this, data is physically stored in PSA, ODS, Infocube.
- Application Server – It is used to access data from database server and process data for Presentation server.
- Presentation Server- It displays the data to the user.
SAP Bex Query Designer (Component of SAP BI) can access SAP HANA View as info provider and display data in Bex.
Reporting in Webi of SAP Business Object (BO) from HANA
SAP Business Objects Web Intelligence (SAP BO WebI) is part of the SAP Business Objects Platform (SBOP) client tools family. SAP Business Objects tool use the JDBC/ODBC driver to connect to the source system.
Features of SAP BO WebI is as below –
- Webi is adhoc reporting tool.
- Webi is used for detail level report.
- Webi display the result in tabular or graphical formats.
- User can create / modify their own queries for the report.
After installing SAP HANA client, JDBC/ODBC driver will be installed on PC.
These drivers act as an intermediate between SAP HANA and client reporting tools when presenting data to the user.
SAP BO Server and SAP BO Platform (SBOP) client tools.
Create Universe using Information Design Tool
Step 1) In this step, we will create a universe Using Information Design Tool (IDT).
HANA can be accessed via ODBC and JDBC drivers, and its tables can be defined and queried with SQL language. Tables are managed with a tool called HANA Studio.
- Launch IDT by navigating to
Start Menu -> SAP Business Intelligence -> SAP Business Objects BI platform 4 Client Tools -> Information Design Tool
Information Design tool screen will appear. To create a universe we need a project in IDT.
- Navigate to Project Option as below-
- Click On File.
- Click on New option.
- Select Project option.
Or
- Click On New File Icon.
- Select Project.
A pop-up for New Project will appear- In this pop-up, enter following details:
1. Enter name of project
2. Click on finish button.
Project Name "WEBI_DHK_HANA" will appear under Local Projects Tab as below.
A project is a local workspace where you store the resources used to build one or more universes.
There are two connections available, detail of each is as below –
- Relational Connection – To access data from a table and access regular RDBMS use Relational Connection.
- OLAP Connection – To access data from the application (SAP, Oracle, Microsoft, SAP BO) and data stored in Cube / Information View use OLAP connection.
Step 2) Now we create a Relational connection.
So go to Project – > New -> Relational Connection.
A Pop-Up for New Relation Connection source name appear-
- Enter Resource Name.
- Click on Next Button.
A Pop-Up for Database Middleware Driver Selection will appear-
- Select JDBC Drivers option under SAP HANA Database 1.0.
- Click on Next Button.
A pop-up for New Relational Connection parameter will be displayed, enter following details into it.
- Authentication Mode will be selected as "Use Specified User Name and Password".
- Enter HANA User Name.
- Enter Password.
- Select Single server in DATA Source section. Enter Host Name (here best: 30015).
- Enter Instance Number.
- Click on Test Connection button to verify the connection.
A pop-up for Test Connection successful will be displayed.
After successful Connection, a connection with name SAP HANA.cnx will be created.
Step 3) To consume Universe by Web Intelligence, Dashboards or Crystal Report for Enterprise, we need to publish the connection. So, now we publish connection for SAP HANA.cnx.
- Select SAP HANA.cnx connection under Project "WEBI_DHK_HANA" and right click.
- Select Publish Connection to a repository.
- A Publish connection with name SAPHANA.cns will be created after successful publish in the repository.
A pop-up for publishing connection to repository appears –
- Select Business IDT.
- Click on finish button.
A pop-up "The connection was published successfully" will be displayed.
Now we create Universe by using SAP HANA Business Layer.
Step 4) Create Universe (Universe is a business representation of your data warehouse or transactional database. Universe allow the user to interact with data without knowledge of complexities of the database).
To create universe, we use SAP HANA Business Layer as below –
SAP HANA Business Layer
From SAP BOBI 4.1, SAP provides a new option "SAP HANA Business Layer" while creating the universe using Information Design tool.
Before SAP BOBI 4.1 version, we need to create a derived table while building data foundation and map the variable and input parameters.
SAP HANA Business Layer automatically creates a data foundation and business layer based on selected SAP HANA Views.
SAP HANA Business Layer automatically detects the input parameter and variables.
We Create Universe through SAP HANA Business Layer as below-
- Select Project Created "WEBI_DHK_HANA".
- Right click the project and select a new option.
- Select option "SAP HANA Business Layer".
A Pop-up for SAP HANA Business Layer appears-
- Enter Business Layer Name.
- Enter Data Foundation Name.
- Enter Description.
- Click On Next Button.
A Pop-up for Select SAP HANA Connection displayed-
- Tick on Connection "SAPHANA.cnx".
- Click on Next Button.
A Pop-up for selecting SAP HANA Information Model will be displayed.
- Now Select Analytic View (AN_PURCHASE_ORDERS) Created under HANAUSER Package.
- Click on Finish Button.
The analytic view will open in Information Design tool.
Step 5) Detail of Information Design tool will be as below-
- Under Project- all Relational Connection, Business Layer, and Data Foundation will be displayed.
- In repository resource section, object (Connection, Business Layer, etc.) stored in the repository will be displayed.
- Business Layer shows Business view of Analytic view. It is for Functional Person.
- Data Foundation shows table and column name. It is for Technical Person.
Step 6) In this step,
Select Business layer section, go to the folder with the name of Analytic View.
Now follow points as below-
- Select data foundation section.
- Drag and drop column to Analytic View
- It will display objects under Analytic View
- Dragged field will be displayed under Analytic View (AN_PURCHASE_ORDER).
Step 7) In this step, save all object.
Go to file and click on "Save All" option to save all objects.
After that, follow the step below.
Step 8) Create a Query and view output.
- Go to Queries option.
- A Query panel will be displayed, Select the field to which you want to include in Query.
- Drag and drop them to "Result object for Query #1 "section.
- Click on Refresh Button on Result set section.
- Result will be displayed.
Reporting in SAP Crystal Report
SAP Crystal Report help us to design, explore, visualize and provide report, which can be run on web or enterprises applications. With SAP Crystal Report we can create simple report or complex report.
There are two types of SAP Crystal Reports –
- Crystal Report 2011 /13 /16: This will be used when –
- If you want to call a HANA stored procedure from Crystal Reports.
- If you want to create SQL Expressions
- If you want to execute a view with parameters or variables and submit non-default values
- Crystal Report for Enterprises: This will be used when –
- If there are Universe available or needed, then use SAP Crystal Reports Enterprises.
We will use crystal reports for enterprises.
Step 1) Login into Crystal Report for Enterprises.
SAP Crystal reports for Enterprises will be displayed as below-
- It is Report Formatting section, which provides a different tool for formatting.
- This is an icon for the window (Data Explorer, outline, Group tree, Find).
- Detail of Data Explorer, outline, Group tree, Find, etc. will be displayed.
- Report Page Formatting option.
- Work Area for Report.
Step 2) Now we create a connection for the data source.
Click on Choose data Source option from Data Explorer-
A pop-up for Choose a data source type will be displayed-
Select Browse option from SAP HANA Platform Section.
A pop-up for connecting to the server will be displayed. Click on "New Server" Button.
A window for Server connection will be displayed as below-
- Click on Add Button.
- Enter Connection Display Name (saphana).
- A connection Name will appear in the connection list.
- Enter HANA Server name.
- Enter HANA Server Instance Name.
- Enter HANA username.
- Click on "Test Connection "Button.
- A pop-up for Test connection logon. Enter password for SAP HANA user.
- Click on the OK button.
A message for connection successful will be displayed.
Click on OK Button.
A pop-up for connecting to the Server will display.
Step 3) In this step,
- We will do the following thing
- Select server "saphana."
- Click on OK button
A pop-up for entering a password will be displayed, enter the password and then click OK.
One more pop-up will appear for selecting HANA View.
2) In this step, we select SAP HANA View.
- Select HANA View (Analytic View AN_PURCHASE_ORDERS).
- Click on OK Button.
- In this step, a window for Query will open.
Follow below point to create a query-
- Select required column from the list for the query.
- Drag and Drop required field in Query.
- Click on Refresh button.
- The result set will be displayed.
- Click on
button.
Report Output will be displayed as below-
Reporting in SAP Lumira
SAP Lumira is new software by SAP to Analyze and Visualize data.
By SAP Lumira user can create a beautiful and interactive map, infograpg, and charts. SAP Lumira can import data from Excel, and other source.
SAP Lumira can access information view of SAP HANA directly. SAP HANA Perform visual BI analysis using dashboard.
In SAP Lumira, the following steps need to be done to visualize data.
Now we visualize SAP HANA View in SAP Lumira, so firstly we login in SAP Lumira by Click on SAP Lumira Client icon on desktop as below-
Step 1) Create a Document and acquire a data set
After open SAP Lumira, screen open for work on SAP Lumira, Detail about this screen as below-
- Application Toolbar – It contains toolbar like File, Edit, View, Data, and Help.
- Home Link – By using this option we can go to home screen.
- My Document Sections
- Documents
- Visualizations
- Datasets
- Stories
- SAP Lumira Cloud – By using this option, we can use cloud options.
- Connections – W can see all connection here.
So, click on Document option on My Items section to create a Documents –
- Go to file application Toolbar., click on file option
- Select New Option.
SAP Lumira supports below dataset –
- Microsoft Excel
- Text
- Copy from clipboard
- Connect to SAP HANA
- Download From SAP HANA
- Universe
- Query With SQL
- Connect to SAP Business Warehouse
- SAP Universe Query Panel
Step-2) Connect to SAP HANA
Here we will connect to SAP HANA and access SAP HANA Information View.
- So select Connect to SAP HANA.
- Click on Next Button.
A pop-up for SAP HANA Server Credential will be displayed as below-
- Enter SAP HANA Server name.
- Enter SAP HANA Instance no.
- Enter SAP HANA User Name.
- Enter SAP HANA Password.
- Click on "Connect" Button to Connect to SAP HANA Server.
After clicking on Connect button, we will connect to SAP HANA and able to access SAP HANA view.
Step 3) Access SAP HANA Analytic View
A window for select SAP HANA View will appear as below-
- Select SAP HANA View ("AN_PURCHASE_ORDERS" here).
- Click on Next Button.
Step 4 ) Define Dimension and Measure.
The next window for select Measures and Dimensions will be displayed –
- All Measure will be grouped under Measure sections.
- All Dimension will be grouped under Dimension Sections.
- Click on Create Button.
Step 5) Visualize SAP HANA Analytic View in SAP Lumira.
After activating Information View in SAP HANA, a Column View with the similar name of information view, under "_SYS_BIC" Schema created in SAP HANA catalog node.
When we need to access any SAP HANA Information View outside from SAP HANA, We can access it only from "_SYS_BIC" Schema.
A Visualize screen will appear, which select column view under "_SYS_BIC" Schema –
- Different Chart Type can be selected from Chart Builder Section.
- Click On Chart Builder Icon.
- Select Column Chart option.
- Click On "+" icon in front of MEASURES Section to Add Measure in Y Axis format.
- We have added "GROSS_AMOUNT" AND "TAX_AMOUNT" Measure.
- Click on the icon in front of "DIMENSIONS" Section. A list of all available dimension appear.
- Select "CATEGORY", "PRODUCT_ID", "PRODUCT_NAME" from Dimension List to display on X Axis.
SAP HANA Analytic view will be displayed in visualize tab of SAP Lumira, in which we have different screen as below-
- Tool for Ascending / descending, Ranking, Clear, refresh, etc.
- This can be used for Filtering.
- The output of SAP HANA Analytic views in SAP HANA lumira.
Reporting in Microsoft Excel
Microsoft Excel has powerful reporting inbuilt option; we can create report quickly by pivot tables and charts.
MS Office uses MDX language ((Multi Dimension Expression language) to access data from SAP HANA.
MDX Language is used by reporting tool to access data from a multi-dimensional object in a database environment. By Only MDX Query we can access sap Hana hierarchies.
We can access only SAP HANA information view which has a property as 'CUBE' in semantic, so we cannot access attribute view by MS Excel.
Connecting Drivers- MS Excel uses ODBO (OLE DB FOR OLAP) drivers for connecting to SAP HANA database.
Now we will access SAP HANA database from SAP HANA as shown in steps below –
Step 1) Connect To SAP HANA Excel-
- Open MS Excel. Go to Data Tab.
- Click on "From Other Sources" Icon.
- Select From Data Connection Wizard.
A screen for Data connection wizard will be displayed as below-
- Select "Other / Advance" option.
- Click on Next Button.
A window for "Data Link Properties "will be open as below-
- Select "SAP HANA MDX Provider "under Provide Tab.
- Click on Next Button.
A window for data link properties will be displayed –
Enter the following detail as below –
- Enter Host Name of SAP HANA Database.
- Enter Instance number of SAP HANA database.
- Enter Username / password for SAP HANA database.
- Enter Language name.
- Click on "Test Connection" to test the connection to SAP HANA Database from Excel.
A message "Test connection succeeded" will be pop-up.
Click on the OK button.
Step 2) Till now we had created a connection from Excel to SAP HANA and tested the connection. Now we access SAP HANA Information View from Excel.
Now a window for "Data connection wizard" will be displayed.
- Select the package in which contains SAP HANA Information View.
- Select Information View (Analytic View, Calculation View).
- Click on Next Button.
A new window for data connection File will appear, enter following details.
1. Give File Name (AV_SALES).
2. Tick option "Save password in file", for avoid to enter a password while open Excel file.
3. A Pop-up for save password security related will be displayed.
4. Click on Finish Button.
Step 3) Now SAP HANA Information View will be displayed in Excel as pivot table as below –
Summary:
We have learned in this tutorial below topic –
- Reporting in SAP BI overview
- Reporting in SAP BO Webi with an example of SAP HANA information View.
- Reporting in SAP Crystal Report Enterprises with an example of SAP HANA information View.
- Reporting in SAP Lumira with an example of SAP HANA information View.
- Reporting in Microsoft Excel by consuming SAP HANA Information view.
How To Create Reports In Hana
Source: https://www.guru99.com/sap-hana-reporting.html
Posted by: dejesustheral83.blogspot.com
0 Response to "How To Create Reports In Hana"
Post a Comment