Week 2 Unit 1: Database Schemas and Database Tables



Similar documents
SAP HANA Live & SAP BW Data Integration A Case Study

SAP HANA SPS 09 - What s New? Development Tools

Building Advanced Data Models with SAP HANA. Werner Steyn Customer Solution Adoption, SAP Labs, LLC.

SAP Operational Process Intelligence Security Guide

SEPA in SAP CRM. Application Innovation, CRM & Service Industries. Customer

Ignite Your Creative Ideas with Fast and Engaging Data Discovery

Consumption of OData Services of Open Items Analytics Dashboard using SAP Predictive Analysis

Provisional Master Data in Integrated Business Planning for SAP Simple Finance An Example-Based How-To Guide

R49 Using SAP Payment Engine for payment transactions. Process Diagram

Understanding Security and Rights in SAP BusinessObjects Business Intelligence 4.1

Data Integration using Integration Gateway. SAP Mobile Platform 3.0 SP02

How-To Guide SAP Cloud for Customer Document Version: How to replicate marketing attributes from SAP CRM to SAP Cloud for Customer

The Arts & Science of Tuning HANA models for Performance. Abani Pattanayak, SAP HANA CoE Nov 12, 2015

SAP BW Columnstore Optimized Flat Cube on Microsoft SQL Server

How-To Guide SAP Cloud for Customer Document Version: How to Configure SAP HCI basic authentication for SAP Cloud for Customer

Modeling Guide for SAP Web IDE for SAP HANA

SAP Business One mobile app for Android Version 1.0.x November 2013

How to Implement a SAP HANA Database Procedure and consume it from an ABAP Program Step-by-Step Tutorial

SAP BusinessObjects Design Studio Document Version: What's New Guide: SAP BusinessObjects Design Studio

SAP Business One mobile app for ios. Version 1.9.x September 2013

PUBLIC Supplement for J.D. Edwards

How-To Guide SAP Cloud for Customer Document Version: How to Perform Initial Load of data from SAP ERP to SAP Cloud for Customer

Upgrade: SAP Mobile Platform Server for Windows SAP Mobile Platform 3.0 SP02

Real-Time Reconciliation of Invoice and Goods Receipts powered by SAP HANA. Stefan Karl, Finance Solutions, SAP ASUG Presentation, May 2013

Mobile app for Android Version 1.0.x, January 2014

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Feature Pack 3

How-To Guide SAP NetWeaver Document Version: How To Guide - Configure SSL in ABAP System

CUSTOMER Presentation of SAP Predictive Analytics

SuccessFactors HCM Suite November 2014 Release Version: December 5, SuccessFactors Learning Programs Administration Guide

SAP BW on HANA & HANA Smart Data Access Setup

SAP HANA SPS 09 - What s New? HANA IM Services: SDI and SDQ

Introduction to SAP HANA SQLScript Rich Heilman SESSION CODE: BT162

SM250 IT Service Management Configuration

SAP Sybase Adaptive Server Enterprise Shrinking a Database for Storage Optimization 2013

Cost-Effective Data Management and a Simplified Data Warehouse

SAP HANA Big Data Intelligence rapiddeployment

SAP HANA Core Data Services (CDS) Reference

SuccessFactors HCM Suite August 2014 Release Document Version: August 22, SuccessFactors Learning Programs Administration Guide

Software and Delivery Requirements

Unlock the Value of Your Microsoft and SAP Software Investments

Getting Started with the License Administration Workbench 2.0 (LAW 2.0)

SAP Audit Management A Preview

Mobile app for ios Version 1.10.x, August 2014

InfiniteInsight 6.5 sp4

Installation Guide: Agentry Device Clients SAP Mobile Platform 2.3

SBOP Analysis 2.1, edition for Microsoft Office Additional PAM Information

Contents. About this Support Package / Patch...5. To install the EPM Add-in for Microsoft Office Support Package 15 / Patch XX...

Enabling Better Business Intelligence and Information Architecture With SAP Sybase PowerDesigner Software

HP Quality Center. Upgrade Preparation Guide

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

Partner Certification to Operate SAP Solutions and SAP Software Environments

Enabling Better Business Intelligence and Information Architecture With SAP PowerDesigner Software

K88 - Additional Business Operations for Loans. Process Diagram

Optimize Revenue for High-Volume Service Providers with Pricing Simulation

Cut Costs and Improve Agility by Simplifying and Automating Common System Administration Tasks

