SlideShare una empresa de Scribd logo
1 de 87
SAP Hana Technical Workshop
High Performance Analytics
October 6, 2011
SAP HANA Overview
AGENDA


 HANA Overview & Roadmap
 HANA Architecture
 Introduction to SAP HANA Studio
 Loading Data into HANA
 Start hands on workshop
    • Modeling Data – Attribute Views
    • Modeling Data – Analytic Views
    • Viewing Results – SAP Business Objects Clients
    • Advanced Information Models
 Wrap Up – Q & A


                                      LUNCH IS SCHEDULED FOR 11:30


© 2011 SAP AG. All rights reserved.                                  Confidential   4
5
SAP in-memory innovations make
the “New Way” a reality


                                                                    Columnar storage increases the
              In-memory allows
                                                                      amount of data that can be
           sophisticated calculations        In-Memory                 stored in limited memory
                  in real-time
                                                                          (compared to disk)




                                          In-memory processing
                                                                         Row
                      Calculation           gives more time for            +
                        Engine            relatively slow updates      Column
                                              to column data           Database


                                                                            Column databases enable
      MPP optimized software enables          Massively                      easier parallelization of
        linear performance scaling             Parallel                              queries
      making sophisticated calculations      Processing
          like allocations possible                                             Row database fast
                                                                             transactional processing




                                                                                                         6
Enabling IT Agility
How Fast Can IT React on Change? – Empower Business People


How can In-Memory help?
  In-Database Analytics
  No aggregates
  No MOLAP cubes
  External hierarchies
  No re-alignment runs
  Virtual structures only
  Stable performance




                                    traditional change management process


                                                                       8
SAP HANA Proof-Points
Enabling Business Agility




© 2011 SAP AG. All rights reserved.   Confidential   9
SAP HANA Development Roadmap
Product Strategy and Plan
                                                                                                                Vision
                                                                      SAP HANA                               Longer-Term
                                                                        1.0 sp3

   SAP HANA 1.0                      SAP HANA
     Dec 2010                    1.0 sp1, July 2011

                                                      sp2
                      RTC                General
                   (Ramp-up)            Availability

                                                            Next-gen Applications                        One Store for Data and
                   In-Memory Analytics
    Capabilities




                                                            SAP BW fully running on SAP HANA             Analytics
                   SAP HANA real-time operational
                    analytics                               SAP HANA platform for in-memory apps         SAP HANA only persistence layer
                                                                   ■ Industry and LOB Analytic Apps       for SAP Business Suite
                   Complete BI Suite with BI 4 runs
                    on SAP HANA                                    ■ Other purpose built apps            SAP Business Suite optimized for in-
                                                            Further optimization of BI 4 Suite for SAP    memory computing
                   Begin delivery of Baseline
                    Reporting packages                       HANA
                                                            SAP Business Suite begins move to SAP
                                                             HANA
    Benefits




                    Flexible real time analysis of           Real-Time operational planning              Reduced landscape complexity
                      operations at non-aggregated            and simulation capabilities:               Value chain transformation
                      level                                   link to execution
                                                             Primary persistence and
                                                              optimized for SAP BW



                                                                                                                                        10
Just Some of the New HANA-Enabled
Applications for 2011

SAP Cash and Liquidity Management: Allows companies to predict inbound and
outbound cash flows and risk management.

Sales and Operations Planning: This application will enable sales and marketing
departments to collaborate with operations and finance in order to evaluate the
impact of their strategies and make accurate predictions.

Intelligent Payment Broker: This application will calculate financing options on
open invoices and will help determine which discounting terms should be offered on
which invoices.

Smart Meter Analytics: The software for intelligent electricity meters: With this
application utility companies can analyze smart meter readings to forecast demand
and develop new products.

SAP Trade Promotion Management : Improves the planning process and helps
develop accurate strategies for particular customers.


                                                                                11
SAP ERP rapid-deployment solution for operational
reporting with SAP HANA™ software
Solution to provide compelling SAP ERP operational analytics quickly and affordably

                                                    Description
                                                    An essential reporting software with fixed scope, predefined
                                                    services at a predictable price with the flexibility for future
                                                    extension. It provides a set of reports from the business area
                                                    of sales, financial, shipping, procurement, and master data.

                                            SAP
                                                   Current situation
                                        CRM Rapid
                                        Deployment Reactive business model and lack of business transparency
                                          Solution due to sub-optimal execution speed of the current ERP
                                                    operational reporting solution

Business Models and Reports included:               Value proposition
 Financial Reporting                               Provide flexible real time analytics, improve business
 Sales Reporting
                                                    performance, strengthen competitive advantage, provide
 Procurement Reporting
                                                    quick wins for business.
 Shipping Reporting
 Master Data Reporting
                                                    Outcome opportunity
                                                    Sales people’s efficiency is increased, plans are more
                                                    accurate and reporting is more timely.



                                                                                                                 12
SAP HANA Architecture
SAP HANA – Complete Solution
                                                                                Preconfigured Analytical
                                                                                 Appliance
                                        Custom                   SAP
                                      Applications          BusinessObjects     ■ In-Memory software + hardware
                                                                                  (Cisco, Dell, HP, IBM, Hitachi and Fujitsu)
                                        MDX          SQL            Optimized

                                                                                In-Memory Computing Engine
SAP NetWeaver
     BW
                                         In-Memory Computing Engine               Software
                                           In-Memory        Calculation
                                                                                ■ Data Modeling and Data Management
    3rd Party                             Row/Column       and Planning         ■ Real-time Data replication for SAP ECC
                                           Data Store        Engine
                                                                                ■ Data Integration for 3rd Party Systems
      SAP
 Business Suite                             Data Management Service
                                                                                Capabilities Enabled
                                                                                ■ Analyze information in real-time at
                                                                                  unprecedented speeds on large volumes of
                                            Admin and Data Modeling
                                                                                  non-aggregated data
                                                                                ■ Create flexible analytic models based on
                                         Real–Time Replication Services           real-time and historic business data
                                                                                ■ Foundation for new category of
                                              Data Integration Services           applications (e.g., planning, simulation) to
                                                                                  significantly outperform current applications
                                                                                  in category
                                                                                ■ Minimizes data duplication

© 2011 SAP AG. All rights reserved.                                                                             Confidential    14
Architecture Overview
In-Memory Computing Engine and Surroundings
        In-Memory Computing Studio                     MS Excel            Clients (planned, e.g.)             BI4 Explorer
  Administration                      Modeling     Dashboard               SAP BI4 universes
                                                                                                               BI4 Analysis
                                                    Design                    (WebI,...)

                     ERP
                                                                     In-Memory Computing Engine
                                                                               Session Management
                              System
      ERP DB                 Landscape
                           Transformation                                                                          Transaction
                                                             Request Processing / Execution Control
                                                                                                                    Manager
                                                               SQL Parser                   MDX
                                                 SLT              SQL Script                   Calc Engine        Authorization
      SAP Business Objects BI4                                                                                     Manager
                                                                         Relational Engines
      Data                      SBO BI4                                                                             Metadata
     Services                  Information                        Row Store             Column Store
                                                                                                                    Manager
     Designer                  Design Tool
                                 SBO BI4                                   Persistence Layer
       Data                                      Page Management                                             Logger
                                  servers
      Services                  ( program
                                for client)
                                                                                Disk Storage
                                                   Data Volumes                                          Log Volumes
        Other Source Systems
      SAP
   NetWeaver                    3rd Party
      BW

© 2011 SAP AG. All rights reserved.                                                                           Confidential     15
Architecture Overview
In-Memory Computing Engine and Surroundings
        In-Memory Computing Studio                              MS Excel            Clients (planned, e.g.)             BI4 Explorer
  Administration                      Modeling   In-Memory Computing Engine BI4 universes
                                                         Dashboard      SAP
                                                                                                                        BI4 Analysis
                                                                 Design                    (WebI,...)
                                                     Session Management
                     ERP
                                                                              In-Memory Computing Engine
                                                                                        Session Management
                                                                                                       Transaction
                              System Request Processing              / Execution Control
      ERP DB                 Landscape                                                                       Manager
                           Transformation
                                          SQL Parser                              MDX
                                                                      Request Processing / Execution Control     Transaction
                    SLT                      SQL Script                    Calc Engine
                                                                        SQL Parser                  Authorization Manager
                                                                                                     MDX
                                                          SLT              SQL Script
                                                                                                             Manager
                                                                                                        Calc Engine        Authorization
      SAP Business Objects BI4                      Relational Engines                                                      Manager
                                                                         Relational Engines                  Metadata
      Data                      SBO BI4      Row Store             Column Store                                              Metadata
     Services                  Information                        Row Store                                  Manager
                                                                                                        Column Store
                                                                                                                             Manager
     Designer                  Design Tool
                                 SBO BI4                                            Persistence Layer
       Data          Page       Management
                                  servers             Persistence Layer
                                                       Page Management
                                                                                                 Logger               Logger
      Services                  ( program
                                for client)
                                                                                        Disk Storage
                                                            Data Volumes                                          Log Volumes
        Other Source Systems                               Disk Storage
      SAP
                         Data Volumes                                                        Log Volumes
   NetWeaver                    3rd Party
      BW

© 2011 SAP AG. All rights reserved.                                                                                    Confidential     16
Architecture Overview
Loading Data into SAP HANA
        In-Memory Computing Studio                     MS Excel              Clients (planned, e.g.)            BI4 Explorer
  Administration                      Modeling     Dashboard                 SAP BI4 universes
                                                                                                                BI4 Analysis
                                                    Design                      (WebI,...)

                     ERP                                               In-Memory Computing Engine
                                                                                Session Management
                              System
      ERP DB                 Landscape
                           Transformation                         Request Processing / Execution Control            Transaction
                                                                                                                     Manager
                                                                   SQL Parser                  MDX
                                                 SLT               SQL Script                   Calc Engine        Authorization
                                                                                                                    Manager
    Business Objects Enterprise                                           Relational Engines
      Data                         SBO                             Row Store             Column Store                Metadata
     Services                  Information                                                                           Manager
     Designer                  Design Tool
                                 SBO BI4         Page Management            Persistence Layer                 Logger
       Data
      Services                    servers
                                ( program
                                for client)                                      Disk Storage
                                                   Data Volumes                                           Log Volumes
        Other Source Systems
      SAP
   NetWeaver                    3rd Party
      BW
