clone skills,inc. sap bpc on hana data modeling v9 11282013

100
______________________________________________________________ Author: Chief Architect: Yogendra Vaithilingam Jothi Periasamy SAP BPC Consultant SAP EPM/HANA Community Service SAP HANA/EPM/BI/EIM Community Leader SAP EPM Community Member SAP BPC/BOBJ/BI/MDM Domain Champion [email protected] 11/28/2013 [email protected] , (916)-296-0228 - Cell CloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 1 SAP BPC on HANA Knowledgebase (A SAP EPM/BPC & HANA Community Service) SAP HANA Data Modelling For Integrated Financial Planning (IFP) Implementation Guide

Upload: jothi-periasamy

Post on 08-May-2015

2.455 views

Category:

Technology


9 download

DESCRIPTION

The purpose of this article is to provide adequate instruction to implement any complex SAP HANA data model. Users will learn various building blocks that are required to implement any SAP HANA data model. SAP HANA data model is not just creating an attribute view, analytical view and calculation view, and also it is not a technical implementation, it is an “Art”. SAP HANA data model is the foundation for any SAP HANA enabled business transformation initiatives. SAP HANA data model and data architecture should be driven from business process and the model should fully leverage SAP HANA’s in memory computing power and also the build in out of the box SAP HANA functionality such as stored procedures, functions, database triggers, hierarchies, calculated measures, restricted measures, calculated attributes, dynamic currency conversions, input parameters, and much more. Consider all of these key capabilities of SAP HANA while transforming business problems into a SAP HANA enabled solutions. In this document we are explaining the objective of each data model building block, and also its implementation steps. Users should be able to follow this guide and implement any SAP HANA data model. SAP HANA enabled EPM and BI solutions  SAP BPC integrated financial planning with the power of in-memory computing  Predictive analytics  Financial predictive  Healthcare predictive  Advanced analytics  Smart Grid  etc 1.1. SAP HANA Data Model Key Building Blocks  Attribute view  Analytical view  Calculation view through scripts  Stored procedure  Functions  Database triggers  Variables  Input parameters  Hierarchy  Decision tables  Dynamic currency conversion  Data Import

TRANSCRIPT

  • 1.______________________________________________________________SAP BPC on HANA Knowledgebase (A SAP EPM/BPC & HANA Community Service)SAP HANA Data Modelling For Integrated Financial Planning (IFP)Implementation GuideAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 1