Real-Time Analytics: Integrating Social Media Insights with Traditional Data

Extract Archived Data from SAP ERP

Data Doesn t Communicate Itself Using Visualization to Tell Better Stories

SAP HANA Cloud Integration CUSTOMER

SAP HANA SPS 09 - What s New? Administration & Monitoring

SAP Sales and Operations Planning

The Edge Editions of SAP InfiniteInsight Overview

METADATA-DRIVEN QLIKVIEW APPLICATIONS AND POWERFUL DATA INTEGRATION WITH QLIKVIEW EXPRESSOR

SAP BusinessObjects Analysis, edition for Microsoft Office Document Version: What's New Guide

DMM301 Benefits and Patterns of a Logical Data Warehouse with SAP BW on SAP HANA

Ariba Procure-to-Pay Integration rapiddeployment

SAP Working Capital Analytics Overview. SAP Business Suite Application Innovation January 2014

SAP SE - Legal Requirements and Requirements

Using SAP Crystal Reports with SAP Sybase SQL Anywhere

ITM204 Post-Copy Automation for SAP NetWeaver Business Warehouse System Landscapes. October 2013

SAP NetWeaver Identity Management Identity Services Configuration Guide

SFSF EC to 3 rd party payroll Integration Software and Delivery Requirements

SAP BusinessObjects Business Intelligence Suite Document Version: 4.1 Support Package Patch 3.x Update Guide

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

SAP Project Portfolio Monitoring Rapid- Deployment Solution: Software Requirements

Sample Universe on Microsoft OLAP Cube

ABAP SQL Monitor Implementation Guide and Best Practices

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

Mobile app for Android Version 1.2.x, December 2015

NEW FEATURES ORACLE ESSBASE STUDIO

Visualization Starter Pack from SAP Overview Enabling Self-Service Data Exploration and Visualization

GR5 Access Request. Process Diagram

Price and Revenue Management - Manual Price Changes. SAP Best Practices for Retail

SAP Business Intelligence Adoption V6.41: Software and Delivery Requirements. SAP Business Intelligence Adoption February 2015 English

How to Extend SAP Cloud for Customer - SAP On- Premise Pre-Packaged Integration Content (PI/HCI)

Streamlined Planning and Consolidation for Finance Teams Running SAP Software

SAP Note Optimization of Financial Processes for China: Account Balance, Aging, and GR/IR

How To... Model a Gateway Service Based on Business Entities

SuccessFactors Global Human Capital Management (HCM) Academy and Admin Training Schedule (Q3 Q4 2014)

Create Mobile, Compelling Dashboards with Trusted Business Warehouse Data

SAP HANA Technical Academy , WU Wien

Mobile app for ios Version 1.11.x, December 2015

SAP BusinessObjects Business Intelligence 4.1 One Strategy for Enterprise BI. May 2013

Extend the SAP FIORI app HCM Timesheet Approval

Use Advanced Analytics to Guide Your Business to Financial Success

SAP Business Warehouse Powered by SAP HANA for the Utilities Industry

K in Identify the differences between the universe design tool and the information design tool

Empower Individuals and Teams with Agile Data Visualizations in the Cloud

Transcription:

Week 2 Unit 1: Database Schemas and Database Tables

2 Database Schemas and Database Tables The SAP HANA Repository Object management, versioning, and transport Software component delivery and patching Built-in support for translatable texts Support for server-based development

3 Database Schemas and Database Tables The SAP HANA Repository Manage all artifacts in one repository Presentation (UI) Client Presentation logic Presentation artifacts Control flow (Application) Data persistence: Tables Views Schemas HANA Control flow logic Control flow artifacts Calculation logic Data Data artifacts

4 Database Schemas and Database Tables Data Persistence in SAP HANA Data persistence objects Schemas Tables SQL views Sequences Procedures

5 Database Schemas and Database Tables Database Schemas for SAP HANA Database object Mandatory Contains logical groups: Tables Views Procedures Sequences

6 Database Schemas and Database Tables Design-time Schemas for SAP HANA Design-time object Transportable Plain text file Mandatory file suffix (.hdbschema) Repository activation creates runtime object in the catalog

7 Database Schemas and Database Tables Design-time Schemas: Configuration Syntax (.hdbschema) Mandatory syntax (.hdbschema) Schema name keyword Schema name Authorizations

8 Database Schemas and Database Tables Database Tables for SAP HANA Database object <package.path>::<tablename> A set of data elements Type: Column Row Metadata: Constraints on table Constraints on values in particular columns