© 2011 SAP AG. All rights reserved.                                                                            Confidential     18
Architecture Overview
Data Modeling
        In-Memory Computing Studio                     MS Excel              Clients (planned, e.g.)            BI4 Explorer
  Administration                      Modeling     Dashboard                 SAP BI4 universes
                                                                                                                BI4 Analysis
                                                    Design                      (WebI,...)

                     ERP                                               In-Memory Computing Engine
                                                                                Session Management
                              System
      ERP DB                 Landscape
                           Transformation                         Request Processing / Execution Control            Transaction
                                                                                                                     Manager
                                                                   SQL Parser                  MDX
                                                 SLT               SQL Script                   Calc Engine        Authorization
                                                                                                                    Manager
    Business Objects Enterprise                                           Relational Engines
      Data                         SBO                             Row Store             Column Store                Metadata
     Services                  Information                                                                           Manager
     Designer                  Design Tool
                                 SBO BI4         Page Management            Persistence Layer                 Logger
       Data
      Services                    servers
                                ( program
                                for client)                                      Disk Storage
                                                   Data Volumes                                           Log Volumes
        Other Source Systems
      SAP
   NetWeaver                    3rd Party
      BW
© 2011 SAP AG. All rights reserved.                                                                            Confidential     19
Architecture Overview
Reporting
        In-Memory Computing Studio                     MS Excel              Clients (planned, e.g.)            BI4 Explorer
  Administration                      Modeling     Dashboard                 SAP BI4 universes
                                                                                                                BI4 Analysis
                                                    Design                      (WebI,...)

                     ERP                                               In-Memory Computing Engine
                                                                                Session Management
                              System
      ERP DB                 Landscape
                           Transformation                         Request Processing / Execution Control            Transaction
                                                                                                                     Manager
                                                                   SQL Parser                  MDX
                                                 SLT               SQL Script                   Calc Engine        Authorization
                                                                                                                    Manager
    Business Objects Enterprise                                           Relational Engines
      Data                         SBO                             Row Store             Column Store                Metadata
     Services                  Information                                                                           Manager
     Designer                  Design Tool
                                 SBO BI4         Page Management            Persistence Layer                 Logger
       Data
      Services                    servers
                                ( program
                                for client)                                      Disk Storage
                                                   Data Volumes                                           Log Volumes
        Other Source Systems
      SAP
   NetWeaver                    3rd Party
      BW
© 2011 SAP AG. All rights reserved.                                                                            Confidential     20
Architecture Overview
Administration
        In-Memory Computing Studio                     MS Excel              Clients (planned, e.g.)            BI4 Explorer
  Administration                      Modeling     Dashboard                 SAP BI4 universes
                                                                                                                BI4 Analysis
                                                    Design                      (WebI,...)

                     ERP                                               In-Memory Computing Engine
                                                                                Session Management
                              System
      ERP DB                 Landscape
                           Transformation                         Request Processing / Execution Control            Transaction
                                                                                                                     Manager
                                                                   SQL Parser                  MDX
                                                 SLT               SQL Script                   Calc Engine        Authorization
                                                                                                                    Manager
    Business Objects Enterprise                                           Relational Engines
      Data                         SBO                             Row Store             Column Store                Metadata
     Services                  Information                                                                           Manager
     Designer                  Design Tool
                                 SBO BI4         Page Management            Persistence Layer                 Logger
       Data
      Services                    servers
                                ( program
                                for client)                                      Disk Storage
                                                   Data Volumes                                           Log Volumes
        Other Source Systems
      SAP
   NetWeaver                    3rd Party
      BW
© 2011 SAP AG. All rights reserved.                                                                            Confidential     21
© 2011 SAP AG. All rights reserved.   Confidential   22
© 2011 SAP AG. All rights reserved.   Confidential   23
© 2011 SAP AG. All rights reserved.   Confidential   24
HANA Modeling Process Flow

Import
Source                                                  Create
System                                                  Information
metadata                                                Models                               Consume
•Physical tables are
                                                        •Database Views are                  •Consume with
 created
                                                         created                              choice of client
 dynamically (1:1
 schema definition                                       •Attribute Views                     tools
 of source system                                        •Analytic Views                     •BICS, SQL, MD
 tables)                                                 •Calculation Views                   X




                                Provision                                     Deploy
                                Data                                          •Column
                                •Physical tables are                           views are
                                 loaded with content.                          created and
                                                                               activated




© 2011 SAP AG. All rights reserved.                                                                          Confidential   25
HANA Information Models


Attribute Views – Think Master data or single
dimension view of data

Analytic Views – Think data cube or Star Schema
model / merged facts and dimension table

Calculation View – Think extended functionality or
complex calculation capabilities.




© 2011 SAP AG. All rights reserved.                  Confidential   26
Introduction to SAP HANA Studio
Framework for Modeling within HANA

                                      Analyze Data in
                                           Hana




                                              yes           Information         no
                                                              in single
                                                                table
                                      Access Base
                                       Tables/ Attr                        Only Joins
Base Tables                              Views               yes              and
                                                                                             no

                                                                           calculated
                                                                          expressions

                                                        Use Attribute        yes            Star          not enough
Attribute views                                            Views                         Schema or
                                                                                         Aggregation


                                                                          Use Analytic       yes          Try             not enough
Analytic Views                                                              Views                      Graphical
                                                                                                       Calc View

                                                                                            Use
                                                                                         Graphical
Calc Views                                                                               Calc Views
                                                                                                                       Use Scripted
                                                                                                                        Calc Views




© 2011 SAP AG. All rights reserved.                                                                                     Confidential   28
Welcome to the SAP HANA Studio


Starting the Modeling Environment
•       Find the Modeler short cut on the desktop
        and double click to open it.




    © 2011 SAP AG. All rights reserved.             Confidential   29
Information Modeler – SAP HANA Studio


Tour of the UI:
•       Based on Eclipse

    •    Consistent with other
         SAP Modeling/Developer
         tools

•       Navigation

•       Perspectives

•       Information Panel




    © 2011 SAP AG. All rights reserved.     Confidential   30
Check System Status


It is possible to check
the status of the
HANA system from
the Modeler

•       Select the IM2
        system

•       Click on the
        Wrench




    © 2011 SAP AG. All rights reserved.   Confidential   31
Check System Status


From the Status
Window Navigate the
tabs
•       Landscape

•       Alerts

•       Performance
        •     Load




    © 2011 SAP AG. All rights reserved.   Confidential   32
Navigating HANA


The Navigator view is the main         Instance
way to access content in the
HANA system.                            Security

Top level nodes are System
Instances.
                                      Schemas/Data
Each instance contains:

   Catalog
     Authorizations/Security
     Schemas/Data Tables

   Content                           Information
     Virtual Information Models        Models




© 2011 SAP AG. All rights reserved.        Confidential   33
Navigating HANA


Schemas provide a way
to organize and work
with the assets in your
database.

Here we can view and
modify the various
objects that are part of a
schema

For example, you can
look at the Definition of
a Table by Right clicking
on the Table name and
selecting Open
Definition.


© 2011 SAP AG. All rights reserved.   Confidential   34
Navigating HANA


While in the Definition
view of the Table, you
can see:
• Names, data types, etc. of
  the Table
• Indexes defined for the
  Table
• Runtime Information
  • Shows Table type (Column
    or Row Store)
  • Main/Delta Size




  © 2011 SAP AG. All rights reserved.   Confidential   35
Navigating HANA


Other actions that
are available on a
Table include:

•Open       Content
   • Displays the Top
     1000 records




 © 2011 SAP AG. All rights reserved.   Confidential   36
Navigating HANA


Other actions that
are available on a
Table include:

•Open       Content
  • Displays the Top
    1000 records
• Open Data
  Preview
  • Displays data in
    table form
  • Allows for basic
    profiling of the
    data.




  © 2011 SAP AG. All rights reserved.   Confidential   37
Navigating HANA


Other actions that are
available on a Table
include:

•Open      Content
  • Displays the Top 1000
    records
• Open Data Preview
  • Displays data in table
    form
  • Allows for basic profiling
    of the data.
• Generate SQL
  •   Insert Statement
  •   Select Statement
  •   Visual SQL
  •   Use Table as Template


  © 2011 SAP AG. All rights reserved.   Confidential   38
Navigating HANA


A SQL Editor is
available for free
hand SQL




  © 2011 SAP AG. All rights reserved.   Confidential   39
Navigating HANA


Information Models are organized
under the Content folder in the
Navigator view.

Create/Modify/View
•       Attribute Views
•       Analytic Views
•       Calculations Views
•       Analytic Privileges
•       Procedures




    © 2011 SAP AG. All rights reserved.   Confidential   40
Navigating HANA

Select Data Preview for the Analytic View ORDER_WAREHOUSE

Interact with the virtual views directly in the HANA Modeler




© 2011 SAP AG. All rights reserved.                            Confidential   41
Loading Data into HANA
Populating HANA with Data


Currently there are three primary ways for transporting data in to HANA:

•           Direct import from within HANA
•           System Landscape Transformation (SLT)
        •      Move data directly from ECC to HANA
        •      Supports near real-time replication from ECC

•           SAP BusinessObjects Data Services
              Can be used on a broad array of data source including SAP ECC and SAP BW.
              Can source directly from SAP BW extractors
              Can support transformation logic in the data flow




    © 2011 SAP AG. All rights reserved.                                            Confidential   43
SAP BusinessObjects DataServices
Extractor Support




    Use extractors in a data flow like a
    regular source




© 2011 SAP AG. All rights reserved.        Confidential   44
LT Replication Concept: Trigger-Based Approach
Configuration of LT Replication Server

A schema defines the configuration of
the data replication for a source system

                                                  Number of jobs


                                                         RFC Connection



                                                         Connection to HANA




                                           Table space (optional)




                                                         Replication mode



 © 2011 SAP AG. All rights reserved.                         Confidential   45
Loading Data into HANA


In the following section we will load data into HANA using SAP
BusinessObjects Data Services. We will perform the following steps:

1.   Prepare the HANA system for the load

2.   Perform the load from SAP Business Objects Data Services

3.   Verify that the data was loaded correctly




© 2011 SAP AG. All rights reserved.                              Confidential   48
The Data Model

For our Exercise we are using the TPC-H database.

The data was generated with the publicly available utility used to generate
data for this benchmark. The default data set was generated with roughly 6
million records in the main fact table.




© 2011 SAP AG. All rights reserved.                                Confidential   49
Preparing to Load Data


•       Navigate to the
        ORDERS table in the
        HANA_TPCH Schema.

•       Right clink on the
        ORDERS table and
        select
        “Generate”/”Select
        Statement”




    © 2011 SAP AG. All rights reserved.   Confidential   50
Preparing to Load Data


Execute the SQL statement generated.




© 2011 SAP AG. All rights reserved.    Confidential   51
Preparing to Load Data


Switch back to the SQL tab and change the SQL statement to the one belwo
and execute the statement. There should br 1.5 million records in the table.




© 2011 SAP AG. All rights reserved.                                Confidential   52
Prepare to Load Data

Delete the data in the table.

Input the SQL below and execute it.




© 2011 SAP AG. All rights reserved.   Confidential   53
Load Data


Start the SAP BusinessObjects Data
Services client ( in a production system this
would be an automated process).




© 2011 SAP AG. All rights reserved.             Confidential   54
Load Data


Log into the SAP BusinessObjectes
Data Services Client:
•       User name: dsuser

