You are on page 1of 22

<Session ID>

HANA Modeling for Application Developers


Sheik Bilal Peer Mohammed Development Manager SAP HANA modeler

Lalitendu Samantray Associate Architect SAP HANA modeler

Disclaimer
This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP's strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent.

2012 SAP AG. All rights reserved.

Agenda
Overview
Introduction to In-Memory computing Data Models in SAP HANA

Modeling Features
Master data Modeling with Attribute Views OLAP Models with Analytic Views Complex scenarios addressed with Calculation Views Secure the models with Analytic Privileges

HANA Modeler SDK for Developers


Programmatically build models for your applications

First tool on HANA Modeler SDK the Information Composer

2012 SAP AG. All rights reserved.

Overview

SAP In-Memory Computing


Storing Data

Entire database in RAM Combine row-based and columnar storage in one database

Business Processes

Analysis

Acceleration of data intensive processes Make decisions in real-time.

Unprecedented insight into data Bringing together the worlds of ERP (OLTP) and BI (OLAP)

2012 SAP AG. All rights reserved.

SAP HANA Appliance Software


SAP HANA
SAP BusinessObjects tools

Other query tools SQL MDX

In-Memory software + hardware (HP, IBM, Fujitsu, Cisco, Dell) Data Modeling and Data Management Real-time Data Replication SAP BusinessObjects Data Services for ETL capabilities from SAP Business Suite, SAP NetWeaver Business Warehouse (SAP NetWeaver BW), and 3rd Party Systems Capabilities Enabled Analyze information in real-time at unprecedented speeds on large volumes of non-aggregated data

SQL

BICS

SAP HANA platform


SAP HANA studio
SAP HANA database
Calculation and Planning Engine Row & Column Storage

Real-Time Data Replication

SAP Business Objects Data Services

Create flexible analytic models based on real-time and historic business data
Foundation for new category of applications (e.g., planning, simulation) to significantly outperform current applications in category Minimize data duplication
6

SAP Business Suite

SAP NetWeaver Business Warehouse

Other data sources

2012 SAP AG. All rights reserved.

The Technological Change


Classic Database
User interface Layer

In-Memory Database
Presentation

Presentation

Application Layer

Orchestration Calculation

Orchestration

Calculation
Database Layer SAP HANA Data Data
7

2012 SAP AG. All rights reserved.

In-Memory usage scenario: Accelerating existing processes

Accelerators

In-Memory Appliance is used as second database to accelerate existing applications


In-Memory Appliance serves as secondary database for SAP products like ERP or CRM
SAP UI

Data is replicated / written into In-Memory in real time for secondary storage
User interface remains unchanged to ensure non disruptive acceleration
Data Modeling

Application is accelerated by reading the mass data from the In-Memory database

SAP Business Suite

Computing Engine
Read

Examples:

BASF: http://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonialvideo.epx

Traditional DB
Replication

SAP HANA

2012 SAP AG. All rights reserved.

In-Memory usage scenario: Operational Reporting

Operational Reporting

In-Memory Appliance is used side by side to support Operational Reporting


Data is replicated into the SAP In-Memory Appliance to support Operational and Strategic reporting
3rd Party
MDX SQL

BI Clients
BICS

In realtime In greater detail With amazing speed On large data volume

Data Modeling SAP Business Suite

Computing Engine

Report models are delivered as RDS (rapid deployment solutions). BOBJ frontends can be used to display the data

Examples:

Traditional DB
Replication

SAP HANA

Lenovo: http://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonialvideo.epx

2012 SAP AG. All rights reserved.

Modeling Features

HANA Modeler
Modeling made simpler and faster
Eclipse based modeling tool
Enables easy and faster modeling

Binds the HANA components together


Triggers the data replication from UI Author analytic models Deploy models for consumption of BI tools

Capabilities Enabled
Different types of models to benefit from HANA Engine capabilities Design time data preview/Analysis during modeling SQL Scripting for expert users

2012 SAP AG. All rights reserved.

13

