Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Hana To Go Presentation Final With Demo Screen Shots Nov8

on

  • 788 views

 

Statistics

Views

Total Views
788
Views on SlideShare
787
Embed Views
1

Actions

Likes
0
Downloads
15
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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.

Hana To Go Presentation Final With Demo Screen Shots Nov8 Hana To Go Presentation Final With Demo Screen Shots Nov8 Presentation Transcript

  • SAP Hana Technical WorkshopHigh Performance AnalyticsOctober 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 makethe “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 AgilityHow Fast Can IT React on Change? – Empower Business PeopleHow 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-PointsEnabling Business Agility© 2011 SAP AG. All rights reserved. Confidential 9
  • SAP HANA Development RoadmapProduct 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-EnabledApplications for 2011SAP Cash and Liquidity Management: Allows companies to predict inbound andoutbound cash flows and risk management.Sales and Operations Planning: This application will enable sales and marketingdepartments to collaborate with operations and finance in order to evaluate theimpact of their strategies and make accurate predictions.Intelligent Payment Broker: This application will calculate financing options onopen invoices and will help determine which discounting terms should be offered onwhich invoices.Smart Meter Analytics: The software for intelligent electricity meters: With thisapplication utility companies can analyze smart meter readings to forecast demandand develop new products.SAP Trade Promotion Management : Improves the planning process and helpsdevelop accurate strategies for particular customers. 11
  • SAP ERP rapid-deployment solution for operationalreporting with SAP HANA™ softwareSolution 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 solutionBusiness 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 EngineSAP 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 OverviewIn-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 OverviewIn-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 OverviewLoading 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 OverviewData 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 OverviewReporting 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 OverviewAdministration 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 FlowImportSource CreateSystem Informationmetadata 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 ModelsAttribute Views – Think Master data or singledimension view of dataAnalytic Views – Think data cube or Star Schemamodel / merged facts and dimension tableCalculation View – Think extended functionality orcomplex 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 JoinsBase Tables Views yes and no calculated expressions Use Attribute yes Star not enoughAttribute views Views Schema or Aggregation Use Analytic yes Try not enoughAnalytic Views Views Graphical Calc View Use GraphicalCalc Views Calc Views Use Scripted Calc Views© 2011 SAP AG. All rights reserved. Confidential 28
  • Welcome to the SAP HANA StudioStarting 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 StudioTour 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 StatusIt is possible to checkthe status of theHANA system fromthe Modeler• Select the IM2 system• Click on the Wrench © 2011 SAP AG. All rights reserved. Confidential 31
  • Check System StatusFrom the StatusWindow Navigate thetabs• Landscape• Alerts• Performance • Load © 2011 SAP AG. All rights reserved. Confidential 32
  • Navigating HANAThe Navigator view is the main Instanceway to access content in theHANA system. SecurityTop level nodes are SystemInstances. Schemas/DataEach instance contains: Catalog  Authorizations/Security  Schemas/Data Tables Content Information  Virtual Information Models Models© 2011 SAP AG. All rights reserved. Confidential 33
  • Navigating HANASchemas provide a wayto organize and workwith the assets in yourdatabase.Here we can view andmodify the variousobjects that are part of aschemaFor example, you canlook at the Definition ofa Table by Right clickingon the Table name andselecting OpenDefinition.© 2011 SAP AG. All rights reserved. Confidential 34
  • Navigating HANAWhile in the Definitionview of the Table, youcan 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 HANAOther actions thatare available on aTable include:•Open Content • Displays the Top 1000 records © 2011 SAP AG. All rights reserved. Confidential 36
  • Navigating HANAOther actions thatare available on aTable 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 HANAOther actions that areavailable on a Tableinclude:•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 HANAA SQL Editor isavailable for freehand SQL © 2011 SAP AG. All rights reserved. Confidential 39
  • Navigating HANAInformation Models are organizedunder the Content folder in theNavigator view.Create/Modify/View• Attribute Views• Analytic Views• Calculations Views• Analytic Privileges• Procedures © 2011 SAP AG. All rights reserved. Confidential 40
  • Navigating HANASelect Data Preview for the Analytic View ORDER_WAREHOUSEInteract with the virtual views directly in the HANA Modeler© 2011 SAP AG. All rights reserved. Confidential 41
  • Loading Data into HANA
  • Populating HANA with DataCurrently 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 DataServicesExtractor Support Use extractors in a data flow like a regular source© 2011 SAP AG. All rights reserved. Confidential 44
  • LT Replication Concept: Trigger-Based ApproachConfiguration of LT Replication ServerA schema defines the configuration ofthe 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 HANAIn the following section we will load data into HANA using SAPBusinessObjects Data Services. We will perform the following steps:1. Prepare the HANA system for the load2. Perform the load from SAP Business Objects Data Services3. Verify that the data was loaded correctly© 2011 SAP AG. All rights reserved. Confidential 48
  • The Data ModelFor our Exercise we are using the TPC-H database.The data was generated with the publicly available utility used to generatedata for this benchmark. The default data set was generated with roughly 6million 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 DataExecute the SQL statement generated.© 2011 SAP AG. All rights reserved. Confidential 51
  • Preparing to Load DataSwitch back to the SQL tab and change the SQL statement to the one belwoand execute the statement. There should br 1.5 million records in the table.© 2011 SAP AG. All rights reserved. Confidential 52
  • Prepare to Load DataDelete the data in the table.Input the SQL below and execute it.© 2011 SAP AG. All rights reserved. Confidential 53
  • Load DataStart the SAP BusinessObjects DataServices client ( in a production system thiswould be an automated process).© 2011 SAP AG. All rights reserved. Confidential 54
  • Load DataLog into the SAP BusinessObjectesData 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 DataData Services Designer.© 2011 SAP AG. All rights reserved. Confidential 56
  • Load DataOpen the “TPCH_Data_Load”project by double clicking onthe folder in the lower left ofthe UI.© 2011 SAP AG. All rights reserved. Confidential 57
  • Load DataExpand the TPCH_Job_Runner node until it looks like this.© 2011 SAP AG. All rights reserved. Confidential 58
  • Load DataDouble Click on the Query Icon to see the data mappings from input table toHANA 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 DataFrom the SAP HANA Studio Return to your SQL window and execute thecommand below.© 2011 SAP AG. All rights reserved. Confidential 63
  • BEGIN HANDS-ON EXERCISE!
  • Modeling Data – Attribute Views
  • The Data ModelFor our Exercise we are using the TPC-H database.The data was generated with the publicly available utility used to generatedata for this benchmark. The default data set was generated with roughly 6million 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 JoinsBase Tables Views yes and no calculated expressions Use Attribute yes Star not enoughAttribute views Views Schema or Aggregation Use Analytic yes Try not enoughAnalytic Views Views Graphical Calc View Use GraphicalCalc 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 JoinsBase Tables Views yes and no calculated expressions Use Attribute yes Star not enoughAttribute views Views Schema or Aggregation Use Analytic yes Try not enoughAnalytic Views Views Graphical Calc View Use GraphicalCalc 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 JoinsBase Tables Views yes and no calculated expressions Use Attribute yes Star not enoughAttribute views Views Schema or Aggregation Use Analytic yes Try not enoughAnalytic Views Views Graphical Calc View Use GraphicalCalc Views Calc Views Use Scripted Calc Views© 2011 SAP AG. All rights reserved. Confidential 119
  • Calculation ViewGraphical 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 ViewSQLScript (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 GraphicalA new Analytic Viewwas created(Customer_Order) tosupport thisexercise.This Analytic Viewcombines the OrderFact table with theCustomer AttributeView. TwoCalculated Attributeswere created tocapture Year andMonth. © 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 Viewis to Union the CurrentYear and Prior Year Salestogether along with somedesired Attributes.The new Customer_OrderAnalytic View is thesource for this Calc View.In the Projection youspecify the Attributes andMeasures you want toinclude from the AnalyticViews, as well as twocalculated columns.Each Projection will alsofilter the data for a specificYear. © 2011 SAP AG. All rights reserved. Confidential 123
  • Creating a Calculation View GraphicalA Union is configured todefine the mapping tocombine the 2 datasets.Lastly the Output datasetis defined. © 2011 SAP AG. All rights reserved. Confidential 124
  • Creating a Calculation View GraphicalCalc 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 GraphicalCalc 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 GraphicalCalc View CreationThe Initial View is defined withthe “Customer_Orders”Analytic View and the Outputcomponent. 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) © 2011 SAP AG. All rights reserved. Confidential 127
  • Creating a Calculation View GraphicalCalc 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 GraphicalCalc View CreationThe Prior Year dataflow needs to beadded 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 GraphicalCalc View CreationThe next step is to “Union” the twoProjections 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 GraphicalCalc View CreationThe next step is to link the Unioncomponent to the Output Componentand 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 ScriptCalc ViewThis Calc Viewaccomplishes the samething but is defined usingthe Script techniqueinstead of the Graphicalapproach. © 2011 SAP AG. All rights reserved. Confidential 132
  • SQLScript / R / BFL (Business Function Library)Three ways to implement in-memory data mining and statistical analysisSQLScript 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 1Usage 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 SQLScript. SUCC_PREC_TYPE, 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 LibraryBusiness Function Library (BFL) is the calculation library for Applications built on top of the SAP HANAdatabase. It resides in the Calculation Engine and consists of many Business Functions executing at thedatabase 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!