•       Password: abc123

•       Select the “Log On” button

•       Select the “Local Repo” Repository

•       Select the “OK” button




    © 2011 SAP AG. All rights reserved.      Confidential   55
Load Data


Data Services Designer.




© 2011 SAP AG. All rights reserved.   Confidential   56
Load Data


Open the “TPCH_Data_Load”
project by double clicking on
the folder in the lower left of
the UI.




© 2011 SAP AG. All rights reserved.   Confidential   57
Load Data


Expand the TPCH_Job_Runner node until it looks like this.




© 2011 SAP AG. All rights reserved.                         Confidential   58
Load Data


Double Click on the Query Icon to see the data mappings from input table to
HANA table.




© 2011 SAP AG. All rights reserved.                              Confidential   59
Load Data


•       Right click on the
        “TPCH_Job_Runner”
        node in the Project Area
        panel and select
        “Execute…”

•       You will be prompted to
        “Save all changes and
        execute”. Select the
        “Yes” button.




    © 2011 SAP AG. All rights reserved.   Confidential   60
Load Data


•       You will see an “Execution
        Properties Dialog.

•       Do not alter the default
        values and select the “OK”
        button.




    © 2011 SAP AG. All rights reserved.   Confidential   61
Load Data


•       Select the “Monitor” button in the top of the main window dialog to watch
        the data load into HANA.

•       1,500,000 million rows should load in just under a minute.




    •    You can now Exit SAP Business Objects Data Services and return the the
         SAP HANA Studio.


    © 2011 SAP AG. All rights reserved.                                Confidential   62
Verify the Data


From the SAP HANA Studio Return to your SQL window and execute the
command below.




© 2011 SAP AG. All rights reserved.                          Confidential   63
BEGIN HANDS-ON EXERCISE!
Modeling Data – Attribute Views
The Data Model

For our Exercise we are using the TPC-H database.

The data was generated with the publicly available utility used to generate
data for this benchmark. The default data set was generated with roughly 6
million records in the main fact table.




© 2011 SAP AG. All rights reserved.                                Confidential   66
Framework for Modeling within HANA

                                      Analyze Data in
                                           Hana




                                              yes           Information         no
                                                              in single
                                                                table
                                      Access Base
                                       Tables/ Attr                        Only Joins
Base Tables                              Views               yes              and
                                                                                             no

                                                                           calculated
                                                                          expressions

                                                        Use Attribute        yes            Star          not enough
Attribute views                                            Views                         Schema or
                                                                                         Aggregation


                                                                          Use Analytic       yes          Try             not enough
Analytic Views                                                              Views                      Graphical
                                                                                                       Calc View

                                                                                            Use
                                                                                         Graphical
Calc Views                                                                               Calc Views
                                                                                                                       Use Scripted
                                                                                                                        Calc Views




© 2011 SAP AG. All rights reserved.                                                                                     Confidential   67
Modeling Data – Analytic Views
Framework for Modeling within HANA

                                      Analyze Data in
                                           Hana




                                              yes           Information         no
                                                              in single
                                                                table
                                      Access Base
                                       Tables/ Attr                        Only Joins
Base Tables                              Views               yes              and
                                                                                             no

                                                                           calculated
                                                                          expressions

                                                        Use Attribute        yes            Star          not enough
Attribute views                                            Views                         Schema or
                                                                                         Aggregation


                                                                          Use Analytic       yes          Try             not enough
Analytic Views                                                              Views                      Graphical
                                                                                                       Calc View

                                                                                            Use
                                                                                         Graphical
Calc Views                                                                               Calc Views
                                                                                                                       Use Scripted
                                                                                                                        Calc Views




© 2011 SAP AG. All rights reserved.                                                                                     Confidential   82
Viewing Results

  •   SAP BusinessObjects Explorer
  •   SAP BusinessObjects Web Intelligence
More Complex Information Models
Framework for Modeling within HANA

                                      Analyze Data in
                                           Hana




                                              yes           Information         no
                                                              in single
                                                                table
                                      Access Base
                                       Tables/ Attr                        Only Joins
Base Tables                              Views               yes              and
                                                                                             no

                                                                           calculated
                                                                          expressions

                                                        Use Attribute        yes            Star          not enough
Attribute views                                            Views                         Schema or
                                                                                         Aggregation


                                                                          Use Analytic       yes          Try             not enough
Analytic Views                                                              Views                      Graphical
                                                                                                       Calc View

                                                                                            Use
                                                                                         Graphical
Calc Views                                                                               Calc Views
                                                                                                                       Use Scripted
                                                                                                                        Calc Views




© 2011 SAP AG. All rights reserved.                                                                                     Confidential   119
Calculation View
Graphical

 No SQL coding required
 Union, Join, Projection nodes provided
 Join Column Tables (Analytical Views)




                                      UNION   JOIN

© 2011 SAP AG. All rights reserved.                  Confidential   120
Calculation View
SQLScript (Script-based)

 SQL or SQLScript required to create Script based Calculation Views
 Write SQL Select statements against existing raw tables or Column Stores
  (preferred)
 Define output structure, activation creates column store based on Script
  Output




© 2011 SAP AG. All rights reserved.                                          Confidential   121
Creating a Calculation View
 Graphical
A new Analytic View
was created
(Customer_Order) to
support this exercise.

This Analytic View
combines the Order
Fact table with the
Customer Attribute
View. Two
Calculated Attributes
were created to
capture Year and
Month.




  © 2011 SAP AG. All rights reserved.   Confidential   122
Creating a Calculation View
  Graphical
 This is the completed
 Calculation View that we
 will be creating.
The goal of this Calc View
is to Union the Current
Year and Prior Year Sales
together along with some
desired Attributes.
The new Customer_Order
Analytic View is the
source for this Calc View.
In the Projection you
specify the Attributes and
Measures you want to
include from the Analytic
Views, as well as two
calculated columns.
Each Projection will also
filter the data for a specific
Year.




   © 2011 SAP AG. All rights reserved.   Confidential   123
Creating a Calculation View
 Graphical
A Union is configured to
define the mapping to
combine the 2 datasets.
Lastly the Output dataset
is defined.




  © 2011 SAP AG. All rights reserved.   Confidential   124
Creating a Calculation View
 Graphical
Calc View Creation
 Right click on the
  Calculation View Folder
  and select New =>
  Calculation View
 Provide a Name and
  Description
 Leave the View Type as
  Graphical as click “Next”




  © 2011 SAP AG. All rights reserved.   Confidential   125
Creating a Calculation View
 Graphical
Calc View Creation
 The next dialog window
  allows you to choose
  tables, but we’re going
  to use an Analytic View
  so just click “Next”
 Expand the Analytic
  Views Folder, Add
  Customer_Order, and
  Click “Finish”




  © 2011 SAP AG. All rights reserved.   Confidential   126
Creating a Calculation View
 Graphical
Calc View Creation
The Initial View is defined with
the “Customer_Orders”
Analytic View and the Output
component.
 Add a “Projection”
  Component
 Link the Customer_Order AV
  with the Projection
  Component
 Select the Projection
  Component and add the
  desired fields to the Output
  (R_NAME, N_NAME,C_MKT
  SEGMENT, C_NAME, O_YE
  AR, O_MONTH, O_TOTALP
  RICE)
 Apply a Filter to the O_YEAR
  so that Year = 1998 (Most
  recent year in this dataset is
  1998)



  © 2011 SAP AG. All rights reserved.   Confidential   127
Creating a Calculation View
 Graphical
Calc View Creation
 Create a Calculated Column
  for Current Year (The
  Expression is just the
  O_TOTALPRICE field
  because the filter returns the
  current year)
 Create a Calculated Column
  for the PriorYear with the
  Expression defined as 0. We
  need this field so that the
  Union will function properly
  (All Queries in a Union need
  the same number of fields.)




  © 2011 SAP AG. All rights reserved.   Confidential   128
Creating a Calculation View
  Graphical
Calc View Creation
The Prior Year dataflow needs to be
added to the Calculation View.
 Drag the CUSTOMER_ORDER
  Analytic View onto the pallet
 Add a “Projection” Component
 Link the Customer_Order AV with
  the Projection Component
 Select the Projection Component
  and add the desired fields to the
  Output
 Apply a Filter to the O_YEAR so
  that Year = 1997
 Create a Calculated Column for
  Current Year (The Expression is 0)
 Create a Calculated Column for the
  PriorYear with the Expression
  defined as O_TOTALPRICE.
 NOTE: The Output fields and the
  Calculated Columns for the Prior
  Year Projection must be in the
  same order as the Current Year
  Projection.




   © 2011 SAP AG. All rights reserved.   Confidential   129
Creating a Calculation View
  Graphical
Calc View Creation
The next step is to “Union” the two
Projections together.
 Add a Union component
 Add links from the two Projections
  to the Union component.
 Select the Union component and
  add the desired fields from the first
  Projection to the Target panel (all
  fields with the exception of
  O_YEAR and O_TOTALPRICE)
 Map the fields from the second
  Projection to the appropriate Target
  field.




   © 2011 SAP AG. All rights reserved.    Confidential   130
Creating a Calculation View
  Graphical
Calc View Creation
The next step is to link the Union
component to the Output Component
and specify the Output fields.
 Add a link from the Union
  component to the Output
  component.
 Add the Attribute fields. Select the
  Output component and add the
  desired fields as Attributes
 Add the Measure fields using the
  same process.
 Save the Calc View
 Activate the Calc View
 Preview the Data




   © 2011 SAP AG. All rights reserved.   Confidential   131
Calculation View
  Script
Calc View
This Calc View
accomplishes the same
thing but is defined using
the Script technique
instead of the Graphical
approach.




   © 2011 SAP AG. All rights reserved.   Confidential   132
SQLScript / R / BFL (Business Function Library)
Three ways to implement in-memory data mining and statistical analysis


SQLScript
 SQLScript is a set of SQL extensions which allow developers to push data-
  intensive logic into the database in order to avoid massive data copies to the
  application server and to leverage sophisticated parallel execution strategies of
  the database.

R
 Through the R integration solution, developers can leverage open source R’s
  3000+ external packages to perform wide-range data mining and statistical
  analysis.

BFL (Business Function Library)
 BFL is the calculation library for the applications built on top of the SAP HANA
  database. The business functions are written in C++ and executed in database
  calculation engine. BFL has a roadmap for data mining and statistical algorithms.




 © 2011 SAP AG. All rights reserved.                                              Confidential   133
SQLScript


 The set of SQL extensions for the SAP HANA database which allow
  developers to push data intensive logic into the database is called
  SQLScript.

 These extensions are keys to avoiding massive data copies to the
  application server and to leverage sophisticated parallel execution strategies
  of the database.

 SQLScript V2 supports stored procedures, which provides enhanced control
  flow capabilities and is positioned to be more suitable for pushing complex
  parts of application logic to the database.

 It can meet some simple requirement for reporting, like join, aggregation, etc.
  When it comes to data mining and statistic analysis, SQLScript is not
  suitable for implementing complex algorithms.




