HANA Modeling for Application Developers

download HANA Modeling for Application Developers

of 22

Transcript of HANA Modeling for Application Developers

  • 7/31/2019 HANA Modeling for Application Developers

    1/22

    HANA Modeling for Application DevelopersSheik Bilal Peer MohammedDevelopment Manager SAP HANA modeler

    Lalitendu Samantray Associate Architect SAP HANA modeler

  • 7/31/2019 HANA Modeling for Application Developers

    2/22

    2012 SAP AG. All rights reserved.

    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 agreemewith SAP. SAP has no obligation to pursue any course of business outlined in this presentation or tdevelop or release any functionality mentioned in this presentation. This presentation and SAP'sstrategy and possible future developments are subject to change and may be changed by SAP at antime for any reason without notice. This document is provided without a warranty of any kind, eithexpress or implied, including but not limited to, the implied warranties of merchantability, fitnessparticular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in

    document, except if such damages were caused by SAP intentionally or grossly negligent.

  • 7/31/2019 HANA Modeling for Application Developers

    3/22

    2012 SAP AG. All rights reserved.

    Agenda

    OverviewIntroduction to In-Memory computingData Models in SAP HANA

    Modeling FeaturesMaster 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 DevelopersProgrammatically build models for your applications

    First tool on HANA Modeler SDK the Information Composer

  • 7/31/2019 HANA Modeling for Application Developers

    4/22

    Overview

  • 7/31/2019 HANA Modeling for Application Developers

    5/22 2012 SAP AG. All rights reserved.

    AnalysisUnprecedenteddata

    Bringing togetERP (OLTP) a

    SAP In-Memory Computing

    Business Processes Acceleration of dataintensive processes

    Make decisions in real-time.

    Storing DataEntire database in RAM

    Combine row-based andcolumnar storage in onedatabase

  • 7/31/2019 HANA Modeling for Application Developers

    6/22 2012 SAP AG. All rights reserved.

    SAP HANA

    In-Memory software + hardware(HP, IBM, Fujitsu, Cisco, Dell)

    Data Modeling and Data Management

    Real-time Data Replication

    SAP BusinessObjects Data Services for ETL capaBusiness Suite, SAP NetWeaver Business WarehoNetWeaver BW), and 3rd Party Systems

    Capabilities Enabled

    Analyze information in real-time at unprelarge volumes of non-aggregated data

    Create flexible analytic models based on rbusiness data

    Foundation for new category of applicationssimulation) to significantly outperform current apcategory

    Minimize data duplication

    SAP HANA Appliance Software

    SAP HANA platform

    SQL MDXBICSSQL

    SAP BusinessObjects tools Other query tools

    SAP BusinessSuite

    Other datasources

    SAP NetWeaverBusiness

    Warehouse

    SAP HANA studio

    SAP HANA database

    Calculation andPlanning Engine

    Row & ColumnStorage

    Real-Time DataReplication

    SAP BusinessObjects Data

    Services

  • 7/31/2019 HANA Modeling for Application Developers

    7/22

  • 7/31/2019 HANA Modeling for Application Developers

    8/22 2012 SAP AG. All rights reserved.

    In-Memory usage scenario:Accelerating existing processes

    SAP HANA

    In-Memory Appliance is used as second databaseaccelerate existing applications

    In-Memory Appliance serves as secondary database for SAP prodERP or CRM

    Data is replicated / written into In-Memory in real time for secon

    User interface remains unchanged to ensure non disruptive accel

    Application is accelerated by reading the mass data from the In-Mdatabase

    Examples:

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

    ReadSAPBusinessSuite

    SAP UI

    Traditional DB

    Computing Engine

    Data Modeling

    Replication

    http://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/basf-hana-customer-testimonial-video.epx
  • 7/31/2019 HANA Modeling for Application Developers

    9/22 2012 SAP AG. All rights reserved.

    In-Memory usage scenario:Operational Reporting

    SAP HANA

    BI Clients

    S Q L

    M D X

    B I C S

    3rd Party

    Replication

    In-Memory Appliance is used side by side to suppOperational Reporting

    Data is replicated into the SAP In-Memory Appliance to supportand Strategic reporting

    In realtime

    In greater detail

    With amazing speed

    On large data volume

    Report models are delivered as RDS (rapid deployment solutionfrontends can be used to display the data

    Examples:

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

    SAPBusinessSuite

    Traditional DB

    Computing Engine

    Data Modeling

    http://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epxhttp://www.sap.com/demos/richmedia/media/lenovo-hana-customer-testimonial-video.epx
  • 7/31/2019 HANA Modeling for Application Developers

    10/22

    Modeling Features

  • 7/31/2019 HANA Modeling for Application Developers

    11/22

  • 7/31/2019 HANA Modeling for Application Developers

    12/22

  • 7/31/2019 HANA Modeling for Application Developers

    13/22

  • 7/31/2019 HANA Modeling for Application Developers

    14/22

    2012 SAP AG. All rights reserved.

    Modeling for HANA 1.0Using In-Memory Computing Studio

    Step1: (Attribute View)

    Seperate Master Data Modeling fromFact data

    Build the needed master data objects as Attribute Views Join text tables to master data tablesIf 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)

    Join attribute views to data foundationLooks a bit like a star schema

  • 7/31/2019 HANA Modeling for Application Developers

    15/22

    2012 SAP AG. All rights reserved.

    Modeling for HANA 1.0Using In-Memory Computing Studio

    Step 3: Calculation View for more complex modelsComposite 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 flowsInvoke other (built in CE or generic SQL) functions

  • 7/31/2019 HANA Modeling for Application Developers

    16/22

    2012 SAP AG. All rights reserved.

    Modeling for HANA 1.0Using In-Memory Computing Studio

    Step 4: Analytic Privileges Analysis authorizations for row-level security

    Can be based on attributes in analytic views

    Analytic privilege is always a concrete implementationi.e., Specific authorization for specified values of given attribute

    you have to create privileges for each group of users

  • 7/31/2019 HANA Modeling for Application Developers

    17/22

    HANA Modeler SDK

  • 7/31/2019 HANA Modeling for Application Developers

    18/22

    2012 SAP AG. All rights reserved.

    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 programminglanguage agnostic SDK is currently out of scope

    Has no eclipse platform dependency; so it can be used by plugin development as well as plain JAVAbased 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 JARsSDK uses EMF in standalone way

    Creating models using HANA SDKGet Object type specific EMF model and fill itCreate the object from XML conforming to our XSD

  • 7/31/2019 HANA Modeling for Application Developers

    19/22

  • 7/31/2019 HANA Modeling for Application Developers

    20/22

    2012 SAP AG. All rights reserved.

    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

    https://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overviewhttps://community.wdf.sap.corp/sbs/docs/DOC-95696https://community.wdf.sap.corp/sbs/docs/DOC-64631https://community.wdf.sap.corp/sbs/docs/DOC-64631https://community.wdf.sap.corp/sbs/docs/DOC-64631https://community.wdf.sap.corp/sbs/docs/DOC-64631https://community.wdf.sap.corp/sbs/docs/DOC-95696https://community.wdf.sap.corp/sbs/docs/DOC-95696https://community.wdf.sap.corp/sbs/docs/DOC-95696https://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overviewhttps://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overviewhttps://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overviewhttps://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overviewhttps://community.wdf.sap.corp/sbs/groups/hana-modeler-sdk?view=overview
  • 7/31/2019 HANA Modeling for Application Developers

    21/22

  • 7/31/2019 HANA Modeling for Application Developers

    22/22

    Thank you