Professional Documents
Culture Documents
information and
INFORMATION INTEGRATION
processes…
Bus. Intelligence Knowledge Mgmt
Aggregates Concepts
Building Aggregates
Aggregate Maintenance
Aggregates Concepts
Building Aggregates
Aggregate Maintenance
BW Reporting Performance
Aggregates
Pre-calculated Web Templates
OLAP Cache
least
fastes
Offline Documents
reusa
Portal Cache t iViews
ble
Performance
Pre-Calculation Cluster tables
Reuse
Aggregates DB tables/MOLAP
most
InfoCubes DB tables/Indexes
Less
reusa
fast
le b
© 2002 SAP Labs, LLC, Session ID, Speaker Name 6
Aggregates: Definition & Purpose
Front-end
Analyzer Display
and Manipulation
Query
Definition (BEx) Current Query View
BW Server 1
OLAP Processor
Transparency
Local OLAP Cache
2
4 3
Global OLAP Cache
Aggregates
InfoProvider on Database
on Database (if applicable)
Defining Aggregates
InfoCube
InfoCube Sales
SalesData
Data Aggregate
Aggregate Sales
SalesData
Data
InfoCube
InfoCube Sales
SalesData
Data Aggregate
Aggregate Sales
SalesData
Data
Navigational
NavigationalAttribute
Attributefor
for
Characteristic Customer
Characteristic Customer
Customer Industry
InfoCube
InfoCube Sales
SalesData
Data Aggregate
Aggregate Sales
SalesData
Data
Master
MasterData
DataTable:
Table: Country
Country
InfoCube
InfoCube Sales
SalesData
Data Aggregate
Aggregate Sales
SalesData
Data
Hierarchy
Hierarchyfor
forCountry
Country
All
Time-independent
Europe America hierarchies are stored
outside the dimension, in
this example, in a table
Germany Austria USA called /BI0/ICOUNTRY
InfoCube
InfoCube Sales
SalesData
Data Aggregate
Aggregate Sales
SalesData
Data
Country Customer Sales Country
Country H,
H,Level
Level22
Query
Aggregate 1 Aggregate 2
InfoCube
Aggregates Concepts
Building Aggregates
Aggregate Maintenance
Suggestion based on
the InfoCube BW
Statistics
Proposals can be
restricted to queries
with a minimum runtime
Aggregate
definition is
checked
automatically
Proposals can be
restricted to specific
queries; mark all (used
queries) if you want to
get general suggestions
Number of Usage
Records
InfoCube
InfoCube
Second drilldown may have
to read a large structure
but with increasing filter
restrictions
Amount of data
that has to be read InfoCube InfoCube
© 2002 SAP Labs, LLC, Session ID, Speaker Name 30
Building Good Aggregates
Exceptions:
A large aggregate containing navigational attributes may benefit
performance despite its size (but remember the tradeoff)
Basis Aggregate may be large and may not be used for reporting but
still be useful for maintenance
Aggregates Concepts
Building Aggregates
Aggregate Maintenance
Scenario
Find out the queries with the worst performance and try to optimize them.
Useful Features
Expert Mode
BW System Load Analysis of table RSDDSTAT
High % DB
Time
Double Click
No of Highest
runs DB time
Drill down – check if there is any single query that could be the major Low
Front-end
contributor. Where is the major contribution coming from?
time
Example shows an active query, high DB time, with low OLAP & front-
end time.
© 2002 SAP Labs, LLC, Session ID, Speaker Name 35
How to Tell if an Aggregate Will Help
Table RSDDSTAT
BW Statistics
Queries of BW STATISTICS
Using table RSDDSTAT as InfoSource
BW Workload Analysis – ST03
Collecting information
from table RSDDSTAT
Debug Option
Structure to be
read (InfoCube Available
or Aggregate) Aggregates
Activates logging
for specific user id
RSRTRACE
Displays all
existing logs
Deactivates
logging for
user id
User already
activated for
logging
Aggregates Concepts
Building Aggregates
Aggregate Maintenance
Period of time
00 02 04 06 08 10 12 14 16 18 20 22 24
maintenance Upload Reporting
3 hours
data load
Aggregate
7 hours available
for aggregate
maintenance
Period of time
00 02 04 06 08 10 12 14 16 18 20 22 24
maintenance Upload Reporting
Definition: Rollup
To apply the newly loaded transaction data to the aggregate
Roll-up
The roll-up process populates all aggregates of an InfoCube
with the newly loaded delta load
Basic Rule: InfoCube and all depending aggregates must be
in-sync, i.e. you must see the same data no matter if it has
been derived from the InfoCube or the aggregate
Newly loaded data is not available for reporting until it has
been rolled up into the aggregates
Aggregate Hierarchy
Aggregates can be built out of other aggregates to reduce the
amount of data to be read and, hence, to improve the roll-up
performance
Aggregate hierarchy is determined automatically
General Guideline: define few basis (large) aggregates and
many small aggregates that can be built from the hierarchy
level before
Display aggregate
hierarchy
{Material,
Material
Basic InfoCube Group,
Customer,
Day}
{Material
Few large Group,
basis Customer,
aggregates Day}
{Material
Many small
Group,
aggregates
Month}
Change Run
Aggregates can contain
Dimension Characteristics
Navigational Attributes
Hierarchy Levels
When master data changes, the changes of the
navigational attributes/hierarchies must be applied to the
depending aggregates; this process is called change run
Newly loaded master data is not active until the change
run has been applied the changes to all aggregates
Threshold for delta and new build-up in customizing
The Change Run can be parallelized across InfoCubes;
see SAP note 534630 for more details
Check aggregate hierarchy (see Roll-Up for more details)
Try to build basis aggregates that are not affected by the
change run, i.e. no navigational attributes nor hierarchy
levels
Q&A
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express
permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other
software vendors.
Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® and SQL Server® are registered trademarks of
Microsoft Corporation.
IBM®, DB2®, DB2 Universal Database, OS/2®, Parallel Sysplex®, MVS/ESA, AIX®, S/390®, AS/400®, OS/390®,
OS/400®, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere®, Netfinity®, Tivoli®,
Informix and Informix® Dynamic ServerTM are trademarks of IBM Corporation in USA and/or other countries.
ORACLE® is a registered trademark of ORACLE Corporation.
UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of the Open Group.
Citrix®, the Citrix logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® and
other Citrix product names referenced herein are trademarks of Citrix Systems, Inc.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World Wide Web Consortium,
Massachusetts Institute of Technology.
JAVA® is a registered trademark of Sun Microsystems, Inc.
JAVASCRIPT® is a registered trademark of Sun Microsystems, Inc., used under license for technology invented
and implemented by Netscape.
MarketSet and Enterprise Buyer are jointly owned trademarks of SAP AG and Commerce One.
SAP, SAP Logo, R/2, R/3, mySAP, mySAP.com and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other
countries all over the world. All other product and service names mentioned are trademarks of their respective
companies.
Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher
Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch SAP AG nicht gestattet. In dieser
Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.
Die von SAP AG oder deren Vertriebsfirmen angebotenen Softwareprodukte können Softwarekomponenten auch
anderer Softwarehersteller enthalten.
Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der
Microsoft Corporation.
IBM®, DB2®, DB2 Universal Database, OS/2®, Parallel Sysplex®, MVS/ESA, AIX®, S/390®, AS/400®, OS/390®,
OS/400®, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere®, Netfinity®, Tivoli®, Informix
und Informix® Dynamic ServerTM sind Marken der IBM Corporation in den USA und/oder anderen Ländern.
ORACLE® ist eine eingetragene Marke der ORACLE Corporation.
UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group.
Citrix®, das Citrix-Logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® und
andere hier erwähnte Namen von Citrix-Produkten sind Marken von Citrix Systems, Inc.
HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium,
Massachusetts Institute of Technology.
JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc.
JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von
Netscape entwickelten und implementierten Technologie.
MarketSet und Enterprise Buyer sind gemeinsame Marken von SAP AG und Commerce One.
SAP, SAP Logo, R/2, R/3, mySAP, mySAP.com und weitere im Text erwähnte SAP-Produkte und -Dienst-leistungen
sowie die entsprechenden Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und anderen
Ländern weltweit. Alle anderen Namen von Produkten und Dienstleistungen sind Marken der jeweiligen Firmen.