© 2011 SAP AG. All rights reserved.                                                 Confidential   134
Calculation View (Scripting)

 Calculation View
 Define Table Output Structure
 Write SQL Statement.
      Ensure that the selected fields corresponds to previously defined Output table structure
       of the function.
      Example :
       SQL_A = SELECT MATNR, KUNNR, …. FROM
       <COPA_ACTUAL_ANALYTICAL VIEW 1>


       SQL_P = SELECT MATTNR_KUNNR, … FROM
       <COPA_PROJECTED_ANALYTICAL VIEW 2>


       TABLE_OUTPUT_STRUCTURE =
       SELECT * FROM <SQL_A> UNION
       SELECT * FROM <SQL_P>;




 © 2011 SAP AG. All rights reserved.                                              Confidential   135
R Integration with the SAP HANA database – Scenario 1

Usage Scenario 1                                                      Sample Codes in SAP HANA SQLScript
 Utilize Open Source R as the data mining calculation engine.
 Application developer can embedded R scripts in the          CREATE FUNCTION LR( IN input1 SUCC_PREC_TYPE,
  SQLScript.                                                   OUT    output0 R_COEF_TYPE)
                                                               LANGUAGE RLANG AS'''
      NewDB Space                  OpenSource R                     CHANGE_FREQ<-input1$CHANGE_FREQ;
                                   Space                            SUCC_PREC<-input1$SUCC_PREC;
                                                                    coefs<-coef(glm(SUCC_PREC ~
  Calc. Engine
                                                                                   CHANGE_FREQ, family = poisson
       Join     OLAP                                           ));
        OP       OP                    R External
                                        Packages
                                                                    INTERCEPT<-coefs["(Intercept)"];
            ROP                      (Forecasting, Pa               CHANGEFREQ<-coefs["CHANGE_FREQ"];
                                     rallelism, statisti
                                          cs, etc.)
                                                                    result<-
                                                               as.data.frame(cbind(INTERCEPT,CHANGEFREQ))
                                                               ''';
                                                2 Run the R scripts
                                                                      TRUNCATE TABLE r_coef_tab;
           RClient
                                 Send data                            CALL LR(SUCC_PREC_tab,r_coef_tab );
                               1 and R
                                 script
                                                  SAP RHANA           SELECT * FROM r_coef_tab;
                                                    Package



                        3 Get back the
                           result from R
                           to SAP HANA



                                     R        Open Source
               NewDB
                                Integration        R




  © 2011 SAP AG. All rights reserved.                                                                 Confidential   137
Business Function Library

Business Function Library (BFL) is the calculation library for Applications built on top of the SAP HANA
database. It resides in the Calculation Engine and consists of many Business Functions executing at the
database layer and is written in C++.


BFL Wiki                                                                                   Design Goals
                                                                                 Significant performance improvements for
                                                                                 SAP apps

                                                                                 1. Utilizing new hardware i.e. multi
                                                                                    core, built in vector engine
                                                                                 2. Massive parallel main memory
                                                                                    processing
                                                                                 3. Changing the boundaries between
                                                                                    application server and data management
                                                                                    layer

                                                                                 Simplification of application programming
                                                                                 model

                                                                                 1. Usage of extended SQL(SQLScript)
                                                                                 2. Rich functionalities in the Calculation
                                                                                    Engine
                                                                                 3. Fast apps delivery




 © 2011 SAP AG. All rights reserved.                                                                         Confidential     138
Thank You!

Más contenido relacionado

La actualidad más candente

Hana Training Day 1
Hana Training Day 1Hana Training Day 1
Hana Training Day 1mishra4927
 
Introducing the SAP high-performance analytic appliance (SAP HANA)
Introducing the SAP high-performance analytic appliance (SAP HANA)Introducing the SAP high-performance analytic appliance (SAP HANA)
Introducing the SAP high-performance analytic appliance (SAP HANA)IBM India Smarter Computing
 
Introduction to HANA in-memory from SAP
Introduction to HANA in-memory from SAPIntroduction to HANA in-memory from SAP
Introduction to HANA in-memory from SAPugur candan
 
Asug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPAsug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPBrendan Kane
 
SAP HANA Use Cases in 27 Industries
SAP HANA Use Cases in 27 IndustriesSAP HANA Use Cases in 27 Industries
SAP HANA Use Cases in 27 IndustriesSAP Asia Pacific
 
Sap hana online training course ppt
Sap hana online training course pptSap hana online training course ppt
Sap hana online training course pptTrainings Customized
 
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014Denis ONeil
 
SAP HANA Native Application Development
SAP HANA Native Application DevelopmentSAP HANA Native Application Development
SAP HANA Native Application DevelopmentZaranTech LLC
 
Bw h 7.4 sp9 sp8-2014 roadmap
Bw h 7.4 sp9 sp8-2014 roadmapBw h 7.4 sp9 sp8-2014 roadmap
Bw h 7.4 sp9 sp8-2014 roadmapRavi Gs
 
BI Architecture June 2012
BI Architecture June 2012BI Architecture June 2012
BI Architecture June 2012Roland Kramer
 
HANA Demystified by DataMagnum
HANA Demystified by DataMagnumHANA Demystified by DataMagnum
HANA Demystified by DataMagnumPrasad Mavuduri
 
SAP NetWeaver BW Powered by SAP HANA
SAP NetWeaver BW Powered by SAP HANASAP NetWeaver BW Powered by SAP HANA
SAP NetWeaver BW Powered by SAP HANASAP Technology
 
1310 success stories_and_lessons_learned_implementing_sap_hana_solutions
1310 success stories_and_lessons_learned_implementing_sap_hana_solutions1310 success stories_and_lessons_learned_implementing_sap_hana_solutions
1310 success stories_and_lessons_learned_implementing_sap_hana_solutionsBobby Shah
 
Big data sap hana goto market strategy
Big data   sap hana goto market strategyBig data   sap hana goto market strategy
Big data sap hana goto market strategySrikant Mudiganti
 

La actualidad más candente (16)

Hana Training Day 1
Hana Training Day 1Hana Training Day 1
Hana Training Day 1
 
Introducing the SAP high-performance analytic appliance (SAP HANA)
Introducing the SAP high-performance analytic appliance (SAP HANA)Introducing the SAP high-performance analytic appliance (SAP HANA)
Introducing the SAP high-performance analytic appliance (SAP HANA)
 
Introduction to HANA in-memory from SAP
Introduction to HANA in-memory from SAPIntroduction to HANA in-memory from SAP
Introduction to HANA in-memory from SAP
 
Asug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPAsug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAP
 
SAP HANA
SAP HANASAP HANA
SAP HANA
 
SAP HANA Use Cases in 27 Industries
SAP HANA Use Cases in 27 IndustriesSAP HANA Use Cases in 27 Industries
SAP HANA Use Cases in 27 Industries
 
Sap hana online training course ppt
Sap hana online training course pptSap hana online training course ppt
Sap hana online training course ppt
 
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014
Sap HANA Presentation to SAPnsight Dallas Breakfast Huddle in June 2014
 
SAP HANA Native Application Development
SAP HANA Native Application DevelopmentSAP HANA Native Application Development
SAP HANA Native Application Development
 
Bw h 7.4 sp9 sp8-2014 roadmap
Bw h 7.4 sp9 sp8-2014 roadmapBw h 7.4 sp9 sp8-2014 roadmap
Bw h 7.4 sp9 sp8-2014 roadmap
 
SAP_HANA_FAQ
SAP_HANA_FAQSAP_HANA_FAQ
SAP_HANA_FAQ
 
BI Architecture June 2012
BI Architecture June 2012BI Architecture June 2012
BI Architecture June 2012
 
HANA Demystified by DataMagnum
HANA Demystified by DataMagnumHANA Demystified by DataMagnum
HANA Demystified by DataMagnum
 
SAP NetWeaver BW Powered by SAP HANA
SAP NetWeaver BW Powered by SAP HANASAP NetWeaver BW Powered by SAP HANA
SAP NetWeaver BW Powered by SAP HANA
 
1310 success stories_and_lessons_learned_implementing_sap_hana_solutions
1310 success stories_and_lessons_learned_implementing_sap_hana_solutions1310 success stories_and_lessons_learned_implementing_sap_hana_solutions
1310 success stories_and_lessons_learned_implementing_sap_hana_solutions
 
Big data sap hana goto market strategy
Big data   sap hana goto market strategyBig data   sap hana goto market strategy
Big data sap hana goto market strategy
 

Destacado

Hana Memory Scale out using the hecatonchire Project
Hana Memory Scale out using the hecatonchire ProjectHana Memory Scale out using the hecatonchire Project
Hana Memory Scale out using the hecatonchire ProjectBenoit Hudzia
 
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld
 
BW on HANA optimisation answers
BW on HANA optimisation answersBW on HANA optimisation answers
BW on HANA optimisation answersAjay Kumar Uppal
 
IoT and the Role of Platforms
IoT and the Role of PlatformsIoT and the Role of Platforms
IoT and the Role of PlatformsTiE Bangalore
 
20170101 RILHEVA HVAC IOT PLATFORM
20170101 RILHEVA HVAC IOT PLATFORM20170101 RILHEVA HVAC IOT PLATFORM
20170101 RILHEVA HVAC IOT PLATFORMMassimiliano Cravedi
 
Microsoft & Internet of Things
Microsoft & Internet of ThingsMicrosoft & Internet of Things
Microsoft & Internet of ThingsMarlon Luz
 
The Road Ahead of IoT
The Road Ahead of IoTThe Road Ahead of IoT
The Road Ahead of IoTTiE Bangalore
 
Connecting IoT devices to Azure
Connecting IoT devices to AzureConnecting IoT devices to Azure
Connecting IoT devices to AzureGuy Barrette
 
Internet of things (IoT) with Azure
Internet of things (IoT) with AzureInternet of things (IoT) with Azure
Internet of things (IoT) with AzureVinoth Rajagopalan
 
Thinking Strategically About IoT
Thinking Strategically About IoTThinking Strategically About IoT
Thinking Strategically About IoTHolly Cummins
 
Blockchain & the IoT
Blockchain & the IoTBlockchain & the IoT
Blockchain & the IoTMat Keep
 
What’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQLWhat’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQLAmazon Web Services
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWSAmazon Web Services
 
Securing the Internet of Things
Securing the Internet of ThingsSecuring the Internet of Things
Securing the Internet of ThingsChristopher Frenz
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)Amazon Web Services
 
What’s New in Amazon RDS for Open-Source and Commercial Databases
What’s New in Amazon RDS for Open-Source and Commercial DatabasesWhat’s New in Amazon RDS for Open-Source and Commercial Databases
What’s New in Amazon RDS for Open-Source and Commercial DatabasesAmazon Web Services
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceAmazon Web Services
 
