Your SlideShare is downloading. ×
Hana To Go Presentation Final With Demo Screen Shots Nov8
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Hana To Go Presentation Final With Demo Screen Shots Nov8

757

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
757
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 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.
  • (Optional slide)
  • 5 day turnaround to 2 day turnaround.
  • Other applications such as BusinessOne are already running in-memory technology in the labs.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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's being used (and sometimes even the way in which the front-end tool is used).
  • 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
  • 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.
  • 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.
  • 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.
  • 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.
  • Transcript

    • 1. SAP Hana Technical Workshop High Performance Analytics October 6, 2011
    • 2. SAP HANA Overview
    • 3. © 2011 SAP AG. All rights reserved. 4Confidential 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
    • 4. 5
    • 5. 6 SAP in-memory innovations make the “New Way” a reality In-Memory Row + Column Database Massively Parallel Processing Calculation Engine Columnar storage increases the amount of data that can be stored in limited memory (compared to disk) Column databases enable easier parallelization of queries Row database fast transactional processing In-memory processing gives more time for relatively slow updates to column data In-memory allows sophisticated calculations in real-time MPP optimized software enables linear performance scaling making sophisticated calculations like allocations possible
    • 6. 8 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
    • 7. © 2011 SAP AG. All rights reserved. 9Confidential SAP HANA Proof-Points Enabling Business Agility
    • 8. 10 In-Memory Analytics SAP HANA real-time operational analytics Complete BI Suite with BI 4 runs on SAP HANA Begin delivery of Baseline Reporting packages One Store for Data and Analytics SAP HANA only persistence layer for SAP Business Suite SAP Business Suite optimized for in- memory computing Flexible real time analysis of operations at non-aggregated level Real-Time operational planning and simulation capabilities: link to execution Primary persistence and optimized for SAP BW Reduced landscape complexity Value chain transformation CapabilitiesBenefits Next-gen Applications SAP BW fully running on SAP HANA SAP HANA platform for in-memory apps ■ Industry and LOB Analytic Apps ■ Other purpose built apps Further optimization of BI 4 Suite for SAP HANA SAP Business Suite begins move to SAP HANA SAP HANA 1.0 sp3 Vision Longer-Term SAP HANA Development Roadmap Product Strategy and Plan SAP HANA 1.0 Dec 2010 SAP HANA 1.0 sp1, July 2011 sp2 General Availability RTC (Ramp-up)
    • 9. 11 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.
    • 10. 12 SAP CRM Rapid Deployment Solution SAP ERP rapid-deployment solution for operational reporting with SAP HANA™ software Business Models and Reports included:  Financial Reporting  Sales Reporting  Procurement Reporting  Shipping Reporting  Master Data Reporting 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. Current situation Reactive business model and lack of business transparency due to sub-optimal execution speed of the current ERP operational reporting solution Value proposition Provide flexible real time analytics, improve business performance, strengthen competitive advantage, provide quick wins for business. Outcome opportunity Sales people’s efficiency is increased, plans are more accurate and reporting is more timely.
    • 11. SAP HANA Architecture
    • 12. © 2011 SAP AG. All rights reserved. 14Confidential In-Memory Computing Engine Admin and Data Modeling Real–Time Replication Services Data Integration Services In-Memory Row/Column Data Store Calculation and Planning Engine SAP NetWeaver BW 3rd Party SAP Business Suite Custom Applications SAP BusinessObjects MDX SQL Optimized Data Management Service SAP HANA – Complete Solution Preconfigured Analytical Appliance ■ In-Memory software + hardware (Cisco, Dell, HP, IBM, Hitachi and Fujitsu) In-Memory Computing Engine Software ■ Data Modeling and Data Management ■ Real-time Data replication for SAP ECC ■ Data Integration for 3rd Party Systems Capabilities Enabled ■ Analyze information in real-time at unprecedented speeds on large volumes of non-aggregated data ■ Create flexible analytic models based on real-time and historic business data ■ Foundation for new category of applications (e.g., planning, simulation) to significantly outperform current applications in category ■ Minimizes data duplication
    • 13. © 2011 SAP AG. All rights reserved. 15Confidential Architecture Overview In-Memory Computing Engine and Surroundings In-Memory Computing Engine Clients (planned, e.g.) BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) Request Processing / Execution Control MS Excel BI4 Analysis SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling ERP ERP DB System Landscape Transformation SLT SAP Business Objects BI4 Data Services Designer SBO BI4 servers ( program for client) SBO BI4 Information Design Tool Other Source Systems SAP NetWeaver BW 3rd Party Data Services
    • 14. © 2011 SAP AG. All rights reserved. 16Confidential Architecture Overview In-Memory Computing Engine and Surroundings Other Source Systems ERP ERP DB In-Memory Computing Engine Clients (planned, e.g.) BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) Request Processing / Execution Control MS Excel BI4 Analysis SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling System Landscape Transformation SLT SAP Business Objects BI4 Data Services Designer SBO BI4 servers ( program for client) SBO BI4 Information Design Tool SAP NetWeaver BW 3rd Party Data Services In-Memory Computing Engine Request Processing / Execution Control SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager SLT
    • 15. © 2011 SAP AG. All rights reserved. 18Confidential ERP ERP DB System Landscape Transformation Architecture Overview Loading Data into SAP HANA In-Memory Computing Engine Request Processing / Execution Control SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling SLT Business Objects Enterprise Data Services Designer SBO BI4 servers ( program for client) SBO Information Design Tool Other Source Systems SAP NetWeaver BW 3rd Party Data Services Clients (planned, e.g.) BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) MS Excel BI4 Analysis
    • 16. © 2011 SAP AG. All rights reserved. 19Confidential Architecture Overview Data Modeling In-Memory Computing Engine Request Processing / Execution Control SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling SLT Business Objects Enterprise Data Services Designer SBO BI4 servers ( program for client) SBO Information Design Tool Other Source Systems SAP NetWeaver BW 3rd Party Data Services Clients (planned, e.g.) BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) MS Excel BI4 Analysis ERP ERP DB System Landscape Transformation
    • 17. © 2011 SAP AG. All rights reserved. 20Confidential Clients (planned, e.g.) Architecture Overview Reporting In-Memory Computing Engine Request Processing / Execution Control SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling SLT Business Objects Enterprise Data Services Designer SBO BI4 servers ( program for client) SBO Information Design Tool Other Source Systems SAP NetWeaver BW 3rd Party Data Services BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) MS Excel BI4 Analysis ERP ERP DB System Landscape Transformation
    • 18. © 2011 SAP AG. All rights reserved. 21Confidential Architecture Overview Administration In-Memory Computing Engine Request Processing / Execution Control SQL Parser MDX SQL Script Calc Engine Transaction Manager Session Management Relational Engines Row Store Column Store Persistence LayerPage Management Logger Disk Storage Log VolumesData Volumes Authorization Manager Metadata Manager In-Memory Computing Studio Administration Modeling SLT Business Objects Enterprise Data Services Designer SBO BI4 servers ( program for client) SBO Information Design Tool Other Source Systems SAP NetWeaver BW 3rd Party Data Services Clients (planned, e.g.) BI4 Explorer Dashboard Design SAP BI4 universes (WebI,...) MS Excel BI4 Analysis ERP ERP DB System Landscape Transformation
    • 19. © 2011 SAP AG. All rights reserved. 22Confidential
    • 20. © 2011 SAP AG. All rights reserved. 23Confidential
    • 21. © 2011 SAP AG. All rights reserved. 24Confidential
    • 22. © 2011 SAP AG. All rights reserved. 25Confidential HANA Modeling Process Flow Import Source System metadata •Physical tables are created dynamically (1:1 schema definition of source system tables) Provision Data •Physical tables are loaded with content. Create Information Models •Database Views are created •Attribute Views •Analytic Views •Calculation Views Deploy •Column views are created and activated Consume •Consume with choice of client tools •BICS, SQL, MDX
    • 23. © 2011 SAP AG. All rights reserved. 26Confidential 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.
    • 24. Introduction to SAP HANA Studio
    • 25. © 2011 SAP AG. All rights reserved. 28Confidential Framework for Modeling within HANA Analyze Data in Hana Information in single table Base Tables Only Joins and calculated expressions no Access Base Tables/ Attr Views yes Use Attribute Views Star Schema or Aggregation no yes Use Analytic Views yes Try Graphical Calc View not enough Use Graphical Calc Views yes Use Scripted Calc Views not enough Attribute views Analytic Views Calc Views
    • 26. © 2011 SAP AG. All rights reserved. 29Confidential Welcome to the SAP HANA Studio Starting the Modeling Environment • Find the Modeler short cut on the desktop and double click to open it.
    • 27. © 2011 SAP AG. All rights reserved. 30Confidential Information Modeler – SAP HANA Studio Tour of the UI: • Based on Eclipse • Consistent with other SAP Modeling/Developer tools • Navigation • Perspectives • Information Panel
    • 28. © 2011 SAP AG. All rights reserved. 31Confidential 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
    • 29. © 2011 SAP AG. All rights reserved. 32Confidential Check System Status From the Status Window Navigate the tabs • Landscape • Alerts • Performance • Load
    • 30. © 2011 SAP AG. All rights reserved. 33Confidential Navigating HANA The Navigator view is the main way to access content in the HANA system. Top level nodes are System Instances. Each instance contains:  Catalog  Authorizations/Security  Schemas/Data Tables  Content  Virtual Information Models Instance Security Schemas/Data Information Models
    • 31. © 2011 SAP AG. All rights reserved. 34Confidential 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.
    • 32. © 2011 SAP AG. All rights reserved. 35Confidential 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
    • 33. © 2011 SAP AG. All rights reserved. 36Confidential Navigating HANA Other actions that are available on a Table include: •Open Content • Displays the Top 1000 records
    • 34. © 2011 SAP AG. All rights reserved. 37Confidential 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.
    • 35. © 2011 SAP AG. All rights reserved. 38Confidential 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
    • 36. © 2011 SAP AG. All rights reserved. 39Confidential Navigating HANA A SQL Editor is available for free hand SQL
    • 37. © 2011 SAP AG. All rights reserved. 40Confidential 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
    • 38. © 2011 SAP AG. All rights reserved. 41Confidential Navigating HANA Select Data Preview for the Analytic View ORDER_WAREHOUSE Interact with the virtual views directly in the HANA Modeler
    • 39. Loading Data into HANA
    • 40. © 2011 SAP AG. All rights reserved. 43Confidential 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
    • 41. © 2011 SAP AG. All rights reserved. 44Confidential SAP BusinessObjects DataServices Extractor Support Use extractors in a data flow like a regular source
    • 42. © 2011 SAP AG. All rights reserved. 45Confidential LT Replication Concept: Trigger-Based Approach Configuration of LT Replication Server RFC Connection Table space (optional) Replication mode Connection to HANA Number of jobs A schema defines the configuration of the data replication for a source system
    • 43. © 2011 SAP AG. All rights reserved. 48Confidential 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
    • 44. © 2011 SAP AG. All rights reserved. 49Confidential 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.
    • 45. © 2011 SAP AG. All rights reserved. 50Confidential 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”
    • 46. © 2011 SAP AG. All rights reserved. 51Confidential Preparing to Load Data Execute the SQL statement generated.
    • 47. © 2011 SAP AG. All rights reserved. 52Confidential 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.
    • 48. © 2011 SAP AG. All rights reserved. 53Confidential Prepare to Load Data Delete the data in the table. Input the SQL below and execute it.
    • 49. © 2011 SAP AG. All rights reserved. 54Confidential Load Data Start the SAP BusinessObjects Data Services client ( in a production system this would be an automated process).
    • 50. © 2011 SAP AG. All rights reserved. 55Confidential 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
    • 51. © 2011 SAP AG. All rights reserved. 56Confidential Load Data Data Services Designer.
    • 52. © 2011 SAP AG. All rights reserved. 57Confidential Load Data Open the “TPCH_Data_Load” project by double clicking on the folder in the lower left of the UI.
    • 53. © 2011 SAP AG. All rights reserved. 58Confidential Load Data Expand the TPCH_Job_Runner node until it looks like this.
    • 54. © 2011 SAP AG. All rights reserved. 59Confidential Load Data Double Click on the Query Icon to see the data mappings from input table to HANA table.
    • 55. © 2011 SAP AG. All rights reserved. 60Confidential 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.
    • 56. © 2011 SAP AG. All rights reserved. 61Confidential Load Data • You will see an “Execution Properties Dialog. • Do not alter the default values and select the “OK” button.
    • 57. © 2011 SAP AG. All rights reserved. 62Confidential 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.
    • 58. © 2011 SAP AG. All rights reserved. 63Confidential Verify the Data From the SAP HANA Studio Return to your SQL window and execute the command below.
    • 59. BEGIN HANDS-ON EXERCISE!
    • 60. Modeling Data – Attribute Views
    • 61. © 2011 SAP AG. All rights reserved. 66Confidential 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.
    • 62. © 2011 SAP AG. All rights reserved. 67Confidential Framework for Modeling within HANA Analyze Data in Hana Information in single table Base Tables Only Joins and calculated expressions no Access Base Tables/ Attr Views yes Use Attribute Views Star Schema or Aggregation no yes Use Analytic Views yes Try Graphical Calc View not enough Use Graphical Calc Views yes Use Scripted Calc Views not enough Attribute views Analytic Views Calc Views
    • 63. Modeling Data – Analytic Views
    • 64. © 2011 SAP AG. All rights reserved. 82Confidential Framework for Modeling within HANA Analyze Data in Hana Information in single table Base Tables Only Joins and calculated expressions no Access Base Tables/ Attr Views yes Use Attribute Views Star Schema or Aggregation no yes Use Analytic Views yes Try Graphical Calc View not enough Use Graphical Calc Views yes Use Scripted Calc Views not enough Attribute views Analytic Views Calc Views
    • 65. Viewing Results • SAP BusinessObjects Explorer • SAP BusinessObjects Web Intelligence
    • 66. More Complex Information Models
    • 67. © 2011 SAP AG. All rights reserved. 119Confidential Framework for Modeling within HANA Analyze Data in Hana Information in single table Base Tables Only Joins and calculated expressions no Access Base Tables/ Attr Views yes Use Attribute Views Star Schema or Aggregation no yes Use Analytic Views yes Try Graphical Calc View not enough Use Graphical Calc Views yes Use Scripted Calc Views not enough Attribute views Analytic Views Calc Views
    • 68. © 2011 SAP AG. All rights reserved. 120Confidential Calculation View Graphical JOINUNION  No SQL coding required  Union, Join, Projection nodes provided  Join Column Tables (Analytical Views)
    • 69. © 2011 SAP AG. All rights reserved. 121Confidential 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
    • 70. © 2011 SAP AG. All rights reserved. 122Confidential 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.
    • 71. © 2011 SAP AG. All rights reserved. 123Confidential 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.
    • 72. © 2011 SAP AG. All rights reserved. 124Confidential Creating a Calculation View Graphical A Union is configured to define the mapping to combine the 2 datasets. Lastly the Output dataset is defined.
    • 73. © 2011 SAP AG. All rights reserved. 125Confidential 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”
    • 74. © 2011 SAP AG. All rights reserved. 126Confidential 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”
    • 75. © 2011 SAP AG. All rights reserved. 127Confidential 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_MKTSEGMENT, C_NAME, O_YEAR, O_MONTH, O_TOTALPRICE)  Apply a Filter to the O_YEAR so that Year = 1998 (Most recent year in this dataset is 1998)
    • 76. © 2011 SAP AG. All rights reserved. 128Confidential 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.)
    • 77. © 2011 SAP AG. All rights reserved. 129Confidential 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.
    • 78. © 2011 SAP AG. All rights reserved. 130Confidential 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.
    • 79. © 2011 SAP AG. All rights reserved. 131Confidential 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
    • 80. © 2011 SAP AG. All rights reserved. 132Confidential Calculation View Script Calc View This Calc View accomplishes the same thing but is defined using the Script technique instead of the Graphical approach.
    • 81. © 2011 SAP AG. All rights reserved. 133Confidential 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.
    • 82. © 2011 SAP AG. All rights reserved. 134Confidential 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.
    • 83. © 2011 SAP AG. All rights reserved. 135Confidential 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>;
    • 84. © 2011 SAP AG. All rights reserved. 137Confidential R Integration with the SAP HANA database – Scenario 1 Join OP ROP OLAP OP Calc. Engine R External Packages (Forecasting, Parallelism, statistics, etc.) RClient SAP RHANA Package Send data and R script NewDB Space OpenSource R Space 1 3 NewDB R Integration Open Source R 2 Run the R scripts Get back the result from R to SAP HANA Usage Scenario 1  Utilize Open Source R as the data mining calculation engine.  Application developer can embedded R scripts in the SQLScript. CREATE FUNCTION LR( IN input1 SUCC_PREC_TYPE, OUT output0 R_COEF_TYPE) LANGUAGE RLANG AS''' CHANGE_FREQ<-input1$CHANGE_FREQ; SUCC_PREC<-input1$SUCC_PREC; coefs<-coef(glm(SUCC_PREC ~ CHANGE_FREQ, family = poisson )); INTERCEPT<-coefs["(Intercept)"]; CHANGEFREQ<-coefs["CHANGE_FREQ"]; result<- as.data.frame(cbind(INTERCEPT,CHANGEFREQ)) '''; TRUNCATE TABLE r_coef_tab; CALL LR(SUCC_PREC_tab,r_coef_tab ); SELECT * FROM r_coef_tab; Sample Codes in SAP HANA SQLScript
    • 85. © 2011 SAP AG. All rights reserved. 138Confidential 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++. 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 Design GoalsBFL Wiki
    • 86. Thank You!

    ×