S04 Native HANA Modeling Part3
S04 Native HANA Modeling Part3
SAP Native HANA 1. SDA Remote Source & HANA Virtual Tables - Done 9th Aug: 8:30 AM - 10:30 AM
Modeling Fundamentals 2. HANA Calculation Views
1. Create Material Dim CV
2. Create Plant Dim CV
3. Create table function based Plant Dim CV
4. Renaming the Plant CV to Plant CV_DIM
5. Copy a CV from one Pkg to another
6. Move a CV from one Pkg to another
7. Create Sales Fact CV (Cube)
8. Create Cube with Star Join
3. HANA DB Procedures
4. HANA XS Job scheduler Config
5. HANA Node types and purpose
Batch_2 Page 1
Q & A Session
Vijay Non-cummulative keyfigure/Models how are we going to work from conversion point from bwon hana to
bw4hana
Is there is a possibility to check lineage in multiple calc. views for finding the table using the specific
field/formula/calculation
How can we leverage the abilities of SAP HANA while we are working with virutal table using SDI/SDA
Batch_2 Page 2
Batch_2 Page 3
Lineage
Batch_2 Page 4
How to activate the BW/4HANA Cockpit
PGM BW4_UI5_IFC_CONSISTENCY
Results example:
Check the warnings (Yellow): These services are inactive in your system.
We need to activate them via SICF tcode.
Provide the path and service name: the service will be greyed out since it's inactive
Batch_2 Page 5
From the context menu (right click), select 'Activate service:
Once all services are activated, run the consistency check again and this time it should provide a message - 'All services are
active' :
Batch_2 Page 6
Now you need to log off (Close Project) and log back in (Open project and double click to login), for the change to take effect.
2. You can also click on the option on the top menu bar:
This option will ask you choose the project and it'll list only those projects (connections) which has all services
activated.
If you have any Odata service missing then you need to add that service via a different path:
Once you click on the service name listed, you need to assign package and then click ok...the message that service is
successfully added, will be displayed.
Voila!...this is how you activate the Odata services and make that beautiful BW/4H Cockpit work!
Batch_2 Page 7
Voila!...this is how you activate the Odata services and make that beautiful BW/4H Cockpit work!
Batch_2 Page 8
HANA Nodes and Purpose
Batch_2 Page 9
Aggregation Sum the measures (Sum, Min, Max)
In a Nutshell:
Batch_2 Page 10
HANA CV Types - Refresher
Batch_2 Page 11
Batch_2 Page 12
HANA DB Stored Procedures
What is a HANA Stored ▪ Used to combine multiple SQL statements which needs to be run regularly.
Procedure ▪ Is a repository object - meaning will be accessible via 'Development Perspective' only.
▪ Can be used in SQL console.
▪ Allows for complex coding and statements like INSERT, UPDATE, TRUNCATE etc.
▪ File gets created with extension - '.hdbprocedure'.
▪ Used in XS Job to scheduling.
Read-Only
Read-Write
Method to automate the DB XSC Jobs
procedure
Description: Name of your Job
Action: Name of your DB Procedure
Schedule: Frequency of runs (Daily/hourly/Mon-Wed/Monthly)
Desc
XSCRON - 7* (* * * * * * * ) = (Y M D DayofWeek Hour Min Sec)
Parameters
Batch_2 Page 13
XS Job
Activate XS Job It is required to enable the XS engine scheduler for scheduled backups configured on SAP HANA Cockpit .
Scheduler ▪ Logon on SAP Hana Studio.
▪ Browse to the configuration tab.
▪ Open the xsengine.ini and add or configure the value for scheduler as shown below.
▪ Scheduler parameter might not be visible in many cases. For that case kindly add the parameter manually, either directly
from HANA Studio or by the following SQL command:
ALTER SYSTEM ALTER configuration ('xsengine.ini','SYSTEM') SET ('scheduler','enabled')= 'true' WITH
reconfigure;
https://launchpad.support.sap.com/#/notes/2465026
https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.04/en-
US/5ca042ca971f4fddbc1d4a961f7c22ed.html
Roles sap.hana.xs.admin.roles::JobAdministrator
sap.hana.xs.admin.roles::HTTPDestAdministrator
Format:
{
"description" : "abc",
"schedules" :
Batch_2 Page 14
"schedules" :
[
{ "description" : "xyz",
"xscron" : " * * * * * * * "
}
,
( "description" : "xyzz",
"xscron" : " * * * * * * * "
)
,
( "description" : "xyzzz",
"xscron" : " * * * * * * * "
)
Examples
Batch_2 Page 15
Batch_2 Page 16