How to Cloud - The Ultimate Guide to Cloud Computing
How to Cloud - The Ultimate Guide to Cloud ComputingHow to Cloud - The Ultimate Guide to Cloud Computing
How to Cloud - The Ultimate Guide to Cloud ComputingAwesome Developers UG
 
In-Memory Database Platform for Big Data
In-Memory Database Platform for Big DataIn-Memory Database Platform for Big Data
In-Memory Database Platform for Big DataSAP Technology
 

Destacado (20)

Autodesk Technical Webinar: SAP HANA in-memory database
Autodesk Technical Webinar: SAP HANA in-memory databaseAutodesk Technical Webinar: SAP HANA in-memory database
Autodesk Technical Webinar: SAP HANA in-memory database
 
Hana Memory Scale out using the hecatonchire Project
Hana Memory Scale out using the hecatonchire ProjectHana Memory Scale out using the hecatonchire Project
Hana Memory Scale out using the hecatonchire Project
 
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
 
BW on HANA optimisation answers
BW on HANA optimisation answersBW on HANA optimisation answers
BW on HANA optimisation answers
 
IoT and the Role of Platforms
IoT and the Role of PlatformsIoT and the Role of Platforms
IoT and the Role of Platforms
 
20170101 RILHEVA HVAC IOT PLATFORM
20170101 RILHEVA HVAC IOT PLATFORM20170101 RILHEVA HVAC IOT PLATFORM
20170101 RILHEVA HVAC IOT PLATFORM
 
Microsoft & Internet of Things
Microsoft & Internet of ThingsMicrosoft & Internet of Things
Microsoft & Internet of Things
 
The Road Ahead of IoT
The Road Ahead of IoTThe Road Ahead of IoT
The Road Ahead of IoT
 
Connecting IoT devices to Azure
Connecting IoT devices to AzureConnecting IoT devices to Azure
Connecting IoT devices to Azure
 
Internet of things (IoT) with Azure
Internet of things (IoT) with AzureInternet of things (IoT) with Azure
Internet of things (IoT) with Azure
 
Thinking Strategically About IoT
Thinking Strategically About IoTThinking Strategically About IoT
Thinking Strategically About IoT
 
Blockchain & the IoT
Blockchain & the IoTBlockchain & the IoT
Blockchain & the IoT
 
What’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQLWhat’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQL
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 
Securing the Internet of Things
Securing the Internet of ThingsSecuring the Internet of Things
Securing the Internet of Things
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 
What’s New in Amazon RDS for Open-Source and Commercial Databases
What’s New in Amazon RDS for Open-Source and Commercial DatabasesWhat’s New in Amazon RDS for Open-Source and Commercial Databases
What’s New in Amazon RDS for Open-Source and Commercial Databases
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
How to Cloud - The Ultimate Guide to Cloud Computing
How to Cloud - The Ultimate Guide to Cloud ComputingHow to Cloud - The Ultimate Guide to Cloud Computing
How to Cloud - The Ultimate Guide to Cloud Computing
 
In-Memory Database Platform for Big Data
In-Memory Database Platform for Big DataIn-Memory Database Platform for Big Data
In-Memory Database Platform for Big Data
 

Similar a Hana To Go Presentation Final With Demo Screen Shots Nov8

SAP Strategie und Innovation
SAP Strategie und InnovationSAP Strategie und Innovation
SAP Strategie und InnovationIBM Switzerland
 
Hana To Go Presentation Final With Demo Screen Shots Nov8
Hana To Go Presentation Final With Demo Screen Shots Nov8Hana To Go Presentation Final With Demo Screen Shots Nov8
Hana To Go Presentation Final With Demo Screen Shots Nov8Doug Berry
 
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...SAP Analytics
 
SAP Hana Solution Brief
SAP Hana Solution BriefSAP Hana Solution Brief
SAP Hana Solution Briefkavyakaya
 
Overview and what is sap hana 1.0 online training
Overview and what is sap hana 1.0 online training Overview and what is sap hana 1.0 online training
Overview and what is sap hana 1.0 online training NEWYORKSYS-IT SOLUTIONS
 
Why is Smooth Transition to SAP Hana Migration Important?
Why is Smooth Transition to SAP Hana Migration Important?Why is Smooth Transition to SAP Hana Migration Important?
Why is Smooth Transition to SAP Hana Migration Important?ingenxtec
 
HANA overview
HANA overviewHANA overview
HANA overviewjenkin
 
SAPPHIRE NOW from Orlando SAP HANA
SAPPHIRE NOW from Orlando SAP HANASAPPHIRE NOW from Orlando SAP HANA
SAPPHIRE NOW from Orlando SAP HANASAP Technology
 
Disaster Recovery for SAP HANA with SUSE Linux
Disaster Recovery for SAP HANA with SUSE LinuxDisaster Recovery for SAP HANA with SUSE Linux
Disaster Recovery for SAP HANA with SUSE LinuxDirk Oppenkowski
 
ASUG influence council 2012 - SAP BusinessObjects Web Intelligence
ASUG influence council 2012 - SAP BusinessObjects Web IntelligenceASUG influence council 2012 - SAP BusinessObjects Web Intelligence
ASUG influence council 2012 - SAP BusinessObjects Web Intelligencekarstenruf
 
SAP BusinessObjects Web Intelligence Influence Council 2012
SAP BusinessObjects Web Intelligence Influence Council 2012SAP BusinessObjects Web Intelligence Influence Council 2012
SAP BusinessObjects Web Intelligence Influence Council 2012solmanclients
 
SAP HANA – A Technical Snapshot
SAP HANA – A Technical SnapshotSAP HANA – A Technical Snapshot
SAP HANA – A Technical SnapshotDebajit Banerjee
 
4 Enhacement Packages Mejoras Funcionales Erp 6.0
4   Enhacement Packages   Mejoras Funcionales Erp 6.04   Enhacement Packages   Mejoras Funcionales Erp 6.0
4 Enhacement Packages Mejoras Funcionales Erp 6.0SAPbyExpert
 

Similar a Hana To Go Presentation Final With Demo Screen Shots Nov8 (20)

SAP Strategie und Innovation
SAP Strategie und InnovationSAP Strategie und Innovation
SAP Strategie und Innovation
 
Hana To Go Presentation Final With Demo Screen Shots Nov8
Hana To Go Presentation Final With Demo Screen Shots Nov8Hana To Go Presentation Final With Demo Screen Shots Nov8
Hana To Go Presentation Final With Demo Screen Shots Nov8
 
101 ab 1600-1630
101 ab 1600-1630101 ab 1600-1630
101 ab 1600-1630
 
101 ab 1600-1630
101 ab 1600-1630101 ab 1600-1630
101 ab 1600-1630
 
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
 
SAP Hana Solution Brief
SAP Hana Solution BriefSAP Hana Solution Brief
SAP Hana Solution Brief
 
Overview and what is sap hana 1.0 online training
Overview and what is sap hana 1.0 online training Overview and what is sap hana 1.0 online training
Overview and what is sap hana 1.0 online training
 
Why is Smooth Transition to SAP Hana Migration Important?
Why is Smooth Transition to SAP Hana Migration Important?Why is Smooth Transition to SAP Hana Migration Important?
Why is Smooth Transition to SAP Hana Migration Important?
 
HANA overview
HANA overviewHANA overview
HANA overview
 
SAPPHIRE NOW from Orlando SAP HANA
SAPPHIRE NOW from Orlando SAP HANASAPPHIRE NOW from Orlando SAP HANA
SAPPHIRE NOW from Orlando SAP HANA
 
Cd100 latest updates
Cd100 latest updatesCd100 latest updates
Cd100 latest updates
 
SAP HANA
SAP HANASAP HANA
SAP HANA
 
Disaster Recovery for SAP HANA with SUSE Linux
Disaster Recovery for SAP HANA with SUSE LinuxDisaster Recovery for SAP HANA with SUSE Linux
Disaster Recovery for SAP HANA with SUSE Linux
 
Sap hana
Sap hanaSap hana
Sap hana
 
ASUG influence council 2012 - SAP BusinessObjects Web Intelligence
ASUG influence council 2012 - SAP BusinessObjects Web IntelligenceASUG influence council 2012 - SAP BusinessObjects Web Intelligence
ASUG influence council 2012 - SAP BusinessObjects Web Intelligence
 
SAP BusinessObjects Web Intelligence Influence Council 2012
SAP BusinessObjects Web Intelligence Influence Council 2012SAP BusinessObjects Web Intelligence Influence Council 2012
SAP BusinessObjects Web Intelligence Influence Council 2012
 
SAP HANA One
SAP HANA OneSAP HANA One
SAP HANA One
 
SAP HANA – A Technical Snapshot
SAP HANA – A Technical SnapshotSAP HANA – A Technical Snapshot
SAP HANA – A Technical Snapshot
 
SAP HANA - Understanding the Basics
SAP HANA - Understanding the Basics SAP HANA - Understanding the Basics
SAP HANA - Understanding the Basics
 
4 Enhacement Packages Mejoras Funcionales Erp 6.0
4   Enhacement Packages   Mejoras Funcionales Erp 6.04   Enhacement Packages   Mejoras Funcionales Erp 6.0
4 Enhacement Packages Mejoras Funcionales Erp 6.0
 