9 Database Schemas and Database Tables Design-time Tables for SAP HANA Design-time object Transportable Plain text file Mandatory file suffix (.hdbtable) Repository activation creates runtime object in the catalog

10 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

Week 2 Unit 2: Sequences and SQL Views

2 Sequences and SQL Views Database Sequences for SAP HANA 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

3 Sequences and SQL Views Design-Time Sequences for SAP HANA Design-time object Transportable Plain text file Mandatory file suffix (.hdbsequence) Repository activation creates runtime object in the catalog

4 Sequences and SQL Views Design-Time Sequences: Configuration Syntax (.hdbsequence) Mandatory syntax.hdbsequence Keywords: schema start_with nomaxvalue nominvalue cycles depends_on_table depends_on_view Usage: SQL Insert (NEXTVAL)

5 Sequences and SQL Views SQL Views for SAP HANA Database object <package.path>::<viewname> SQL statements/queries Join data from different tables

6 Sequences and SQL Views Design-Time SQL Views for SAP HANA Design-time object Transportable Plain text file Mandatory file suffix (.hdbview) Repository activation creates runtime object in the catalog

7 Sequences and SQL Views Design-Time SQL Views: Configuration Syntax (.hdbview) Mandatory syntax Schema name SQL query: JSON notation (\ Name\ ) Select from left outer join on order by depends_on_table/view Joined table names: <package.path>::header <package.path>::item

Week 2 Unit 3: Authorizations

2 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

3 Authorizations Building Repository Roles: Create Design-time object Transportable Plain text file Mandatory file suffix (.hdbrole) Repository activation creates runtime object in the catalog

4 Authorizations Building Repository Roles: Define Role name Extends another role Privileges: Schema SELECT, INSERT, UPDATE, DELETE, DROP Application: ADMIN (EXECUTE, SAVE ) System SQL objects Packages Analytic Commit/Activate

5 Authorizations Building Repository Roles: Grant Activated Role to a User Grant role with _SYS_REPO procedure: GRANT_ACTIVATED_ROLE Grant parameters ROLENAME USERNAME SQL procedure call

Week 2 Unit 4: EPM Demo Schema

2 EPM Demo Schema Available EPM Demo Data The EPM demo data includes the following catalog objects: Tables Views Sequences Synonyms

3 EPM Demo Schema EPM Demo Data: Tables A table is a set of data elements that are organized using columns and rows. EPM Tables: Addresses Business partners Employees Products Sales orders

4 EPM Demo Schema EPM Demo Data: Views A view is a virtual table based on the dynamic results returned in response to an SQL statement. EPM Views PurchaseOrderHeaderExt

5 EPM Demo Schema EPM Demo Data: Sequences 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

6 EPM Demo Schema EPM Demo Data: Synonyms A synonym is an alternative name for a database table. EPM Synonyms: TCURC TCURF TCURN TCURR TCURT TCURV TCURW

Week 2 Unit 5: Single File Data Load of CSVs

2 Single File Data Load of CSVs Automatic Table Data Load: Required Files CSV file Holds data, separated by commas, to load into target table Table Import Model Defines target DB table for load Mandatory file suffix (.hdbtim) Table Import Data Connects CSV file to data load model file (.hdbtim ) Mandatory file suffix (.hdbtid)

3 Single File Data Load of CSVs Automatic Table Data Load: Source File 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

4 Single File Data Load of CSVs Automatic Table Data Load: Import Model Table import model file Design-time object Transportable Mandatory file suffix (.hdbtim) Specifies source file type Defines the target table in the database ( item )

5 Single File Data Load of CSVs Automatic Table Data Load: Import Data 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

6 Single File Data Load of CSVs Automatic Table Data Load: SQL Query to View Results SELECT TOP 1000 * FROM Schema name WORKSHOPX_00 Namespace workshop.sessionx.00.data Object delimiter double colon (::) Table name item

Week 2 Unit 6: Attribute Views

2 Attribute Views Overview Attribute views: Model an entity based upon relationships of multiple source tables Can contain: Columns Calculated columns Hierarchies

3 Attribute Views Defining Sources and Relationships Define an attribute view: Sources The main components of an attribute view are tables. Relationships Join fields in tables to get a consistent definition of the overall entity.

4 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

5 Attribute Views Defining Field and Column Properties The properties of a view column affect the overall usage: Key Attribute Drilldown-Enabled Hidden

