olap business scenarios
TRANSCRIPT
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 1
OLAP Business ScenariosStefan BiedensteinDevelopment Architect BI, SAP AGBarbara NeumannProduct Manager BI, SAP AG
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 2
Learning Objectives
As a result of this workshop, you will be able to:
Precalculate a value set and use it via a variable within a queryCheck the definition of any key figure in a query result (on the Web) using the Explain QueryUse the function Constant SelectionCreate a scenario to display slow-moving articlesUse the functions of internal business volume elimination
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 2
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 3
Agenda
Precalculated value sets
Explain query
Constant Selection
Slow-moving articles
Elimination of internal business volume
Exercises
Summary
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 4
Precalculated Value Sets
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 3
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 5
Precalculated Value Sets - Overview
Business case: use a very expensive query (e. g. Top N with a lot of customers) as the input for another query
Possible in 2.x with the pre-query functionality, but problems with performance
Solution in 3.0: precalculate the input query with the Reporting Agentuse result as input of the second query by defining a corresponding variable
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 6
Precalculated Value Sets – Value Set Query
Create a query that displays the Top 10 Ship-to parties based on the open orders.
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 4
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 7
Precalculated Value Sets - Reporting Agent Settings
Select Characteristic
Select Query
Technical name to be used
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 8
Precalculated Value Sets – Variable Definition
Create a new variable for Ship-to PartyProcessing by User entry / default valueVariable representsPrecalculated ValueSetVariable is mandatoryVariable ready forinput only if there areseveral precalculatedvalue sets
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 5
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 9
Precalculated Value Sets
Demo
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 10
Explain Query
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 6
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 11
Explain Query - Overview
With BW 3.0 and above, highly sophisticated calculations can be done within a query:
Complex Calculated Key Figures
Restricted Key Figures
Calculations for single cells in a query result using the Cell Editor
Constant Selection
The function of the Explain Query allows the user to analyze the calculations for the values in each single cell of a query on the Web.
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 12
Explain Query – Analysis of a Key Figure Value
Example for the analysis of a value calculated with a formula based on a reference cell
Use “Key Figure Definition”from the enhanced context menu to analyze the calculation behind the cell value
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 7
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 13
Explain Query – Enhanced Analysis
Expand the Request ID within the Explain Query to check the topicality of the data
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 14
Explain Query
Demo
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 8
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 15
Constant Selection
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 16
Constant Selection - Overview
In the Query Designer, you select the data you want to show during the runtime of the report. You can use navigation and filtering to make further changes to the selection during runtime (the selection is restricted further).
The new version of the Query Designer allows you to specify a constant selection. This means that navigation or filtering has no effect on the selection during runtime. Thus, you can easily select reference values that remain unchanged during runtime.
The constant selection is very helpful, for example, in market share calculations. In a product list (product in drilldown), you do not want to see the absolute sales revenue, but rather the sales revenue in relation to a specific region.
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 9
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 17
Market Share Analysis Without Constant Selection
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 18
Market Share with Constant Selection (I)
It is possible to define parts of the selections (individual characteristics and their filter values) as constant.
Only the InfoObject in this selection remains constant during navigation and filtering. In the Selection Editor, you can select an InfoObject as a constant in the context menu.
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 10
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 19
Market Share with Constant Selection (II)
Result: Market Share afterfiltering three material values
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 20
Market Share with Global Constant Selection (I)
You can define the complete selection of a restricted key figure as constant by using the properties dialog of the restricted key figure.
The key figure will not be affected by navigation in the query.
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 11
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 21
Market Share with Global Constant Selection (II)
.
.
.
Market Share (World) After Filtering Three
Material Values
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 22
Constant Selection
Demo
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 12
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 23
Slow-Moving Articles
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 24
Slow-Moving Articles - Overview
Business scenario: display articles that weren’t sold at all or only in very low quantities
Solution in BW 3.0:Use the new functionality ‘InfoObject as InfoProvider’Use an InfoObject as one component of a MultiProviderUse the new functionality ‘Constant Selection’Use the new functionality ‘Display values not posted’Set a condition to display only the slow-moving articles
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 13
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 25
Slow-Moving Articles - InfoObject as InfoProvider
In the InfoObjectmaintenance, choosethe tabstrip “Master data/texts“.Enable the InfoObjectas InfoProvider bysetting the flag and assigning it to an InfoArea.
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 26
Slow-Moving Articles - Row Counter For Tabular Data
In each tabular InfoProvider the generic key figure 1ROWCOUNT is automatically visible
1ROWCOUNT counts the number of rows in a tabular InfoProvider
Tabular InfoProviders are:ODSInfoObject
The row counter is a key figure in a tabular InfoProvider, thus providing the opportunity for efficient counting in a MultiProvider
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 14
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 27
Slow-Moving Articles - Create MultiProvider
Create a MultiProvider.It must contain themaster dataInfoObject and theInfoCube to whichthe master dataInfoObject belongs.
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 28
Step I: Create a Query using Number of Records
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 15
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 29
Step I: Execute Query using Number of Records
Query shows Sold-to party coming from InfoCube and InfoObject Sold-to party
The key figure Number of Records is filled from the InfoObject Sold-to party
Cal. Year/Month is not an attribute of InfoObject Sold-to party
Setting a filter on Cal. Year/Month removes the characteristic values and the key figure values coming only from InfoObject Sold-to party
Query: PM_ROW_CT/PM_EMPTY_1
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 30
Constant Selection on Master Data InfoProvider
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 16
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 31
Slow-Moving Articles – Settings for 0INFOPROV
Characteristic 0INFOPROV is automatically added to each MultiProvider
Constant Selection on this characteristic has a special semantic:
Constant Selection:
Select key figure values ignoring all selections on missing characteristics in this InfoProvider
Display Values Not Posted:
Select characteristic valuesignoring all selections on missing characteristics in this InfoProvider
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 32
Step II: Query with Constant Selection
This query is set up with constant selection for Number of Records
As opposed to the 1st step, the values for Number of Records are shown even after filtering for Cal. Year/Month
Query: PM_ROW_CT/PM_EMPTY_2
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 17
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 33
Step III: Query with ‘Display values not posted’
This query is set up with constant selection and display values not posted for Number for Records
A selection on Cal. Year/Month does not have any effect on records coming from InfoObject Sold-to party
Query: PM_ROW_CT/PM_EMPTY_3
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 34
Step IV: Execute Query with Condition
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 18
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 35
Slow-Moving Articles
Demo
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 36
Elimination of Internal Business
Volume
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 19
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 37
Elimination of Internal Business Volume - Overview
The elimination functionality supports the accounting principles of multi-entity consolidation for multiple simultaneous hierarchies.
BW eliminates the Key Figure value; this is different from legalconsolidation, which is provided in SEM-BCS.
Prerequisites:Two Characteristics: Sender and Receiver, sharing the same Master Data
Some examples are Sending Cost Center <-> Receiving Cost CenterBusiness Area <-> Partner Business Area
A special Reference Key Figurestores the result after eliminationis created with reference to the key figure to be eliminatedis added to the InfoCube definition, but not stored in database
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 38
Maintenance of Elimination Rules
Insert the elimination rules on the tab strip „Elimination“ in the InfoObject maintenance in the Administrator Workbench.
To establish the elimination of internal business volume, you have to enter the elimination rules on the additional tab strip “Elimination”.
Special key figure created with reference to the key figure to be eliminated
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 20
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 39
Elimination of Internal Business Volume - Example
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 40
Example: Explanation of eliminated values
ExternalInternal
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 21
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 41
Important OSS Note on Performance: 630502
When you execute a query that uses a key figure with the elimination of internal business volume, the internal business volume-relevant characteristics are always read at leaf level. Hierarchy level aggregates therefore cannot be used in this case. Furthermore, memory consumption can increase significantly.
To avoid these performance issues, please read note 630502.
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 42
Elimination of Internal Business Volume
Demo
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 22
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 43
Summary
Now you are able to:
Precalculate a value set and use it via a variable within a queryCheck the definition of any key figure in a query result (on the Web) using the ExplainQueryUse the function Constant SelectionCreate a scenario to display slow-moving articlesUse the functions of internal business volume elimination
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 44
Further Information
Public Web:www.sap.com/biSAP Customer Services Network: www.sap.com/services/
Related SAP Education Training Opportunitieshttp://www.sap.com/education/BW305, Reporting and Analysis, BW 315 Reporting ManagementBW330, Modeling
Consulting ContactRoy Wood, VP SAP NetWeaver Consulting Practice ([email protected])
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 23
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 45
Q&A
Questions?
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 46
Please complete your session evaluation anddrop it in the box on your way out.
Feedback
Thank You !
The SAP TechEd ’03 Basel Team
SAP TechEd ‘03 Basel
© 2003 SAP AG BW 351 Biedenstein/Neumann 24
SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 47
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, R/3, mySAP, mySAP.com, xApps, xApp and other SAP products and services mentioned herein as well astheir 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 the trademarks of their respective companies.
Copyright 2003 SAP AG. All Rights Reserved