Hana To Go Presentation Final With Demo Screen Shots Nov8

  • 1. SAP Hana Technical Workshop High Performance Analytics October 6, 2011
  • 3.
  • 4. AGENDA  HANA Overview & Roadmap  HANA Architecture  Introduction to SAP HANA Studio  Loading Data into HANA  Start hands on workshop • Modeling Data – Attribute Views • Modeling Data – Analytic Views • Viewing Results – SAP Business Objects Clients • Advanced Information Models  Wrap Up – Q & A LUNCH IS SCHEDULED FOR 11:30 © 2011 SAP AG. All rights reserved. Confidential 4
  • 5. 5
  • 6. SAP in-memory innovations make the “New Way” a reality Columnar storage increases the In-memory allows amount of data that can be sophisticated calculations In-Memory stored in limited memory in real-time (compared to disk) In-memory processing Row Calculation gives more time for + Engine relatively slow updates Column to column data Database Column databases enable MPP optimized software enables Massively easier parallelization of linear performance scaling Parallel queries making sophisticated calculations Processing like allocations possible Row database fast transactional processing 6
  • 7. Enabling IT Agility How Fast Can IT React on Change? – Empower Business People How can In-Memory help? In-Database Analytics No aggregates No MOLAP cubes External hierarchies No re-alignment runs Virtual structures only Stable performance traditional change management process 8
  • 8. SAP HANA Proof-Points Enabling Business Agility © 2011 SAP AG. All rights reserved. Confidential 9
  • 9. SAP HANA Development Roadmap Product Strategy and Plan Vision SAP HANA Longer-Term 1.0 sp3 SAP HANA 1.0 SAP HANA Dec 2010 1.0 sp1, July 2011 sp2 RTC General (Ramp-up) Availability Next-gen Applications One Store for Data and In-Memory Analytics Capabilities SAP BW fully running on SAP HANA Analytics SAP HANA real-time operational analytics SAP HANA platform for in-memory apps SAP HANA only persistence layer ■ Industry and LOB Analytic Apps for SAP Business Suite Complete BI Suite with BI 4 runs on SAP HANA ■ Other purpose built apps SAP Business Suite optimized for in- Further optimization of BI 4 Suite for SAP memory computing Begin delivery of Baseline Reporting packages HANA SAP Business Suite begins move to SAP HANA Benefits Flexible real time analysis of Real-Time operational planning Reduced landscape complexity operations at non-aggregated and simulation capabilities: Value chain transformation level link to execution Primary persistence and optimized for SAP BW 10
  • 10. Just Some of the New HANA-Enabled Applications for 2011 SAP Cash and Liquidity Management: Allows companies to predict inbound and outbound cash flows and risk management. Sales and Operations Planning: This application will enable sales and marketing departments to collaborate with operations and finance in order to evaluate the impact of their strategies and make accurate predictions. Intelligent Payment Broker: This application will calculate financing options on open invoices and will help determine which discounting terms should be offered on which invoices. Smart Meter Analytics: The software for intelligent electricity meters: With this application utility companies can analyze smart meter readings to forecast demand and develop new products. SAP Trade Promotion Management : Improves the planning process and helps develop accurate strategies for particular customers. 11
  • 11. SAP ERP rapid-deployment solution for operational reporting with SAP HANA™ software Solution to provide compelling SAP ERP operational analytics quickly and affordably Description An essential reporting software with fixed scope, predefined services at a predictable price with the flexibility for future extension. It provides a set of reports from the business area of sales, financial, shipping, procurement, and master data. SAP Current situation CRM Rapid Deployment Reactive business model and lack of business transparency Solution due to sub-optimal execution speed of the current ERP operational reporting solution Business Models and Reports included: Value proposition  Financial Reporting Provide flexible real time analytics, improve business  Sales Reporting performance, strengthen competitive advantage, provide  Procurement Reporting quick wins for business.  Shipping Reporting  Master Data Reporting Outcome opportunity Sales people’s efficiency is increased, plans are more accurate and reporting is more timely. 12
  • 13. SAP HANA – Complete Solution Preconfigured Analytical Appliance Custom SAP Applications BusinessObjects ■ In-Memory software + hardware (Cisco, Dell, HP, IBM, Hitachi and Fujitsu) MDX SQL Optimized In-Memory Computing Engine SAP NetWeaver BW In-Memory Computing Engine Software In-Memory Calculation ■ Data Modeling and Data Management 3rd Party Row/Column and Planning ■ Real-time Data replication for SAP ECC Data Store Engine ■ Data Integration for 3rd Party Systems SAP Business Suite Data Management Service Capabilities Enabled ■ Analyze information in real-time at unprecedented speeds on large volumes of Admin and Data Modeling non-aggregated data ■ Create flexible analytic models based on Real–Time Replication Services real-time and historic business data ■ Foundation for new category of Data Integration Services applications (e.g., planning, simulation) to significantly outperform current applications in category ■ Minimizes data duplication © 2011 SAP AG. All rights reserved. Confidential 14
  • 14. Architecture Overview In-Memory Computing Engine and Surroundings In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling Dashboard SAP BI4 universes BI4 Analysis Design (WebI,...) ERP In-Memory Computing Engine Session Management System ERP DB Landscape Transformation Transaction Request Processing / Execution Control Manager SQL Parser MDX SLT SQL Script Calc Engine Authorization SAP Business Objects BI4 Manager Relational Engines Data SBO BI4 Metadata Services Information Row Store Column Store Manager Designer Design Tool SBO BI4 Persistence Layer Data Page Management Logger servers Services ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems SAP NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 15
  • 15. Architecture Overview In-Memory Computing Engine and Surroundings In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling In-Memory Computing Engine BI4 universes Dashboard SAP BI4 Analysis Design (WebI,...) Session Management ERP In-Memory Computing Engine Session Management Transaction System Request Processing / Execution Control ERP DB Landscape Manager Transformation SQL Parser MDX Request Processing / Execution Control Transaction SLT SQL Script Calc Engine SQL Parser Authorization Manager MDX SLT SQL Script Manager Calc Engine Authorization SAP Business Objects BI4 Relational Engines Manager Relational Engines Metadata Data SBO BI4 Row Store Column Store Metadata Services Information Row Store Manager Column Store Manager Designer Design Tool SBO BI4 Persistence Layer Data Page Management servers Persistence Layer Page Management Logger Logger Services ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems Disk Storage SAP Data Volumes Log Volumes NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 16
  • 16. Architecture Overview Loading Data into SAP HANA In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling Dashboard SAP BI4 universes BI4 Analysis Design (WebI,...) ERP In-Memory Computing Engine Session Management System ERP DB Landscape Transformation Request Processing / Execution Control Transaction Manager SQL Parser MDX SLT SQL Script Calc Engine Authorization Manager Business Objects Enterprise Relational Engines Data SBO Row Store Column Store Metadata Services Information Manager Designer Design Tool SBO BI4 Page Management Persistence Layer Logger Data Services servers ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems SAP NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 18
  • 17. Architecture Overview Data Modeling In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling Dashboard SAP BI4 universes BI4 Analysis Design (WebI,...) ERP In-Memory Computing Engine Session Management System ERP DB Landscape Transformation Request Processing / Execution Control Transaction Manager SQL Parser MDX SLT SQL Script Calc Engine Authorization Manager Business Objects Enterprise Relational Engines Data SBO Row Store Column Store Metadata Services Information Manager Designer Design Tool SBO BI4 Page Management Persistence Layer Logger Data Services servers ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems SAP NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 19
  • 18. Architecture Overview Reporting In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling Dashboard SAP BI4 universes BI4 Analysis Design (WebI,...) ERP In-Memory Computing Engine Session Management System ERP DB Landscape Transformation Request Processing / Execution Control Transaction Manager SQL Parser MDX SLT SQL Script Calc Engine Authorization Manager Business Objects Enterprise Relational Engines Data SBO Row Store Column Store Metadata Services Information Manager Designer Design Tool SBO BI4 Page Management Persistence Layer Logger Data Services servers ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems SAP NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 20
  • 19. Architecture Overview Administration In-Memory Computing Studio MS Excel Clients (planned, e.g.) BI4 Explorer Administration Modeling Dashboard SAP BI4 universes BI4 Analysis Design (WebI,...) ERP In-Memory Computing Engine Session Management System ERP DB Landscape Transformation Request Processing / Execution Control Transaction Manager SQL Parser MDX SLT SQL Script Calc Engine Authorization Manager Business Objects Enterprise Relational Engines Data SBO Row Store Column Store Metadata Services Information Manager Designer Design Tool SBO BI4 Page Management Persistence Layer Logger Data Services servers ( program for client) Disk Storage Data Volumes Log Volumes Other Source Systems SAP NetWeaver 3rd Party BW © 2011 SAP AG. All rights reserved. Confidential 21
  • 20. © 2011 SAP AG. All rights reserved. Confidential 22
  • 21. © 2011 SAP AG. All rights reserved. Confidential 23
  • 22. © 2011 SAP AG. All rights reserved. Confidential 24
  • 23. HANA Modeling Process Flow Import Source Create System Information metadata Models Consume •Physical tables are •Database Views are •Consume with created created choice of client dynamically (1:1 schema definition •Attribute Views tools of source system •Analytic Views •BICS, SQL, MD tables) •Calculation Views X Provision Deploy Data •Column •Physical tables are views are loaded with content. created and activated © 2011 SAP AG. All rights reserved. Confidential 25
  • 24. HANA Information Models Attribute Views – Think Master data or single dimension view of data Analytic Views – Think data cube or Star Schema model / merged facts and dimension table Calculation View – Think extended functionality or complex calculation capabilities. © 2011 SAP AG. All rights reserved. Confidential 26
  • 25. Introduction to SAP HANA Studio
  • 26. Framework for Modeling within HANA Analyze Data in Hana yes Information no in single table Access Base Tables/ Attr Only Joins Base Tables Views yes and no calculated expressions Use Attribute yes Star not enough Attribute views Views Schema or Aggregation Use Analytic yes Try not enough Analytic Views Views Graphical Calc View Use Graphical Calc Views Calc Views Use Scripted Calc Views © 2011 SAP AG. All rights reserved. Confidential 28
  • 27. Welcome to the SAP HANA Studio Starting the Modeling Environment • Find the Modeler short cut on the desktop and double click to open it. © 2011 SAP AG. All rights reserved. Confidential 29
  • 28. Information Modeler – SAP HANA Studio Tour of the UI: • Based on Eclipse • Consistent with other SAP Modeling/Developer tools • Navigation • Perspectives • Information Panel © 2011 SAP AG. All rights reserved. Confidential 30
  • 29. Check System Status It is possible to check the status of the HANA system from the Modeler • Select the IM2 system • Click on the Wrench © 2011 SAP AG. All rights reserved. Confidential 31
  • 30. Check System Status From the Status Window Navigate the tabs • Landscape • Alerts • Performance • Load © 2011 SAP AG. All rights reserved. Confidential 32
  • 31. Navigating HANA The Navigator view is the main Instance way to access content in the HANA system. Security Top level nodes are System Instances. Schemas/Data Each instance contains:  Catalog  Authorizations/Security  Schemas/Data Tables  Content Information  Virtual Information Models Models © 2011 SAP AG. All rights reserved. Confidential 33
  • 32. Navigating HANA Schemas provide a way to organize and work with the assets in your database. Here we can view and modify the various objects that are part of a schema For example, you can look at the Definition of a Table by Right clicking on the Table name and selecting Open Definition. © 2011 SAP AG. All rights reserved. Confidential 34
  • 33. Navigating HANA While in the Definition view of the Table, you can see: • Names, data types, etc. of the Table • Indexes defined for the Table • Runtime Information • Shows Table type (Column or Row Store) • Main/Delta Size © 2011 SAP AG. All rights reserved. Confidential 35
  • 34. Navigating HANA Other actions that are available on a Table include: •Open Content • Displays the Top 1000 records © 2011 SAP AG. All rights reserved. Confidential 36
  • 35. Navigating HANA Other actions that are available on a Table include: •Open Content • Displays the Top 1000 records • Open Data Preview • Displays data in table form • Allows for basic profiling of the data. © 2011 SAP AG. All rights reserved. Confidential 37
  • 36. Navigating HANA Other actions that are available on a Table include: •Open Content • Displays the Top 1000 records • Open Data Preview • Displays data in table form • Allows for basic profiling of the data. • Generate SQL • Insert Statement • Select Statement • Visual SQL • Use Table as Template © 2011 SAP AG. All rights reserved. Confidential 38
  • 37. Navigating HANA A SQL Editor is available for free hand SQL © 2011 SAP AG. All rights reserved. Confidential 39
  • 38. Navigating HANA Information Models are organized under the Content folder in the Navigator view. Create/Modify/View • Attribute Views • Analytic Views • Calculations Views • Analytic Privileges • Procedures © 2011 SAP AG. All rights reserved. Confidential 40
  • 39. Navigating HANA Select Data Preview for the Analytic View ORDER_WAREHOUSE Interact with the virtual views directly in the HANA Modeler © 2011 SAP AG. All rights reserved. Confidential 41
  • 41. Populating HANA with Data Currently there are three primary ways for transporting data in to HANA: • Direct import from within HANA • System Landscape Transformation (SLT) • Move data directly from ECC to HANA • Supports near real-time replication from ECC • SAP BusinessObjects Data Services  Can be used on a broad array of data source including SAP ECC and SAP BW.  Can source directly from SAP BW extractors  Can support transformation logic in the data flow © 2011 SAP AG. All rights reserved. Confidential 43
  • 42. SAP BusinessObjects DataServices Extractor Support Use extractors in a data flow like a regular source © 2011 SAP AG. All rights reserved. Confidential 44
  • 43. LT Replication Concept: Trigger-Based Approach Configuration of LT Replication Server A schema defines the configuration of the data replication for a source system Number of jobs RFC Connection Connection to HANA Table space (optional) Replication mode © 2011 SAP AG. All rights reserved. Confidential 45
  • 44. Loading Data into HANA In the following section we will load data into HANA using SAP BusinessObjects Data Services. We will perform the following steps: 1. Prepare the HANA system for the load 2. Perform the load from SAP Business Objects Data Services 3. Verify that the data was loaded correctly © 2011 SAP AG. All rights reserved. Confidential 48
  • 45. The Data Model For our Exercise we are using the TPC-H database. The data was generated with the publicly available utility used to generate data for this benchmark. The default data set was generated with roughly 6 million records in the main fact table. © 2011 SAP AG. All rights reserved. Confidential 49
  • 46. Preparing to Load Data • Navigate to the ORDERS table in the HANA_TPCH Schema. • Right clink on the ORDERS table and select “Generate”/”Select Statement” © 2011 SAP AG. All rights reserved. Confidential 50
  • 47. Preparing to Load Data Execute the SQL statement generated. © 2011 SAP AG. All rights reserved. Confidential 51
  • 48. Preparing to Load Data Switch back to the SQL tab and change the SQL statement to the one belwo and execute the statement. There should br 1.5 million records in the table. © 2011 SAP AG. All rights reserved. Confidential 52
  • 49. Prepare to Load Data Delete the data in the table. Input the SQL below and execute it. © 2011 SAP AG. All rights reserved. Confidential 53
  • 50. Load Data Start the SAP BusinessObjects Data Services client ( in a production system this would be an automated process). © 2011 SAP AG. All rights reserved. Confidential 54
  • 51. Load Data Log into the SAP BusinessObjectes Data Services Client: • User name: dsuser • Password: abc123 • Select the “Log On” button • Select the “Local Repo” Repository • Select the “OK” button © 2011 SAP AG. All rights reserved. Confidential 55
  • 52. Load Data Data Services Designer. © 2011 SAP AG. All rights reserved. Confidential 56
  • 53. Load Data Open the “TPCH_Data_Load” project by double clicking on the folder in the lower left of the UI. © 2011 SAP AG. All rights reserved. Confidential 57
  • 54. Load Data Expand the TPCH_Job_Runner node until it looks like this. © 2011 SAP AG. All rights reserved. Confidential 58
  • 55. Load Data Double Click on the Query Icon to see the data mappings from input table to HANA table. © 2011 SAP AG. All rights reserved. Confidential 59
  • 56. Load Data • Right click on the “TPCH_Job_Runner” node in the Project Area panel and select “Execute…” • You will be prompted to “Save all changes and execute”. Select the “Yes” button. © 2011 SAP AG. All rights reserved. Confidential 60
  • 57. Load Data • You will see an “Execution Properties Dialog. • Do not alter the default values and select the “OK” button. © 2011 SAP AG. All rights reserved. Confidential 61
  • 58. Load Data • Select the “Monitor” button in the top of the main window dialog to watch the data load into HANA. • 1,500,000 million rows should load in just under a minute. • You can now Exit SAP Business Objects Data Services and return the the SAP HANA Studio. © 2011 SAP AG. All rights reserved. Confidential 62
  • 59. Verify the Data From the SAP HANA Studio Return to your SQL window and execute the command below. © 2011 SAP AG. All rights reserved. Confidential 63
  • 61. Modeling Data – Attribute Views
  • 62. The Data Model For our Exercise we are using the TPC-H database. The data was generated with the publicly available utility used to generate data for this benchmark. The default data set was generated with roughly 6 million records in the main fact table. © 2011 SAP AG. All rights reserved. Confidential 66
  • 63. Framework for Modeling within HANA Analyze Data in Hana yes Information no in single table Access Base Tables/ Attr Only Joins Base Tables Views yes and no calculated expressions Use Attribute yes Star not enough Attribute views Views Schema or Aggregation Use Analytic yes Try not enough Analytic Views Views Graphical Calc View Use Graphical Calc Views Calc Views Use Scripted Calc Views © 2011 SAP AG. All rights reserved. Confidential 67
  • 64. Modeling Data – Analytic Views
  • 65. Framework for Modeling within HANA Analyze Data in Hana yes Information no in single table Access Base Tables/ Attr Only Joins Base Tables Views yes and no calculated expressions Use Attribute yes Star not enough Attribute views Views Schema or Aggregation Use Analytic yes Try not enough Analytic Views Views Graphical Calc View Use Graphical Calc Views Calc Views Use Scripted Calc Views © 2011 SAP AG. All rights reserved. Confidential 82
  • 66. Viewing Results • SAP BusinessObjects Explorer • SAP BusinessObjects Web Intelligence
  • 68. Framework for Modeling within HANA Analyze Data in Hana yes Information no in single table Access Base Tables/ Attr Only Joins Base Tables Views yes and no calculated expressions Use Attribute yes Star not enough Attribute views Views Schema or Aggregation Use Analytic yes Try not enough Analytic Views Views Graphical Calc View Use Graphical Calc Views Calc Views Use Scripted Calc Views © 2011 SAP AG. All rights reserved. Confidential 119
  • 69. Calculation View Graphical  No SQL coding required  Union, Join, Projection nodes provided  Join Column Tables (Analytical Views) UNION JOIN © 2011 SAP AG. All rights reserved. Confidential 120
  • 70. Calculation View SQLScript (Script-based)  SQL or SQLScript required to create Script based Calculation Views  Write SQL Select statements against existing raw tables or Column Stores (preferred)  Define output structure, activation creates column store based on Script Output © 2011 SAP AG. All rights reserved. Confidential 121
  • 71. Creating a Calculation View Graphical A new Analytic View was created (Customer_Order) to support this exercise. This Analytic View combines the Order Fact table with the Customer Attribute View. Two Calculated Attributes were created to capture Year and Month. © 2011 SAP AG. All rights reserved. Confidential 122
  • 72. Creating a Calculation View Graphical This is the completed Calculation View that we will be creating. The goal of this Calc View is to Union the Current Year and Prior Year Sales together along with some desired Attributes. The new Customer_Order Analytic View is the source for this Calc View. In the Projection you specify the Attributes and Measures you want to include from the Analytic Views, as well as two calculated columns. Each Projection will also filter the data for a specific Year. © 2011 SAP AG. All rights reserved. Confidential 123
  • 73. Creating a Calculation View Graphical A Union is configured to define the mapping to combine the 2 datasets. Lastly the Output dataset is defined. © 2011 SAP AG. All rights reserved. Confidential 124
  • 74. Creating a Calculation View Graphical Calc View Creation  Right click on the Calculation View Folder and select New => Calculation View  Provide a Name and Description  Leave the View Type as Graphical as click “Next” © 2011 SAP AG. All rights reserved. Confidential 125
  • 75. Creating a Calculation View Graphical Calc View Creation  The next dialog window allows you to choose tables, but we’re going to use an Analytic View so just click “Next”  Expand the Analytic Views Folder, Add Customer_Order, and Click “Finish” © 2011 SAP AG. All rights reserved. Confidential 126
  • 76. Creating a Calculation View Graphical Calc View Creation The Initial View is defined with the “Customer_Orders” Analytic View and the Output component.  Add a “Projection” Component  Link the Customer_Order AV with the Projection Component  Select the Projection Component and add the desired fields to the Output (R_NAME, N_NAME,C_MKT SEGMENT, C_NAME, O_YE AR, O_MONTH, O_TOTALP RICE)  Apply a Filter to the O_YEAR so that Year = 1998 (Most recent year in this dataset is 1998) © 2011 SAP AG. All rights reserved. Confidential 127
  • 77. Creating a Calculation View Graphical Calc View Creation  Create a Calculated Column for Current Year (The Expression is just the O_TOTALPRICE field because the filter returns the current year)  Create a Calculated Column for the PriorYear with the Expression defined as 0. We need this field so that the Union will function properly (All Queries in a Union need the same number of fields.) © 2011 SAP AG. All rights reserved. Confidential 128
  • 78. Creating a Calculation View Graphical Calc View Creation The Prior Year dataflow needs to be added to the Calculation View.  Drag the CUSTOMER_ORDER Analytic View onto the pallet  Add a “Projection” Component  Link the Customer_Order AV with the Projection Component  Select the Projection Component and add the desired fields to the Output  Apply a Filter to the O_YEAR so that Year = 1997  Create a Calculated Column for Current Year (The Expression is 0)  Create a Calculated Column for the PriorYear with the Expression defined as O_TOTALPRICE.  NOTE: The Output fields and the Calculated Columns for the Prior Year Projection must be in the same order as the Current Year Projection. © 2011 SAP AG. All rights reserved. Confidential 129
  • 79. Creating a Calculation View Graphical Calc View Creation The next step is to “Union” the two Projections together.  Add a Union component  Add links from the two Projections to the Union component.  Select the Union component and add the desired fields from the first Projection to the Target panel (all fields with the exception of O_YEAR and O_TOTALPRICE)  Map the fields from the second Projection to the appropriate Target field. © 2011 SAP AG. All rights reserved. Confidential 130
  • 80. Creating a Calculation View Graphical Calc View Creation The next step is to link the Union component to the Output Component and specify the Output fields.  Add a link from the Union component to the Output component.  Add the Attribute fields. Select the Output component and add the desired fields as Attributes  Add the Measure fields using the same process.  Save the Calc View  Activate the Calc View  Preview the Data © 2011 SAP AG. All rights reserved. Confidential 131
  • 81. Calculation View Script Calc View This Calc View accomplishes the same thing but is defined using the Script technique instead of the Graphical approach. © 2011 SAP AG. All rights reserved. Confidential 132
  • 82. SQLScript / R / BFL (Business Function Library) Three ways to implement in-memory data mining and statistical analysis SQLScript  SQLScript is a set of SQL extensions which allow developers to push data- intensive logic into the database in order to avoid massive data copies to the application server and to leverage sophisticated parallel execution strategies of the database. R  Through the R integration solution, developers can leverage open source R’s 3000+ external packages to perform wide-range data mining and statistical analysis. BFL (Business Function Library)  BFL is the calculation library for the applications built on top of the SAP HANA database. The business functions are written in C++ and executed in database calculation engine. BFL has a roadmap for data mining and statistical algorithms. © 2011 SAP AG. All rights reserved. Confidential 133
  • 83. SQLScript  The set of SQL extensions for the SAP HANA database which allow developers to push data intensive logic into the database is called SQLScript.  These extensions are keys to avoiding massive data copies to the application server and to leverage sophisticated parallel execution strategies of the database.  SQLScript V2 supports stored procedures, which provides enhanced control flow capabilities and is positioned to be more suitable for pushing complex parts of application logic to the database.  It can meet some simple requirement for reporting, like join, aggregation, etc. When it comes to data mining and statistic analysis, SQLScript is not suitable for implementing complex algorithms. © 2011 SAP AG. All rights reserved. Confidential 134
  • 84. Calculation View (Scripting)  Calculation View  Define Table Output Structure  Write SQL Statement.  Ensure that the selected fields corresponds to previously defined Output table structure of the function.  Example : SQL_A = SELECT MATNR, KUNNR, …. FROM <COPA_ACTUAL_ANALYTICAL VIEW 1> SQL_P = SELECT MATTNR_KUNNR, … FROM <COPA_PROJECTED_ANALYTICAL VIEW 2> TABLE_OUTPUT_STRUCTURE = SELECT * FROM <SQL_A> UNION SELECT * FROM <SQL_P>; © 2011 SAP AG. All rights reserved. Confidential 135
  • 85. R Integration with the SAP HANA database – Scenario 1 Usage Scenario 1 Sample Codes in SAP HANA SQLScript  Utilize Open Source R as the data mining calculation engine.  Application developer can embedded R scripts in the CREATE FUNCTION LR( IN input1 SUCC_PREC_TYPE, SQLScript. OUT output0 R_COEF_TYPE) LANGUAGE RLANG AS''' NewDB Space OpenSource R CHANGE_FREQ<-input1$CHANGE_FREQ; Space SUCC_PREC<-input1$SUCC_PREC; coefs<-coef(glm(SUCC_PREC ~ Calc. Engine CHANGE_FREQ, family = poisson Join OLAP )); OP OP R External Packages INTERCEPT<-coefs["(Intercept)"]; ROP (Forecasting, Pa CHANGEFREQ<-coefs["CHANGE_FREQ"]; rallelism, statisti cs, etc.) result<- as.data.frame(cbind(INTERCEPT,CHANGEFREQ)) '''; 2 Run the R scripts TRUNCATE TABLE r_coef_tab; RClient Send data CALL LR(SUCC_PREC_tab,r_coef_tab ); 1 and R script SAP RHANA SELECT * FROM r_coef_tab; Package 3 Get back the result from R to SAP HANA R Open Source NewDB Integration R © 2011 SAP AG. All rights reserved. Confidential 137
  • 86. Business Function Library Business Function Library (BFL) is the calculation library for Applications built on top of the SAP HANA database. It resides in the Calculation Engine and consists of many Business Functions executing at the database layer and is written in C++. BFL Wiki Design Goals Significant performance improvements for SAP apps 1. Utilizing new hardware i.e. multi core, built in vector engine 2. Massive parallel main memory processing 3. Changing the boundaries between application server and data management layer Simplification of application programming model 1. Usage of extended SQL(SQLScript) 2. Rich functionalities in the Calculation Engine 3. Fast apps delivery © 2011 SAP AG. All rights reserved. Confidential 138

