Beruflich Dokumente
Kultur Dokumente
Aggregation
March 2003
Introduction – The Role of the OLAP Engine
Business
Basic Explorer
InfoCube
With Data
InfoProvider Interface
Master Data
OLAP
MultiProvider Engine
ODS Object
No Data
Virtual
InfoCube
InfoSet
Example:
Department Headcount Month Headcount
D1 100 1/3/03 160
D2 80 2/3/03 180
Result 180 << SUM Result 170 << AVG, with regards to Month
Dr
illd
ow
n
Calculation Steps
Aggregate values
using standard
Dr aggregation
illd
ow
n Aggregate values
using exception
aggregation
Drill-down by Material
explains result
309 = ( 225 + 20 + 630
+ 360) / 4
PROPERTIES
Check Authorizations
Is it ok to execute query?
Is it ok to read data from InfoProvider?
Process Variables
Exit for global variables (before variable input) is processed
Prompt for variable input
Exit for global variables (that failed before input) is processed
Variable values are distributed to fixed filter, hierarchy settings, dynamic
filter, conditions & exceptions, formulas, …
Initialize OLAP Processor
Notify Presentation hierarchies (if used)
Check time stamps for OLAP cache (and release respective Ids)
KH_ATTRIBUTE_REPLACEMENT
Calendar year
Key Figures Quantity, CKF (QU * PR)
KHMAT2
KH_ATTRIBUTE_REPLACEMENT
Calendar year
Key Figures Quantity, CKF (QU * PR)
KHMAT2
InfoCube Definition
“Price” Attributes
InfoCube Definition
InfoCube
Material Master
Crea
te
Formula Editor
Cre Properties
ate
“Price”
OLAP Processor
Query Definition Explanation
Quantity = AVG, CKF, Before
OLAP Processor
Explanation
Quantity = SUM, CKF, After
OLAP Processor
Explanation
Quantity = SUM, CKF, After Qu * Pr = Formula
OLAP Processor
Explanation
Quantity = SUM, CKF, After Qu * Pr = CKF
KHMAT2
KHMAT2 Calendar year Quantity 'Quantity' % 10 'Quantity' %A 10 %CT 'Quantity' %GT 'Quantity' %RT 'Quantity'
M1 2001 5.000 PC -50.00000 % 50.00000 % 45.45455 % 19.23077 % 19.23077 %
2002 6.000 PC -40.00000 % 60.00000 % 54.54545 % 23.07692 % 23.07692 %
Result 11.000 PC 10.00000 % 110.00000 % 42.30769 % 42.30769 % 42.30769 %
M2 2001 7.000 PC -30.00000 % 70.00000 % 46.66667 % 26.92308 % 26.92308 %
2002 8.000 PC -20.00000 % 80.00000 % 53.33333 % 30.76923 % 30.76923 %
Result 15.000 PC 50.00000 % 150.00000 % 57.69231 % 57.69231 % 57.69231 %
Overall Result 26.000 PC 160.00000 % 260.00000 % 100.00000 % 100.00000 % 100.00000 %
KHMAT2 M1
Calendar year Quantity 'Quantity' % 10 'Quantity' %A 10 %CT 'Quantity' %GT 'Quantity' %RT 'Quantity'
2001 5.000 PC -50.00000 % 50.00000 % 45.45455 % 45.45455 % 19.23077 %
2002 6.000 PC -40.00000 % 60.00000 % 54.54545 % 54.54545 % 23.07692 %
Overall Result 11.000 PC 10.00000 % 110.00000 % 100.00000 % 100.00000 % 42.30769 %
SUMGTa
The value of the key figure a is related to the aggregate value via all characteristics.
Aggregation is completed using the deepest-level characteristic.
SUMCTa
The value of the key figure a is related to the next highest aggregate value.
SUMRTa
The value of the key figure a is related to the aggregate value of all characteristics in
which the dynamic filter is ignored.
KHMAT2
KHMAT2 Calendar year Quantity SUMCT 'Quantity' SUMGT 'Quantity' SUMRT 'Quantity'
M1 2001 5.000 PC 11.000 PC 26.000 PC 26.000 PC
2002 6.000 PC 11.000 PC 26.000 PC 26.000 PC
Result 11.000 PC 26.000 PC 26.000 PC 26.000 PC
M2 2001 7.000 PC 15.000 PC 26.000 PC 26.000 PC
2002 8.000 PC 15.000 PC 26.000 PC 26.000 PC
Result 15.000 PC 26.000 PC 26.000 PC 26.000 PC
Overall Result 26.000 PC 26.000 PC 26.000 PC 26.000 PC
KHMAT2 M1
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.