Modeling Aggregates - SAP BW|SAP BOBJ|SAP xCelsius ... · PDF fileMODELING AGGREGATES A DEEP DIVE INTO MODELING AGGREGATES SAP BW CONSUL TING, INC. Authors: Lonnie

Embed Size (px)

Citation preview

  • MODELING AGGREGATES

    A DEEP DIVE INTO MODELING AGGREGATES

    S A P B W C O N S U L T I N G , I N C .www.SAPBWConsult ing.com

    A u t h o r s : L o n n i e Ay e r s , D o u g Ay e r s , Vi c t o r Ay e r s

    7 2 5 6 K e i t h D o n a l d s o n R d , F r e e t o w n , I N 4 7 2 3 5 Te l e p h o n e : 8 1 2 . 3 4 0 . 5 5 8 1 w w w. S A P B W C o n s u l t i n g . c o m

    http://www.SAPBWConsulting.comhttp://www.SAPBWConsulting.comhttp://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-how-to-build-multiproviders-and-infosets/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-how-to-build-multiproviders-and-infosets/http://www.SAPBWConsulting.comhttp://www.SAPBWConsulting.com

  • Table of Contents

    Model Aggregates! 1

    Overview! 1

    Aircraft Industry-Common BW User! 1

    Knowledge! 1

    BW Consulting Skillsets! 1

    About SAP BW Consulting, Inc.! 1

    Introduction to Aggregates! 2

    Granularity! 5

    Rollup Hierarchy! 14

    Aggregate Relevant Tables! 21

    SAP BW Transaction Codes! 21

    Some Useful R/3 (ECC) Transaction Code for BW Consultants! 24

    Glossary! 27

    O r g a n i z a t i o n N a m e! P r o p o s a l Ti t l e

    i

  • Model AggregatesOverview

    As part of our series on SAP BW Data Modeling, we next cover the subject of how to Model Aggregates. In this guide we cover:

    Granularity

    Business Warehouse Aggregates

    Partitioning

    Performance in General

    In order to get the greatest value from this short guide, you need knowledge of a specific industry, such as the aircraft industry, knowledge of datawarehouse concepts, and a variety of SAP Business Warehouse Skillsets.

    Aircraft Industry-Common BW User Knowledge

    BW Consulting Skillsets

    About SAP BW Consulting, Inc.

    SAP BW Consulting, Inc. is one of the fastest growing Business Intelligence consultancies. Our focus is on delivering value to our customers and providing a challenging set of projects for consultants. Our approach is based upon con-tinuous education of our consultants, ourselves, and our customers.

    Industry Focus

    We bring more than 70 years of combined Industry Experience spanning the Military Logistics arena, Automotive Real Time embedded system, High-Tech Manufacturing, NASA and other government organizations, Rail, Airlines, Manufacturing, Consumer Packaged Goods (CPG), Airports and pharmaceuticals.

    Modeling Aggregates

    S A P B W C o n s u l t i n g , I n c .

    S h a r e o n F a c e b o o k P o s t o n L i n k e d I N Tw e e t T h i s G u i d e!

    1

    http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/https://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consultinghttps://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consulting

  • Introduction to Aggregates

    The single most important decision the SAP BW data modeler makes that drives performance is the level of granular-ity.

    In order to manage large fact tables, SAP BW uses aggregates.

    Other performance techniques are available as well, including partitioning of the tables, for example, into years.

    When you finish this guide, you should be able to do the following:

    Explain what an aggregate is and what it does.

    Create aggregates using both the automated tools available from SAP and manually based on your analysis re-sults

    Use aggregates to make reporting faster

    Understand how to maintain table spaces of aggregates in order to ensure faster reporting

    Decide on other performance enhancement techniques

    Modeling Aggregates

    S A P B W C o n s u l t i n g , I n c .

    S h a r e o n F a c e b o o k P o s t o n L i n k e d I N Tw e e t T h i s G u i d e!

    2

    http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/https://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consultinghttps://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consulting

  • Modeling Aggregates

    S A P B W C o n s u l t i n g , I n c .

    S h a r e o n F a c e b o o k P o s t o n L i n k e d I N Tw e e t T h i s G u i d e!

    3

    http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/https://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consultinghttps://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consulting

  • Depending upon the amount history required, ODS (Operational Data Stores in SAP BW 3.X and DSO (Data Store Objects in 7.X) ) must be considered. A typical use case would be to use a DSO to capture the last 3 months of line item detail but use an InfoCube to store the aggregated 5 year view.

    The first step is to model a business process such as cost center accounting, sales, Human Resources or purchase orders. Typically, several InfoCubes would be used for each process.

    Then, decide on what system users should to go for line item detail vs. summarized data such as BW or R/3 (ECC). Archiving strategies can and should be a factor in this decision.

    For each InfoCube, decide on the 13 freely defined dimensions and which characteristics to put in each one. Keep in mind that any InfoObject in a dimension will then be updated via transaction data loads. That data will reflect characteristic relationships that exist in that data or are generated in the update rules.

    The measured facts are the KPIs (Key Performance Indicators) that are relevant for the business process. For example, 0QUANTITY and 0AMOUNT for the sales order process. These are also referred to as key figures and statistics.

    Modeling Aggregates

    S A P B W C o n s u l t i n g , I n c .

    S h a r e o n F a c e b o o k P o s t o n L i n k e d I N Tw e e t T h i s G u i d e!

    4

    http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/https://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consultinghttps://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consulting

  • GranularityGranularity is a term that describes how detailed a database is in a data warehousing context.

    Data that is highly granular or has high granularity is very detailed data, meaning that there are a large number of characteristics describing the key figures.

    A typical example would be that a by customer level of granularity is less detailed than by customer, by ma-terial, because a customer may have bought many materials but is still just one customer.

    Granularity is the fundamental criteria that determines the extent to which you are able to drill down on the data.

    Granularity also affects the size of the database. Data that is stored by Passenger, by month is much more summarized than by Passenger, by Class, by Route. The quantity of data that is generated over the course of a year for the first case is much less than for the second case.

    Modeling Aggregates

    S A P B W C o n s u l t i n g , I n c .

    S h a r e o n F a c e b o o k P o s t o n L i n k e d I N Tw e e t T h i s G u i d e!

    5

    http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.facebook.com/share.php?u=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/http://www.linkedin.com/shareArticle?mini=true&url=http://www.sapbwconsulting.com/learn-to-model-SAP-BW-Aggregates/https://twitter.com/intent/tweet?text=Learn+SAP+BW+Aggregate+Modeling+Guide+from+SAP+BW+Consultinghttps://twitter.com/intent/twe