6 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)

7 Attribute Views Defining Calculated Output Fields 2 To define a new calculated output field, you must specify: The data type The field width The scale The rule definition

8 Attribute Views Data Preview Preview the data displayed by the view

Attribute Views Data Preview with Analysis 2013 SAP AG. All rights reserved. Public 9

Week 2 Unit 7: Analytic Views

Analytic Views Overview Analytic Views: Leverage the computing power of SAP HANA to calculate aggregate data Contain two types of columns Attributes Measures 2013 SAP AG. All rights reserved. 2

Analytic Views Set Parameters Assign a unique name for the technical name of the analytic view Change the view type to Analytic View 2013 SAP AG. All rights reserved. 3

Analytic Views Definition of Data Foundation and Logical Joins Explanation of terms: Data Foundation: Represents the tables used for defining the fact table of the view Logical Join: Represents the relationship between the selected table fields (fact table) and attribute views 2013 SAP AG. All rights reserved. 4

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 2013 SAP AG. All rights reserved. 5

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. 2013 SAP AG. All rights reserved. 6

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. 2013 SAP AG. All rights reserved. 7

Analytic Views Calculated Columns There are many options for defining a calculated measure: Aggregation, such as sum, minimum, maximum, and count Data types, such as decimals, numbers, and so on Expressions or operators String, date math, conversion, and so on 2013 SAP AG. All rights reserved. 8

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. 2013 SAP AG. All rights reserved. 9

Analytic Views Data Preview The same options exist here as exist for the attributes view: Raw data Distinct values Analysis 2013 SAP AG. All rights reserved. 10

Week 2 Unit 8: Calculation Views

2 Calculation Views Two Types View or Table Analytic View Join

3 Calculation Views View Creation Wizard Assign a unique name must be alphanumeric (A-Z; 0-9; _) Select Graphic or SQLScript

4 Calculation Views Selecting Components Select any tables, attributes, or analytic views to add to the Calculation view.

5 Calculation Views Selecting Components You can add projection nodes to add extra fields. For example, adding the currency converted amount field

6 Calculation Views Output Definition Choose the fields that should be available for the next level

Calculation Views Calculated Column 2013 SAP AG. All rights reserved. Public 7

Calculation Views Define Union 2013 SAP AG. All rights reserved. Public 8

9 Calculation Views Scripted Views Overview Traditional: Data to Code New Model: Code to Data Massive data copies create bottleneck Application Layer Code Transfer minimum result set Application Layer DB Layer DB Layer Code

Calculation Views Define Output Structure, Define Function and SQLScript 2013 SAP AG. All rights reserved. Public 10

11 Calculation Views Define Which Columns are Attributes or Measures You need to select the attributes and measures for the output node.

Week 2 Unit 9: Analytic Privileges

2 Analytic Privileges Types of Privileges SQL Privilege System Privilege Privilege SQL statement type (for example, SELECT, UPDATE, and CALL...) SQL privilege Authorization Concept SYSTEM privilege Used for administrative tasks. Sytem Privileges are assigned to users and roles. Analytic Privilege Package privilege Analytic privilege Analytic Privileges are used to provide rowlevel authorization Views. When you access the SAP HANA database, ensure that any access to data is backed by corresponding privileges. Different schemas are implemented.

3 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

4 Analytic Privileges Creation Define Name and Description Choose the package

5 Analytic Privileges Select Information Models Select applicable Information Models Views have two functions in Analytic Privileges Views to which you want to grant access View from which you want to select fields for restrictions You can add further views to the privilege later

6 Analytic Privileges Select Views Restrictions apply to all views in list of Reference Models Choose Add in Reference Models section Pick any appropriate view from any package Do not use the Applicable to All Content Models option Reason: Can have surprising side effects You give away control over model access

7 Analytic Privileges Define Concrete Restrictions You may implement value restrictions for all selected fields If no value restriction implemented no restrictions (wildcard) Otherwise: user will only be allowed to see listed values

8 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 user s business department from an org table, and checks in another table whether the user has manager status. Dynamic Analytic Privilege User3 restrictions User2 restrictions User1 restrictions Attribute Views Analytic Views Calculation Views

9 Analytic Privileges In a Role The last step is to assign the different privileges to an authorization role

Thank you Contact information: open@sap.com

2013 SAP AG. All rights reserved. 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. 2013 SAP AG. All rights reserved. Public