Notas del editor

  1. So, how is this possible? What gives us the opportunity to transform the way we think about enterprise software?In short – innovation. Innovation in hardware and in software.On the hardware side, processor, memory and server technologies have recently taken huge leaps forward. The number of processor cores we can use on a blade, the amount of addressable memory, and processor and memory speed are all increasing. Massive parallelism, scalability and throughput speed are now at our disposal. And the price/performance of this hardware is amazing.At the same time as these advances have been made, SAP has been developing software to take advantage of them. We use a unique combination of approaches including columnar databases, compression, and parallelization of queries to optimize data access and processing on this new hardware. We can perform complex calculations on real-time data, without pre-calculating aggregates or building custom reporting repositories. The raw speed of the hardware not only allows us to process massive quantities of data but also overcome historical issues with some earlier generations of these software approaches – such as the slow update cycles that prohibited use of columnar databases in disk-based systems.Our joint innovation with leading hardware vendors has made real-time business a reality.
  2. (Optional slide)
  3. 5 day turnaround to 2 day turnaround.
  4. Other applications such as BusinessOne are already running in-memory technology in the labs.
  5. Of the components displayed on this slide, not all are part of HANA. BusinessObjects Enterprise, the ERP system, the clients etc. are optional components whose presence in the system landscape depends on the customer scenario.The components listed here are: The in-memory computing engine itself, which hosts the actual data stores, a persistence layer, a calculation/execution engine, interfaces and other components The in-memory computing studio which is a front-end delivered with HANA which enables administration of the in-memory computing engine and modeling for the engine. An ERP system in which a load controller and a replication engine are installed to enable data transfer from ERP to HANA Optional components are a NetWeaver BW system or third party systems which can be connected to HANA via SAP BusinessObjects Data Services A BusinessObjects Enterprise system with Data Services installed. Client tools for reporting off HANA. These tools might need components in a BusinessObjects Enterprise system (such as Information Design Tool) or database clients (JDBC, ODBC, ...)In the following slides we take a look at several usage aspects of HANA such as data loading, modeling and reporting and discuss which parts of this setup are important for these aspects.
  6. Of the components displayed on this slide, not all are part of HANA. BusinessObjects Enterprise, the ERP system, the clients etc. are optional components whose presence in the system landscape depends on the customer scenario.The components listed here are: The in-memory computing engine itself, which hosts the actual data stores, a persistence layer, a calculation/execution engine, interfaces and other components The in-memory computing studio which is a front-end delivered with HANA which enables administration of the in-memory computing engine and modeling for the engine. An ERP system in which a load controller and a replication engine are installed to enable data transfer from ERP to HANA Optional components are a NetWeaver BW system or third party systems which can be connected to HANA via SAP BusinessObjects Data Services A BusinessObjects Enterprise system with Data Services installed. Client tools for reporting off HANA. These tools might need components in a BusinessObjects Enterprise system (such as Information Design Tool) or database clients (JDBC, ODBC, ...)In the following slides we take a look at several usage aspects of HANA such as data loading, modeling and reporting and discuss which parts of this setup are important for these aspects.
  7. One of the promises of HANA is to deliver real-time analytic insight on vast data volumes.For the real-time aspect, data provisioning in real time is required. This is the task of Sybase Replication Server. Tables from the ERP system are initially loaded into HANA. All subsequent changes to these ERP tables are immediately replicated into the HANA server. To this end, replication server makes use of the database logs in the ERP system.There is a tool that helps selecting the tables to be loaded and replicated. This tool is integrated into the In-Memory Computing Studio (Modeling).Replication Server only allows connecting one SAP ERP system to HANA. Some additional requirements apply regarding the ERP system such as server OS, DBMS system, ERP version, SAP kernel and Unicode state (only Unicode is supported).Systems not fulfilling these requirements can be accessed via data services. This requires a BusinessObjects installation, with a data services server and data services designer on the client.Note: for practical purposes it will probably not be reasonable to connect to several ERP systems with one HANA box (one via replication, the other(s) via data services) for obvious reasons (same tables existing in all the ERP systems etc).Note: Loading from NetWeaver BW into HANA via data services technically is an application of OpenHub.
  8. Once tables are created in HANA and loaded from the source system, the semantic relationships between the tables need to be modeled.In an ERP system, these relationships are modeled via database views and ABAP code. In HANA, these relations initially do not exist at all.Modeling can be done in several places (bottom-up description): If data services is used to create and fill the table, first modeling decisions can be made here. Data models can be created within the In-Memory Computing Engine. Models are stored in form of views and associated metadata in the engine. The front-end tool to create these models in the In-Memory computing Studio (Information Modeler within that tool). Depending on the front-end tool used to retrieve data from the In-Memory Computing Engine, further modeling decisions can be made in universes (SAP BusinessObjects Information Design Tool) or other semantic layers.
  9. In reporting, client tools create queries against the database. Where the actual query is generated depends on the tool used. BusinessObjects Explorer will directly create a call against a HANA interface. Excel will also directly request data via MDX. Front-end tools which report against Universes will have the SQL request against HANA created in the universe layer. Please note that at the time of creating these slides, it is not yet decided which front-end tools will be supported in combination with HANA. The front-end tools listed in these slides are candidates.The following client side drivers are delivered with HANA: JDBC ( SQL) ODBC ( SQL) ODBO (short for OLEDB for OLAP  MDX)Which of the drivers will be used depends on the front-end tool that&apos;s being used (and sometimes even the way in which the front-end tool is used).
  10. For Administration of the HANA, the In-Memory Computing Studio has an administration component. Tasks offered by the studio include (but are not limited to): Starting/stopping the In-Memory Computing Engine (upon start, the in-memory stores are reconstructed from the persistence layer) User administration including creating/deleting users and authorizations Table administration, including creating indexes or some part of the configuration for data replication Creating or restoring a backup
  11. You can browse and import extractors in an SAP application’s datastore and use them in an ABAP data flow. Optionally, you can combine the extractors with other extractors or ABAP tables.
  12. Hot Tips:It is most likely that you will access an Analytical view.You can get the table structure by doing a data definition on column view for an Analytical view. You can also do a SQL select statement on column view for an Analytical view.
  13. With the R integration project in SAP HANA, users can run R scripts transparently in the SAP HANA database environment. You can write R scripts yourself or invoke thousands of existing R external packages. There are two scenarios for R integration for two difference use cases. Scenario 1 is to leverage R to extend NewDB’s data mining and statistic analysis capability through the SQLScript interface in a stored procedure way. Scenario 2 is to provide the SAP HANA database as a data source for open source R. You can explore the SAP HANA data in a interactive way.The blue components are the core NewDB components. The green ones are the pure open source R. The orange ones are the components to achieve the seamless integration.
  14. Just like R, BFL can be embedded into SQLScript and be called by an application easily through ODBC or JDBC. Since BFL are C++ components inside the SAP HANA database, it should deliver excellent performance.