Académique Documents
Professionnel Documents
Culture Documents
Public
Public
Public
Public
Design-time object Transportable Plain text file Mandatory file suffix (.hdbschema) Repository activation creates runtime object in the catalog
Public
Public
Metadata:
Constraints on table Constraints on values in particular columns
Public
Design-time object Transportable Plain text file Mandatory file suffix (.hdbtable) Repository activation creates runtime object in the catalog
Public
Database Schemas and Database Tables Design-time Tables: Configuration Syntax (.hdbtable)
Mandatory syntax (.hdbtable) Schema name Table type Column/Row Table columns Name, SQL type, length Data types
NVARCHAR, DATE, DECIMAL
Primary key
Public
10
Database object
<package.path>::<SequenceName>
Generates an incremented list of numeric values Ascending/descending order Used by applications to:
Reference sequence objects Generate primary key values Identify table columns/rows Coordinate keys across rows/tables
Public
Design-time object Transportable Plain text file Mandatory file suffix (.hdbsequence) Repository activation creates runtime object in the catalog
Public
Mandatory syntax
.hdbsequence
Keywords:
schema start_with nomaxvalue nominvalue cycles depends_on_table depends_on_view
Usage:
SQL Insert (NEXTVAL)
Public
Database object
<package.path>::<ViewName>
Public
Design-time object Transportable Plain text file Mandatory file suffix (.hdbview) Repository activation creates runtime object in the catalog
Public
Public
Authorizations
Available Active Roles: Overview
Default Roles:
CONTENT_ADMIN MODELING PUBLIC
Imported Roles:
<PackagePath>::<RoleName> sap.hana.xs.admin::administrator sap.hana.xs.admin::viewer sap.hana.ui5.db::SITE_DESIGNER sap.hana.ui5.db::SITE_USER
Public
Authorizations
Building Repository Roles: Create
Design-time object Transportable Plain text file Mandatory file suffix (.hdbrole) Repository activation creates runtime object in the catalog
Public
Authorizations
Building Repository Roles: Define
Commit/Activate
Public
Authorizations
Building Repository Roles: Grant Activated Role to a User
Grant parameters
ROLENAME USERNAME
Public
The EPM demo data includes the following catalog objects: Tables Views Sequences Synonyms
Public
A table is a set of data elements that are organized using columns and rows. EPM Tables:
Addresses Business partners Employees Products Sales orders
Public
A view is a virtual table based on the dynamic results returned in response to an SQL statement. EPM Views
PurchaseOrderHeaderExt
Public
A sequence is a database object that generates an automatically incremented list of numeric values to identify tables, columns, or rows. EPM Sequences:
Address ID Employee ID Partner ID Purchase Order ID Sales Order ID Text ID
Public
Public
CSV file
Holds data, separated by commas, to load into target table
Public
Data source file Transportable, design-time object Contains the values to load into the database table Values separated by commas Number of columns in CSV file/ target table must match Data types in target table/CSV columns must match
Public
Table import model file Design-time object Transportable Mandatory file suffix (.hdbtim) Specifies source file type Defines the target table in the database (item)
Public
Table import data file Design-time object Transportable Mandatory file suffix (.hdbtid) Connects the CSV source file to the data load model file Specifies the source CSV file
Public
SELECT
TOP 1000 *
FROM
Schema name WORKSHOPX_00 Namespace workshop.sessionx.00.data Object delimiter double colon (::) Table name item
Public
Attribute Views
Overview
Attribute views:
Model an entity based upon relationships of multiple source tables
Can contain:
Columns Calculated columns Hierarchies
Public
Attribute Views
Defining Sources and Relationships
Relationships
Join fields in tables to get a consistent definition of the overall entity.
Public
Attribute Views
Defining the Output Structure
Example:
Tables often contain a large number of columns. Add only the columns you really need in the output structure.
Field selection
Output structure
Public
Attribute Views
Defining Field and Column Properties
Public
Attribute Views
Defining Calculated Output Fields 1
To define a new calculated output field that is based on existing fields in the view, you can use:
Other output fields Formulas Conversion (unit of measure and currency)
Public
Attribute Views
Defining Calculated Output Fields 2
Public
Attribute Views
Data Preview
Public
Attribute Views
Data Preview with Analysis
Public
Analytic Views
Overview
Analytic Views:
Leverage the computing power of SAP HANA to calculate aggregate data Contain two types of columns
Attributes Measures
Analytic Views
Set Parameters
Assign a unique name for the technical name of the analytic view Change the view type to Analytic View
Analytic Views
Definition of Data Foundation and Logical Joins
Logical Join:
Represents the relationship between the selected table fields (fact table) and attribute views
Analytic Views
Data Foundation View
The Data Foundation view shows all the fields that can be incorporated into the final model.
These fields are marked as output fields
Analytic Views
Logical Join
The Logical Join view displays only those fields you have chosen to include in this model, as well as the restricted and calculated measures that have been defined.
Analytic Views
Semantics View
In the Semantics view, you can classify the columns and calculated columns as attributes and measures. You can also create variables/input parameters and hierarchies and assign variables to the columns.
Analytic Views
Calculated Columns
Analytic Views
Restricted Columns
The restriction for a measure is based on an attribute value. In the example, the measure RC_PRODUCT_CAT_NOTEBOOKS shows only Gross Amount values from the Product Category Notebooks.
Analytic Views
Data Preview
The same options exist here as exist for the attributes view:
Raw data Distinct values Analysis
10
Calculation Views
Two Types
Public
Calculation Views
View Creation Wizard
Assign a unique name must be alphanumeric (A-Z; 0-9; _) Select Graphic or SQLScript
Public
Calculation Views
Selecting Components
Select any tables, attribute views, or analytic views to add to the Calculation view.
Public
Calculation Views
Selecting Components
You can add projection nodes to add extra fields. For example, adding the currency converted amount field
Public
Calculation Views
Output Definition
Choose the fields that should be available for the next level
Public
Calculation Views
Calculated Column
Public
Calculation Views
Define Union
Public
Calculation Views
Scripted Views Overview
Code
Massive data copies create bottleneck
DB Layer
DB Layer
Code
Public
Calculation Views
Define Output Structure, Define Function and SQLScript
Public
10
Calculation Views
Define Which Columns are Attributes or Measures
You need to select the attributes and measures for the output node.
Public
11
Analytic Privileges
Types of Privileges
SQL Privilege
Privilege SQL statement type (for example, SELECT, UPDATE, and CALL ...)
Authorization Concept
Analytic Privilege
Analytic Privileges are used to provide rowlevel authorization Views.
Package privilege
Analytic privilege
When you access the SAP HANA database, ensure that any access to data is backed by corresponding privileges. Different schemas are implemented.
Public
Analytic Privileges
Concept
Analytic privileges control access to SAP HANA data models. You can implement row-level security with analytic privileges. However, you can restrict access in a given data container to selected attribute values, such as:
Field from Attribute view Field from Attribute view used in Analytic view Private dimension of Analytic view Attribute field in Calculation view Combinations of the above Single value, range, IN-list
Public
Analytic Privileges
Creation
Public
Analytic Privileges
Select Information Models
Public
Analytic Privileges
Select Views
Public
Analytic Privileges
Define Concrete Restrictions
Public
Analytic Privileges
Dynamic Analytic Privileges
Dynamic analytic privileges provide a more flexible approach. The actual filter conditions are obtained at runtime from a stored procedure, which can contain complex logic. This enables you to:
Reuse the same analytic privilege for several users Change the filter condition in the underlying tables and views without having to change the analytic privilege itself
Example:
The stored procedure in the analytic privilege queries the users business department from an org table, and checks in another table whether the user has manager status.
User3 restrictions User2 restrictions Dynamic Analytic Privilege User1 restrictions Attribute Views Analytic Views Calculation Views
Public
Analytic Privileges
In a Role
Public
Thank you
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
Public