How to create models in HANA

2012 SAP AG. All rights reserved.

14

Terminology
SAP HANA studio: Information Modeler Data
Attributes descriptive data (known as Characteristics SAP BW terminology) Calculated Attributes Measures data that can be quantified and calculated (known as key figures in SAP BW) Calculated Measures & Restricted Measures

Views
Attribute Views i.e. dimensions Analytic Views i.e. cubes Calculation Views similar to virtual provider with services concept in BW

Procedures
Functions re-usable functionality

Analytic Privilege security object


Row-level security
2012 SAP AG. All rights reserved. 18

Modeling for HANA 1.0


Using In-Memory Computing Studio Step1: (Attribute View) Seperate Master Data Modeling from Fact data
Build the needed master data objects as Attribute Views

Join text tables to master data tables If required: join master data tables to each other (e.g. join Plant to Material)

Step 2: (Analytical View)


Create Cube-like view by joining attributes view to Fact data

Build a Data Foundation based on transactional table


Selection of Measures (key figures) ... Add attributes (docking points for joining attribute views) Looks a bit like a star schema
19

Join attribute views to data foundation

2012 SAP AG. All rights reserved.

Modeling for HANA 1.0


Using In-Memory Computing Studio Step 3: Calculation View for more complex models
Composite

view of other views (tables, re-use join, olap views) Consists of a Graphical & Script based editor

SQL Script is a HANA-specific functional script language


Think of a SELECT FROM HANA as a data flow JOIN or UNION two or more data flows Invoke other (built in CE or generic SQL) functions

2012 SAP AG. All rights reserved.

20

Modeling for HANA 1.0


Using In-Memory Computing Studio Step 4: Analytic Privileges
Analysis

authorizations for row-level security

Can be based on attributes in analytic views i.e., Specific authorization for specified values of given attribute you have to create privileges for each group of users

Analytic privilege is always a concrete implementation

2012 SAP AG. All rights reserved.

21

HANA Modeler SDK

HANA Modeler SDK - Overview


Enables application developers to create their analytical models programmatically
Developed using JAVA and can be consumed only by JAVA based applications. A programming language agnostic SDK is currently out of scope

Has no eclipse platform dependency; so it can be used by plugin development as well as plain JAVA based applications

Currently it uses org.eclipse.osgi in order to handle language dependent messages

SDK is EMF dependent; This requires SDK to be bundled with EMF plug-in JARs

SDK uses EMF in standalone way

Creating models using HANA SDK

Get Object type specific EMF model and fill it Create the object from XML conforming to our XSD

2012 SAP AG. All rights reserved.

23

HANA Modeler SDK - Details

JDBC

2012 SAP AG. All rights reserved.

24

HANA Modeler SDK - Community

https://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overview

JavaDoc: file://inblr102.blrl.sap.corp/SAPALL/common/modelersdk/index.html
Sample code: https://community.wdf.sap.corp/sbs/docs/DOC-95696 Repository framework: https://community.wdf.sap.corp/sbs/docs/DOC-64631
2012 SAP AG. All rights reserved. 25

SAP HANA Information Composer


SAP HANA Information Composer is a modeling environment which allows non-technical users to upload local data to the SAP HANA database, combine with other enterprise data, and create views for analysis Key Capabilities
Data Acquisition Cleanse, preview, and upload local data Dynamically and easily create and populate physical tables in the SAP HANA database Data Modeling Select and combine most objects in the SAP HANA database Add calculated fields that can go across your local and enterprise data Create Information Views that are stored in the SAP HANA repository along side your enterprise views ready for consumption by analysis tools
2012 SAP AG. All rights reserved.

SAP BusinessObjects Solutions

BI

Other Applications

SAP HANA
SAP HANA Information Composer SAP HANA Studio

SAP HANA Database Calculation Engine Real-Time Data Replication Row & Column In-Memory SAP BusinessObjects Data Integrator

Private Business User Data

SAP Applications

Non SAP Data sources

26

Thank you

You might also like