Vous êtes sur la page 1sur 24

SAP TechEd ‘03 Basel

OLAP Business
Scenarios
Stefan Biedenstein
Development Architect BI, SAP AG
Barbara Neumann
Product Manager BI, SAP AG

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
query
Check the definition of any key figure in a query result (on
the Web) using the Explain Query
Use the function Constant Selection
Create a scenario to display slow-moving articles
Use the functions of internal business volume elimination

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 2

© 2003 SAP AG BW 351 Biedenstein/Neumann 1


SAP TechEd ‘03 Basel

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 / 3

Precalculated Value
Sets

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 4

© 2003 SAP AG BW 351 Biedenstein/Neumann 2


SAP TechEd ‘03 Basel

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 Agent
use result as input of the second query by defining a corresponding
variable

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 5

Precalculated Value Sets – Value Set Query

Create a query that displays the Top 10 Ship-to parties based on


the open orders.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 6

© 2003 SAP AG BW 351 Biedenstein/Neumann 3


SAP TechEd ‘03 Basel

Precalculated Value Sets - Reporting Agent Settings

Select Characteristic

Select Query

Technical name to be used

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 7

Precalculated Value Sets – Variable Definition

Create a new variable


for Ship-to Party
Processing by User
entry / default value
Variable represents
Precalculated Value
Set
Variable is mandatory
Variable ready for
input only if there are
several precalculated
value sets

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 8

© 2003 SAP AG BW 351 Biedenstein/Neumann 4


SAP TechEd ‘03 Basel

Precalculated Value Sets

Demo

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 9

Explain Query

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 10

© 2003 SAP AG BW 351 Biedenstein/Neumann 5


SAP TechEd ‘03 Basel

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 / 11

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 AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 12

© 2003 SAP AG BW 351 Biedenstein/Neumann 6


SAP TechEd ‘03 Basel

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 / 13

Explain Query

Demo

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 14

© 2003 SAP AG BW 351 Biedenstein/Neumann 7


SAP TechEd ‘03 Basel

Constant Selection

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 15

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 AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 16

© 2003 SAP AG BW 351 Biedenstein/Neumann 8


SAP TechEd ‘03 Basel

Market Share Analysis Without Constant Selection

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 17

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 AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 18

© 2003 SAP AG BW 351 Biedenstein/Neumann 9


SAP TechEd ‘03 Basel

Market Share with Constant Selection (II)

Result: Market Share after


filtering three material values

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 19

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 AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 20

© 2003 SAP AG BW 351 Biedenstein/Neumann 10


SAP TechEd ‘03 Basel

Market Share with Global Constant Selection (II)

Market Share (World)


After Filtering Three
Material Values

.
.
.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 21

Constant Selection

Demo

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 22

© 2003 SAP AG BW 351 Biedenstein/Neumann 11


SAP TechEd ‘03 Basel

Slow-Moving
Articles

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 23

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 MultiProvider
Use the new functionality ‘Constant Selection’
Use the new functionality ‘Display values not posted’
Set a condition to display only the slow-moving articles

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 24

© 2003 SAP AG BW 351 Biedenstein/Neumann 12


SAP TechEd ‘03 Basel

Slow-Moving Articles - InfoObject as InfoProvider

In the InfoObject
maintenance, choose
the tabstrip “Master
data/texts“.
Enable the InfoObject
as InfoProvider by
setting the flag and
assigning it to an
InfoArea.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 25

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:


ODS
InfoObject

The row counter is a key figure in a tabular InfoProvider, thus


providing the opportunity for efficient counting in a MultiProvider

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 26

© 2003 SAP AG BW 351 Biedenstein/Neumann 13


SAP TechEd ‘03 Basel

Slow-Moving Articles - Create MultiProvider

Create a
MultiProvider.
It must contain the
master data
InfoObject and the
InfoCube to which
the master data
InfoObject belongs.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 27

Step I: Create a Query using Number of Records

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 28

© 2003 SAP AG BW 351 Biedenstein/Neumann 14


SAP TechEd ‘03 Basel

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 / 29

Constant Selection on Master Data InfoProvider

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 30

© 2003 SAP AG BW 351 Biedenstein/Neumann 15


SAP TechEd ‘03 Basel

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 values


ignoring all selections on
missing characteristics in this
InfoProvider

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 31

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 AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 32

© 2003 SAP AG BW 351 Biedenstein/Neumann 16


SAP TechEd ‘03 Basel

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 / 33

Step IV: Execute Query with Condition

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 34

© 2003 SAP AG BW 351 Biedenstein/Neumann 17


SAP TechEd ‘03 Basel

Slow-Moving Articles

Demo

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 35

Elimination of
Internal Business
Volume

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 36

© 2003 SAP AG BW 351 Biedenstein/Neumann 18


SAP TechEd ‘03 Basel

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 legal


consolidation, 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 Center
Business Area <-> Partner Business Area
A special Reference Key Figure
stores the result after elimination
is created with reference to the key figure to be eliminated
is added to the InfoCube definition, but not stored in
database

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 37

Maintenance of Elimination Rules

Insert the elimination rules on the tab strip „Elimination“ in


the InfoObject maintenance in the Administrator Workbench.

Special key figure


created with
reference to the key
figure to be
eliminated

To establish the
elimination of internal
business volume, you
have to enter the
elimination rules on the
additional tab strip
“Elimination”.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 38

© 2003 SAP AG BW 351 Biedenstein/Neumann 19


SAP TechEd ‘03 Basel

Elimination of Internal Business Volume - Example

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 39

Example: Explanation of eliminated values

External
Internal

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 40

© 2003 SAP AG BW 351 Biedenstein/Neumann 20


SAP TechEd ‘03 Basel

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 / 41

Elimination of Internal Business Volume

Demo

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 42

© 2003 SAP AG BW 351 Biedenstein/Neumann 21


SAP TechEd ‘03 Basel

Summary

Now you are able to:

Precalculate a value set and use it via a


variable within a query
Check the definition of any key figure in a
query result (on the Web) using the Explain
Query
Use the function Constant Selection
Create a scenario to display slow-moving
articles
Use the functions of internal business
volume elimination

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 43

Further Information

Public Web:
www.sap.com/bi
SAP Customer Services Network: www.sap.com/services/

Consulting Contact
Roy Wood, VP SAP NetWeaver Consulting Practice (r.wood@sap.com)

Related SAP Education Training Opportunities


http://www.sap.com/education/
BW305, Reporting and Analysis, BW 315 Reporting Management
BW330, Modeling

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 44

© 2003 SAP AG BW 351 Biedenstein/Neumann 22


SAP TechEd ‘03 Basel

Questions?

Q&A

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 45

Feedback

Please complete your session evaluation and


drop it in the box on your way out.

Thank You !

The SAP TechEd ’03 Basel Team

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 46

© 2003 SAP AG BW 351 Biedenstein/Neumann 23


SAP TechEd ‘03 Basel

Copyright 2003 SAP AG. All Rights Reserved

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 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 the trademarks of their respective
companies.

 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 47

© 2003 SAP AG BW 351 Biedenstein/Neumann 24