Professional Documents
Culture Documents
Input Parameters:
We create input parameters in Projection so that while checking the data preview of
the Hana model, as per the input parameter value we give, the data will be filtered
out in the projection level so that unnecessary data will not be sent to the next node
hence it improves the performance of the Hana model.
Variable: we create Variable in Semantics node, even though we give the variable
value
while checking the data preview of the Hana model, unnecessary data will be sent
from projection to semantics at the semantics the data will be filtered out as per the
variable value we give
we are able to find one extra functionality of the variable is that we create range
range means for example: if want to see the particular period of time on “year”
column then we create variable, while checking the data preview of the Hana model it
will ask that which period of time you want to see the data preview
then we can give like 2020 to 2022.
2)Why we apply input parameter at projection level and variable at top level:
A) variables we are able to create only in Sematics node, we cannot find variable in
any node except in Semantics.
we are able to create input parameters in any node and but we create input
parameters in Projection so that while checking the data preview of the Hana model,
as per the input parameter value whatever we give, the data will be filtered out in the
projection level so- that unnecessary data will not be sent to the next node hence it
improves the performance of the Hana model.
3) Types of joins and difference between inner and referential join
A) calculation views:
Inner join
Left outer join
Right outer join
Text join
Full outer join
Analytical view:
Referential join
Inner join
Left outer join
Right outer join
Text join
Full outer join
So, before we move forward with understanding referential integrity. It is formed between
a fact table (transaction data or Analytic View) and a master data table( Attribute View).
Every master data table has a primary key column which acts as a foreign key in the
fact table.
Referential joins in SAP HANA are used whenever there is a primary key and foreign key
association between two tables. And, referential integrity is when for every value in the
foreign key column, there is a reference value in the primary key column of the master data
table.
From a performance point of view, referential joins are better than inner joins. Referential
joins are recommended for star schemas as long as referential integrity is maintained.
A Join combines data into new columns. A Join between two tables shows data from the first
table in one set of columns alongside the second table’s column in the same row. Joins are
generally used to look up specific values and including them in results.
A Union combines data into new rows. A Union between two tables shows data from the first
table in one set of rows, and the data from the second table in another set of rows. Unions
are generally used to combine two datasets into a single result to perform operations.
16) what are the different Data categories and what's the blank type denotes?
CUBE-FOR CREATING HANA MODELS WHICH ARE USEFUL FOR REPORTING
DIMENSION-WHICH SUPPORTS TO CREATE MAIN HANA MODELS WHICH ARE
USEFUL FOR REPORING
BLANK
When it is blank, the view is executed in the calculation engine. When it is set to SQL
ENGINE, the view is executed in the SQL engine. Each engine has its own strength. For
example, the calculation engine is good at calculating currency conversion, whereas the
SQL engine is good at optimizing join order. The ExECUTE IN field should be customized on
a case-by-case basis to determine which engine should be chosen. Some native functions
are supported only with the column engine and not convertible such as with DATE() .When
the view contains such functions, you cannot set it to be executed in the SQL engine.
17) Define and differentiate table function and stored procedure
Table Functions are used to implement the solutions where we need to return the
results represented in a table. Mostly we will implement table functions to address the
data modelling requirements which cannot be achieved using graphical calculation
views.
Key features of Table Functions:
▪ Replaces the Script based Calculation views
▪ Can be used as data sources in graphical calculation views
▪ Read-only – we cannot implement any logic that updates the data
▪ Accept multiple input parameters and return exactly one results table
Key Points:
▪ We can use the table functions as data source in calculation views
▪ We can call the table functions from stored procedures and other table functions
Stored procedures are the reusable processing blocks of logic, which can be used to
implement solutions as per specific business requirements.
Commonly we implement stored procedures to build the solutions for the
scenarios such as: 1) Persisting results in HANA database – example Snapshots,
Reusable results of HANA views – to avoid frequent execution of complex views.
2) Reusable solutions – Data conversions, Calculations etc.
▪ Procedures can be defined as Read only OR Read/ Write Procedures
▪ These are the typical ways of calling procedures:
▪ Calling stored procedures from another procedure or function
▪ Scheduling the procedure call from XS Job engine which is in-build in HANA
▪ Scheduling the procedure call from external ETL tools such as Business Objects
Data Services Procedures can be created as:
1. Catalog Procedures: These are not transportable, since they are created using the
CREATE PROCEDURE statement and they are not created under a package.
2. Repository Procedures: These are the procedures created using the HANA
development perspective (Extension .hdbprocedure). This is the recommended
approach for creating stored procedures since they can be transported, and version
management is available
19) Difference b/w cube with star join and cube with out star join view
Discussed in class
20).When we use SLT replication
Discussed in class
21).Define all SLP replication techniques load replicate stop suspend resume
Discussed in class
22) .what kind of method we can use in SLT means trigger based or any other
A)TRIGGER BASED
23) .Is batch process is possible through SLT
A) YES, while configuring SLT CONNECTION, admin has to select time or interval
instead of realtime then it becomes batch process
24) what are the Tcodes we can use in SLT
LTRC-for replication
LTRS-for transformation(like filter the data and columns on the table)
LTR-to create the SLT connection by admin
25)How we transport hana view. Complete process
Explain HTA tcode or Delivery unit as discussed in class
26) what are analytical privileges and how we can apply them.
Analytic privileges control access to SAP HANA data models. Analytic privileges help you to
achieve row-level security on information views. To define analytic privileges, specify the
range of values that a user is permitted to access. When the user uses the view, a filter
based on the analytic privilege will be applied on the view to retrieve the records that the
user is permitted to access. You can define two types of analytic privileges: classical analytic
privilege and SQLbased analytic privilege.
Classical Analytic Privilege An XML-based, or classic, analytic privilege allows you to assign
selective access to information views to users based on data combinations.
In the analytic privilege definition window, you can define a date range in the PRIVILEGE
VALIDITY pane (see Figure). Within that range, those users with the privilege are authorized
to access the views. Otherwise, they are not authorized. This defines the privilege from a
time perspective. To define row-level security, first choose the attribute you want to add the
restriction to, then set a filter on the column under the ASSIGN RESTRICTIONS pane.
Some questions already we discussed in class hence I am not writing answers in the
document.