2. ______________________________________________________________ Our Sponsor:Thank you to our sponsor and to those who support this article! Sierra Infosys is a global, business driven, technology enabled Solutions Company, committed to help clients succeed by accelerating and optimizing 'Big Data' and providing industry led innovation in predictive analytics. Sierra Infosys harnesses the power of in-memory computing solutions facilitated by pre-packed, rapidly deployable SAP HANA enabled SAP EPM, SAP BI & SAP EIM solutions on Mobile over a Cloud infrastructure. Our certified SAP professionals bring to the table their indepth domain knowledge and expertise across verticals to provide new life to your Big Data, to dramatically impact your business intelligence and to deliver measurable performance gains for your organization. Our solutions provide visibility, insight and control across all communication and collaboration applications being used within an organization. With smarter data come smarter business decisions. Sierra Infosys SAP HANA solutions are engineered to meet client needs. Our proven expertise in SAP solutions coupled with extensive knowledge on market trends has enabled us to build tools that orchestrate seamless data analysis at your client's fingertips. We enable you to harness the power of Big Data and effectively unfetter your workforce to stay ahead of the curve.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 2 3. ______________________________________________________________ Table of Contents 1. Executive Business Summary ................................................................................ 4 1.1. SAP HANA Data Model Building Blocks .......................................................... 5 1.2. Sample HANA Data Model .............................................................................. 6 2. Key Assumptions.................................................................................................... 8 3. Login to SAP HANA Studio .................................................................................... 9 4. Creating HANA Tables ......................................................................................... 11 4.1. Employee Table ............................................................................................ 11 4.2. Department Table .......................................................................................... 23 4.3. WageType Table ........................................................................................... 25 4.4 Payroll Table .................................................................................................. 27 4.5. Employee Audit Table ................................................................................... 34 5. Information Modeling - Creating Attribute View .................................................... 35 5.1. Attribute View for Employee .......................................................................... 35 5.2. Attribute View for Department ....................................................................... 39 5.3. Attribute View for Wage Type ........................................................................ 41 6. Information Modeling - Creating Analytic View ..................................................... 42 7. Information Modeling - Creating Calculation View ................................................ 47 8. Information Modeling - Decision Table ................................................................. 53 9. Input Parameters .................................................................................................. 61 10. Currency Conversion .......................................................................................... 70 11. Hierarchy ............................................................................................................ 75 12. Functions ............................................................................................................ 88 13. Procedure ........................................................................................................... 90 14. Database Triggers .............................................................................................. 94Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 3 4. ______________________________________________________________ 1. Executive Business Summary The purpose of this article is to provide adequate instruction to implement any complex SAP HANA data model. Users will learn various building blocks that are required to implement any SAP HANA data model. SAP HANA data model is not just creating an attribute view, analytical view and calculation view, and also it is not a technical implementation, it is an Art. SAP HANA data model is the foundation for any SAP HANA enabled business transformation initiatives. SAP HANA data model and data architecture should be driven from business process and the model should fully leverage SAP HANAs in memory computing power and also the build in out of the box SAP HANA functionality such as stored procedures, functions, database triggers, hierarchies, calculated measures, restricted measures, calculated attributes, dynamic currency conversions, input parameters, and much more. Consider all of these key capabilities of SAP HANA while transforming business problems into a SAP HANA enabled solutions. In this document we are explaining the objective of each data model building block, and also its implementation steps. Users should be able to follow this guide and implement any SAP HANA data model. SAP HANA enabled EPM and BI solutions SAP BPC integrated financial planning with the power of in-memory computing Predictive analytics Financial predictive Healthcare predictive Advanced analytics Smart Grid etcAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 4 5. ______________________________________________________________ 1.1. SAP HANA Data Model Key Building Blocks Attribute view Analytical view Calculation view through scripts Stored procedure Functions Database triggers Variables Input parameters Hierarchy Decision tables Dynamic currency conversion Data Import Key Consideration for SAP BPC on HANA Data Model We are presenting this consideration after our deep research on BPC on HANA and also our extensive SAP BPC industry implementation experience. What we have seen on a BPC on HANA implementation, most of the implementation resources are not able to realize the power and role of SAP HANA on a planning, forecasting and consolidation solution designFor faster data processing and quick response, Consider SAP HANA inmemory computing power for complex calculations instead of using SAP BPC script logic Leverage SAP HANA information modeling capabilities such as attribute view, analytical view and calculation view Use SAP HANA data management capabilities such as SLT (SAP landscape transformation) and SAP BusinessObjects Data Services instead of SAP BPC data managerAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 5 6. ______________________________________________________________ 1.2. Sample HANA Data Model Below diagram explains the approach that we took to implement an integrated financial planning data model for SAP BPC on SAP HANAFigure -1: SAP HANA Data model implementation approachAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 6 7. ______________________________________________________________ Following diagram explains our SAP BPC on HANA reference data architecture and also the information below between the SAP BPC business users and SAP HANA model. Note: There are many different data architectural options to choose, this is just one of the proposed option.Figure -2 - SAP BPC on HANA data model for integrated financial planning Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 7 8. ______________________________________________________________ 2. Key Assumptions Before we go further, it has been assumed that the user has basic knowledge about SAP HANA and also an understanding on database concepts and the fundamentals around entity relationship data model, multi dimensional data model, tables and SQL.SAP HANA Defined:Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 8 9. ______________________________________________________________ SAP HANA Data Model Implementation StepsNote: The following section explains various steps that we will be performing while designing and implementing SAP HANA data model. Contact us for SAP BPC on HANA integrated financial planning data model. In this article we are referring our integrated financial planning data model as a reference data model.3. Login to SAP HANA Studio 3.1. Launch SAP HANA studioAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 9 10. ______________________________________________________________ 3.2. Expand System -> Catalog ->Schema -> TablesAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 10 11. ______________________________________________________________ 4. Creating TablesNote: The following section explains various steps that we will be performed to create the SAP HANA base tables which is required for an optimal information modeling There are other options to create (or replicate) tables in SAP HANA, here is just one of them and also we are using some sample tables and columns Please feel free to contact us for any further support and detailsThe structure of a database, its schema, is defined by tables and the relationships among them, described by SQL. SAP HANA supports two types of tables: Dimension tables are typically master data Fact tables are lists of business transactions In the below example, we have created various tables like Employee table, Department table, Wage Type table, Payroll table and Employee Audit table which are used later in this document to explain different features of SAP HANA data model. Implementation: 4.1. Employee Table 4.1.1 Create a table (DIM_EMPLOYEE) with the required fields, data type and length. Assign the keys Right-click on your schema and select Create tableAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 11 12. ______________________________________________________________4.1.2. To import data into the table, go to File -> ImportAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 12 13. ______________________________________________________________4.1.3. Expand SAP HANA Content. Select Data from Local File and click Next Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 13 14. ______________________________________________________________4.1.4. Select the target system for the data import and select Next Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 14 15. ______________________________________________________________Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 15 16. ______________________________________________________________ 4.1.5. Select Browse button to select the csv file to upload the sameAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 16 17. ______________________________________________________________ 4.1.6. Select the csv file and click on Open buttonAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 17 18. ______________________________________________________________ 4.1.7. Select the Select Table button from File Import Wizard window to select the existing table name under which we are going to upload the data and click OkAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 18 19. ______________________________________________________________ 4.1.8. The selected csv file name will be displayed in Select File text box. Select the Header row exists checkbox if the csv file has the header row. The selected table name will be displayed in the Existing text box. Select Next to proceed.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 19 20. ______________________________________________________________ 4.1.9. Verify the mapping of the fields from proposed table structure to the target table and the primary key check box should be selected. Select Next to proceed to the next stepAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 20 21. ______________________________________________________________ 4.1.10. Verify the data and click Finish4.1.11. Right-click on the table and select Open Data PreviewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 21 22. ______________________________________________________________ 4.1.12. Verify the imported data gets displayed in the existing tableAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 22 23. ______________________________________________________________ 4.2. Department Table 4.2.1. Create a table (DEPARTMENT) with the required fields, data type and length. Assign the keys Right-click on your schema and select Create table4.2.2. Right-click on the table and select Insert StatementAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 23 24. ______________________________________________________________ 4.2.3. Type the insert queries and press Execute F(8)4.2.4. Right-click on the table and select Open Data PreviewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 24 25. ______________________________________________________________ 4.3. WageType Table 4.3.1. Create a table (WAGETYPE) with the required fields, data type and length. Assign the keys Right-click on your schema and select Create table4.3.2. Insert values into the table using Insert StatementAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 25 26. ______________________________________________________________ 4.3.3. Enter the insert statements and press Execute F(8)4.3.4. Right-click on the table and select Open Data PreviewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 26 27. ______________________________________________________________ 4.4 Payroll Table 4.4.1. To import table from csv file, navigate to File -> ImportAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 27 28. ______________________________________________________________ 4.4.2. From Import window select Data From Local File option under SAP HANA Content folder and click on Next buttonAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 28 29. ______________________________________________________________ 4.4.3. Select the target system where to import the data to and select NextAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 29 30. ______________________________________________________________ 4.4.4. Select Browse button to select the csv file to upload the same, check the Header row exists checkbox. Select the Schema name and enter the table name F_PAYROLL and click NextAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 30 31. ______________________________________________________________ 4.4.5. Verify the mapping, select the primary key and click NextAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 31 32. ______________________________________________________________ 4.4.6. Verify the data and click FinishAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 32 33. ______________________________________________________________ 4.4.7. Right-click on the table and select Open Data PreviewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 33 34. ______________________________________________________________ 4.5. Employee Audit Table 4.5.1. Similarly, create one more table (NEW_EMP_AUDIT) with the required fields, data type and length. Assign the keys Right-click on your schema and select Create tableAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 34 35. ______________________________________________________________ 5. Creating Attribute View Attribute Views are the dimensions of SAP HANA analytics and these are created to serve as a reusable type of view. We can create Attribute Views to represent items such as customers/employees, products, departments, dates, salespersons, salary, wages and cost centers. In the below example, we are creating different Attribute Views Attribute View for Employee, Department, Wage Type which are used for explaining other features of SAP HANA data model in this document. Implementation: 5.1. Attribute View for Employee 5.1.1. Select your package, right click and select New -> Attribute View optionAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 35 36. ______________________________________________________________ 5.1.2. Enter a Name and Description for the Attribute View and click Finish5.1.3. Click on Data Foundation. Press the Add Objects buttonAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 36 37. ______________________________________________________________ 5.1.4. Search for the table and select Ok5.1.5. In the resulting Details window select and add the desired fields to outputAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 37 38. ______________________________________________________________ 5.1.6. Select the primary key and mark the Key Attribute field to True5.1.7. Save and activate the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 38 39. ______________________________________________________________ 5.2. Attribute View for Department 5.2.1. Select your package, right click and select New -> Attribute View option5.2.2. Enter a Name and Description for the Attribute View and click Finish5.2.3. Click on Data Foundation. Select + to add objectsAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 39 40. ______________________________________________________________ 5.2.4. Look-up the table and add it to the attribute viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 40 41. ______________________________________________________________ 5.3. Attribute View for Wage Type 5.3.1 Similarly create attribute view AT_WAGETYPEAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 41 42. ______________________________________________________________ 6. Creating Analytic View Analytic Views are created to serve as the SAP HANA Cube and they are combined with Attribute Views to create rich multidimensional Analytics In the below example we are creating an Analytic view which consists Fact table for payroll and Dimension tables for employee, department and wage type. Implementation: 6.1. Right-click on the package, select New -> Analytic View6.2. Enter a Name and Description for the Analytic View and select FinishAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 42 43. ______________________________________________________________ 6.3. Select + sign in Data Foundation to add objects to the view.6.4. Type the name of the object (table/attribute view) and add themAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 43 44. ______________________________________________________________ 6.5. Similarly add the other required tables/attribute views6.6. Create join for the relevant fields and add the required fields to the outputAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 44 45. ______________________________________________________________ 6.7. Click on Semantics and in the resulting Column window, mark the Attributes and Measures appropriately6.8. Save and activate the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 45 46. ______________________________________________________________ 6.9. Data Preview the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 46 47. ______________________________________________________________ 7. Creating Calculation View Calculation views are created to address complex calculations. Types of calculation view are Graphical & Script. These are required to create when we are working with multiple fact tables, or when joins are not sufficient. The final output of a calculation view can contain attributes, measures and hierarchies. In the below example we have created calculation view to calculate a new commission of an employee by adding $1000 to the existing commission of an employee belonging to a particular department. Implementation: 7.1. Select the package, right click and add a new Calculation ViewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 47 48. ______________________________________________________________ 7.2. Select the SQL Script option in Calculation ViewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 48 49. ______________________________________________________________ 7.3. Select the Script button in Scenario to enter the script for calculation view.7.4. The below script adds $1000 to the commission of employees belonging to the QA department.7.5. Select the Define Output Parameter icon to add outputAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 49 50. ______________________________________________________________ 7.6. Add the required output and define the data type and length for the same. Make sure the data type and length of the fields matches with the data type and length of fields defined in the table7.7. Select the Output button and add the required fields as Attribute and Measures respectively.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 50 51. ______________________________________________________________ 7.8. The above added Attributes and Measures are displayed under their respective headers7.9. Save all the changes7.10. Save and Validate. Activate the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 51 52. ______________________________________________________________ 7.11. Data Preview the Calculation View7.12. Employees belonging to the QA department will get a commision of $1000Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 52 53. ______________________________________________________________ 8. Decision Table Decision table is a way in business rules realm to formulate rules of business, company or corporation in a table structure. Decision table comprises of columns and rows where columns describe the definition and an operation of the rules and rows represents the value associated with these definitions and operations respectively. The columns are thus classified as: 1. Condition Column definition of the rule 2. Action Column - operation to the performed if the conditions are satisfied. In the below example, we are creating decision table for employee payroll having condition for Dept_ID and action as salary increment, i.e. when Dept_ID is D001 the salary of an employee belonging to the Dept D001 will get the commission along with the salary (Salary_Increment = Emp_Salary + Emp_Comm where Dept_ID=D001) Implementation: 8.1. Right-click on the schema. Select New -> Decision Table.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 53 54. ______________________________________________________________ 8.2. Enter Name and Description for the Decision Table and select NextAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 54 55. ______________________________________________________________ 8.3. Perform a search for the required table. Add the F_PAYROLL table created above and select Finish8.4. Add the required fields as AttributeAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 55 56. ______________________________________________________________ 8.5. Add the required attribute as Condition8.6. To add an Action, right click on Parameters and select NewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 56 57. ______________________________________________________________ 8.7. Enter a Name, Description and Data Type for the new Parameter8.8. Add the Parameter as ActionAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 57 58. ______________________________________________________________ 8.9. From the bottom of the canvas, select the Decision Table option8.10. Right-click on the table and select Import Data from ExcelAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 58 59. ______________________________________________________________ 8.11. Create an excel with the same header as the Decision Table and insert values into it. Select this excel as the source to import data8.12. Save and Validate. Activate the view8.13. Navigate to: Catalog ->_Sys_Bic ->Procedures ->yogi/DT_With_Return_ValuesAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 59 60. ______________________________________________________________ 8.14. To preview the data go to : Catalog -> _SYS_BIC -> Column Views -> yogi/ DT_NEW_QA_SALARY. Right-click and select Open Data Preview8.15. The existing EMP_SAL and the new calculated salary NEW_SALARY will be displayedAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 60 61. ______________________________________________________________ 9. Input Parameters Input Parameters are used in Analytical and Calculation views when currency conversion and calculated columns needs to be parameterized. In Calculation views (Graphical and SQL Script based), apart from parameterization, input parameters can also be used to filter data. The default values for Input Parameters can be maintained in the form of Constants or Expression and it is recommended to maintain them. In the below example, we are using Input Parameter in a calculated column to find out gross salary of an employee which is equal to an addition of employee salary and employee commission Implementation: 9.1. Navigate to Analytic View -> Semantics -> Variables/Input Parameters -> Create Input ParameterAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 61 62. ______________________________________________________________ 9.2. Enter a Name, Label, Parameter Type, Data Type, Length and the List of values. Use the Add and Remove buttons to add valuesAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 62 63. ______________________________________________________________ 9.3. Create a calculated columnAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 63 64. ______________________________________________________________ 9.4. Enter the Name, Label, Data Type, Column Type and Expression. Validate the expression. The expression below calculated is the addition of salary and commission The EMP_SAL+EMP_COMM is used to calculate the gross salaryAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 64 65. ______________________________________________________________ 9.5. Validate the expression9.6. Create another calculated columnAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 65 66. ______________________________________________________________ 9.7. The Boolean expression checks the Input Parameter and displays the Final Sal according to the user selectionAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 66 67. ______________________________________________________________ 9.8. Validate the expression9.9. Save and Validate. Activate the view9.10. Data Preview the view. The Input Parameter dialog is displayedAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 67 68. ______________________________________________________________ 9.11. User will be prompted with a dialog that has the Input Parameter. Make a selection and press OK9.12. The EMP_SAL and FINAL_SAL are the same since the user selected EMP_SAL_BASE as the Input Parameter9.13. Refresh the table. This time select EMP_SAL_GROSSAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 68 69. ______________________________________________________________ 9.14. The Calculated gross salary and the Final Salary will be the same in this case.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 69 70. ______________________________________________________________ 10. Currency Conversion In many reporting scenarios, it is often required to display the financial figures in multiple currencies. For example, most of the systems capture the net sales in the local currency of the Store. For the Country level local reporting, it is often required to report the Net sales in the Local currency. But for the Regional Head Quarter reporting, the Net Sales values need to be converted to the Regional currency. The same figure at the Global Head Quarter might be required in the Global currency. While converting the Net Sales from one currency to other, different exchange rates might be applicable. Based on the nature of report and Functional area of the users, the Exchange rate could be Monthly / Yearly Actual or Budgeted. Also depending upon the time, the users may prefer to apply the exchange rate applicable this month, previous month, beginning of this year or even last year. In the below example, for reporting purpose we are converting employee's salary from EUR to USD currency. Implementation: 10.1. Pick a conversion rate to be used.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 70 71. ______________________________________________________________ 10.2. From the AN_EMPLOYE analytic view, select the EMP_SAL field once again10.3. The EMP_SAL is added twice. The 1st one will represent the actual sal and the 2nd the converted currencyAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 71 72. ______________________________________________________________ 10.4. Change the name in Properties. Click on Measure. Select the Browse buttonAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 72 73. ______________________________________________________________ 10.5. Enter the Type, Currency, Target, Exchange Type, Conversion Data, Schema, Client in the resulting window.10.6. Save and Validate. Activate the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 73 74. ______________________________________________________________ 10.7. Data Preview the Table. The actual/base and the currency converted salaries are displayedAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 74 75. ______________________________________________________________ 11. Hierarchy In SAP HANA, we have a choice of creating 2 types of hierarchies: Level Hierarchy Parent Child Hierarchy In Level hierarchy each level represents a position in the hierarchy. For example, a time dimension might have a hierarchy that represents data at the month, quarter, and year levels. Each level above the base (or most detailed) level contains aggregate values for the levels below it. Hierarchies and levels have a many-to-many relationship. A hierarchy typically contains several levels, and a single level can be included in more than one hierarchy. In the below example, we have created level hierarchy at 3 levels - department, employee manager and employee name. The result will display all the employee names reporting to a manager belonging to a particular department. Implementation: 11.1. Select the AN_DEPARTMENT attribute view. From Semantics ->Hierarchies, click on the + signAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 75 76. ______________________________________________________________ 11.2. Enter a Name, Label and elements. Enter the elements in the order you want the hierarchy to be in at Department level11.3. Save and Validate. Activate the ViewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 76 77. ______________________________________________________________ 11.4 Create an analytic view. Right-click on the package and select New -> Analytic View11.5. Enter a Name and Description. Click FinishAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 77 78. ______________________________________________________________ 11.6. Add the attribute view created above to the Data Foundation. Add the Employee table to Data Foundation. While the AT_DEPARTMENT has the hierarchy, the EMPLOYEE table has the measures11.7. Add the required fields to output from the EMPLOYEE table on to logical joinAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 78 79. ______________________________________________________________ 11.8. Link the fact and dimension table11.9. Save and Validate. Activate the viewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 79 80. ______________________________________________________________ 11.10. Data Preview the Analytic ViewAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 80 81. ______________________________________________________________ 11.11. Launch Excel. Go to: Data -> From Other Sources -> From Data Connection Wizard11.12. Select Other/AdvancedAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 81 82. ______________________________________________________________ 11.13. Select SAP HANA MDX ProviderAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 82 83. ______________________________________________________________ 11.14. Enter the Host, Instance Number, credentials, Language and test the connectionAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 83 84. ______________________________________________________________ 11.15. Browse and select your package followed by selecting your Analytic View. Click NextAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 84 85. ______________________________________________________________ 11.16. Select Save password in file. Click FinishAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 85 86. ______________________________________________________________ 11.17. Select the desired cell where you would like the pivot table11.18. Select the fields to add in the hierarchy reportAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 86 87. ______________________________________________________________ 11.19. Select the Values to drill-down the hierarchyAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 87 88. ______________________________________________________________ 12. Functions Scalar UDFs are user-defined functions which accept multiple input parameters and result exactly one scalar value. These functions allow the developer to encapsulate complex algorithms into manageable, reusable code which can then be nested within the field list of a SELECT statement. In the below example, we have created a Function to give $1000 holiday bonus to all the employees. Implementation: 12.1. Expand your schema. Right-click on the Functions folder and select SQL consoleAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 88 89. ______________________________________________________________ 12.2. Enter the code for the function. The below code takes the user input for holiday bonus and adds it to EMP_COMM12.3. Pass a parameter and execute (F8)12.4. A $1000 holiday bonus will be added to all employeesAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 89 90. ______________________________________________________________ 13. Procedure Procedures describe a sequence of data transformations on data passed as input and database tables. Data transformations can be implemented as queries that follow the SAP HANA database SQL syntax by calling other procedures. Read-only procedures can only call other read-only procedures. In the below example, we have created a procedure to give a bonus as 10% increase in salary for all the employees. Implementation: 13.1. Right-click on the package and select New -> ProcedureAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 90 91. ______________________________________________________________ 13.2. Enter a Name and Description for the procedure. Change the Default Schema if required.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 91 92. ______________________________________________________________ 13.3. Enter the code for the procedure. The below code adds a 10% salary for employees13.4. Save and Validate. Activate the Procedure13.5. Expand _SYS_BIC -> Procedures. The procedure we created will be present hereAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 92 93. ______________________________________________________________ 13.6. Call the procedure13.7. A 10% salary increase will be added to all employeesAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 93 94. ______________________________________________________________ 14. Database Triggers A database trigger is a piece of code that updates a database automatically in response to a certain event. In the below example, when a new record is inserted into WAGE_TYPE table our code will insert a new row in the NEW_WAGETYPE_AUDIT table Implementation: 14.1. Right-click on your schema and select Create table14.2. Create a table (NEW_WAGETYPE_AUDIT) with the required fields, data type and length. Assign the keysAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 94 95. ______________________________________________________________ 14.3. Data preview the table. The table wont have any data yetAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 95 96. ______________________________________________________________ 14.4. Enter the code for the trigger. The code below will insert a row in the NEW_WAGETYPE_AUDIT table every time a record is inserted in the WAGETYPE table14.5. Insert a record in the WAGETYPE tableAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 96 97. ______________________________________________________________ 14.6. Data preview the WAGETYPE table. The new record will be present14.7. Data preview the NEW_WAGETYPE_AUDIT table. The current user and the timestamp values will be populatedAuthor: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 97 98. ______________________________________________________________Disclaimer: This description is a preliminary version and not subject to a license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this preview is subject to change and may be changed by SAP at any time without notice. SAP/We assume no responsibility for errors or omissions in this document. SAP/We does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. This preview is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or noninfringement. SAP/We shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence. The statutory liability for personal injury and defective products is not affected.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 98 99. ______________________________________________________________ SAP Community Contributors: Author :Chief Architect :Yogendra VaithilingamJothi PeriasamySAP HANA/EPM Solutions ExprtSAP HANA/EPM/BI/EIM Community LeaderSAP BPC Solutions LeadSAP BPC/BOBJ/BI/MDM Community Domain [email protected]@gmail.com, (916)-296 0228 - CellWe always appreciate your help and support in growing SAP HANA/EPM/BI/EIM community. Dont hesitate to contact us for any of your needs, including: SAP HANA Use Cases SAP HANA Design SAP HANA Data Model SAP BPC on HANA Solution Architecture Rolling Forecast SKU-Level/Top-Down Planning Consolidation Planning Budgeting etc.Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 99 100. ______________________________________________________________ Our Upcoming Community Knowledgebase: We are very happy to share with you about upcoming community contribution. We are in the process of publishing the following article within a month period. SAP HANA Data Management and Data Integration Leveraging SAP BusinessObjects Data Services (BODS) Preparing Financial Statements on SAP BPC Enabled Through SAP HANA InMemory Computing SAP EPM 10.0 Reporting User Guide Anything and Everything You Need to Know About EPM ReportingOur Social Learning Community: We are so excited to be part of these one hundred thousand (100K) community contributors. Our community has been growing rapidly. Thanks for your help and continues support!Author: Yogendra Vaithilingam SAP BPC Consultant SAP EPM Community Member [email protected] EPM/HANA Community Service 11/28/2013Chief Architect: Jothi Periasamy SAP HANA/EPM/BI/EIM Community Leader SAP BPC/BOBJ/BI/MDM Domain Champion [email protected], (916)-296-0228 - CellCloneSkills, Inc., http://www.CloneSkills.com , [email protected] , 1.800.836.8959, Page - 100