0% found this document useful (0 votes)
97 views

Session 9 Defining Different Types of Variables

This document describes defining different types of variables in SAP BW, including: 1) Characteristic value variables to restrict queries by month. A characteristic value variable called $CALMONTH is created for this purpose. 2) Text variables using replacement paths to describe key figures restricted by characteristic values. A text variable called $TXTMONTH replaces the month name. 3) Hierarchy and hierarchy node variables to restrict characteristics by material hierarchies. Hierarchy variables called $HIERARCHY and $NODE are created. 4) Formula variables for calculations. A formula variable called $FORMULAMONTH divides a key figure by months. The document provides steps to create each type of variable and use them in

Uploaded by

BabuChowdary
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Session 9 Defining Different Types of Variables

This document describes defining different types of variables in SAP BW, including: 1) Characteristic value variables to restrict queries by month. A characteristic value variable called $CALMONTH is created for this purpose. 2) Text variables using replacement paths to describe key figures restricted by characteristic values. A text variable called $TXTMONTH replaces the month name. 3) Hierarchy and hierarchy node variables to restrict characteristics by material hierarchies. Hierarchy variables called $HIERARCHY and $NODE are created. 4) Formula variables for calculations. A formula variable called $FORMULAMONTH divides a key figure by months. The document provides steps to create each type of variable and use them in

Uploaded by

BabuChowdary
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

SAP BW Release 3.5/7.

0
Session 9: Defining Different Types of Variales SAP BW Training
Session 9: Defining Different Types of Variales
Session !"e#ti$e
In this exercise you are going to define
Characteristic Value variable and use them in your Query
Text Variables with Processing Type Replacement Path in order to describe key figures
restricted by Characteristic value variables
ierarchy and ierarchy !ode Variable and include the combinations in your Query
"ormula Variables and their use
Tas% &: '(ara#teristi# Val)e Variale
Step &: 'reate a ne* +)ery
Create a new Query based on the infocube Customer #0SD_C01$ and include
Characteristics Material (0MATERIAL), Material Group (0MATERIAL__MATL_GROUP)
and Sold-to party (0SOLD_TO) in rows and include key figure I!oi"e #uatity
(0I$%&D_'T() restricted by Characteristic &al) (ear * +ot, (0&ALMO$T-) in
columns%
Step ,: Restri#t '(ara#teristi# 0'A-.!/T0 y $ariale
a$ "rom Cal% &ear ' month choose restrict and go to Variable tab page%
b$ "rom the context menu choose new variable and create a variable with the help of
variable wi(ard%
Variable !ame) *C+,R--
.escription) ,R-- Char Var /onth
c$ Choose Processing 0y /anual 1ntry'.efault Value% 2nd it is optional range variable%
3ser can enter month range during execution of the 4uery% !o default value is
re4uired% 5ave the variable%
d$ Transfer the variable into the selection window%

e$ 5ave the 4uery
.escription) Query "or Variables ,R--
Technical !ame) *+65.+C67+Q+,R--+6668
1xecute the 4uery%
1
SAP BW Release 3.5/7.0
Session 9: Defining Different Types of Variales SAP BW Training
Tas% ,: Te1t Variale

Step &: 2se t(e 3)ery #reate4 for #(ara#teristi# $al)e $ariale

9pen 4uery Query "or Variables ,R-- #*+65.+C67+Q+,R--+6668$ from the
Infoarea Reporting : 2nalysis #*IR1P$%
Step ,: Define a ne* te1t $ariale
a$ "rom the Edit Sele"tio dialogue box of the selection placed in column choose the
Sele"t Te.t %aria/le Icon% In this selection box select new variable%
b$ Variable !ame) *T;+,R--
.escription) ,R-- Text Var /onth
c$ The variable should be of Processing Type Repla"e+et Pat,)
d$ Choose &al) (ear * +ot, #6C2</9!T$ on Characteristic page
e$ 9n Replacement Path page)
Replace Variable with) !ame #Text$
"or Interval 3se) "rom Value
f$ 5ave the variable% 5ave the Query and execute the Query%

2
SAP BW Release 3.5/7.0
Session 9: Defining Different Types of Variales SAP BW Training
Tas% 3: 0ierar#(y an4 0ierar#(y /o4e Variale
Step &: 2se t(e 3)ery #reate4 for #(ara#teristi# $al)e $ariale

9pen 4uery Query "or Variables ,R-- #*+65.+C67+Q+,R--+6668$ from the
Infoarea Reporting : 2nalysis #*IR1P$%
Step,: Restri#t 0.AT5R6A- y 0ierar#(y /o4e $ariale
a$ ,o to the =1.IT> from the context menu of key figure I!oi"e #uatity
(0I$%&D_'T() % .rag and drop 6/2T1RI2< from left to right in =.etails of the
5election> box%
b$ ,o to Restrict from the context menu of 6/2T1RI2< Choose =Variables> and Type
as =ierarchy !ode Variable>
c$ 5elect =Create $e0 %aria/le> to create hierarchy node variable%
d$ Variable !ame) *!+,R--
.escription) ,R-- ierarchy !ode variable
e$ Variable will be of Processing Type /anual 1ntry ' .efault Value and optional
single valued variable%
f$ 5ave the variable and transfer it to the selection window)
Step3: 'reate 0ierar#(y Variale
a$ ,o to the =ierarchy> tab on the right under =Properties> to restrict 6/2T1RI2<
with a ierarchy% &ou can choose a material hierarchy in =5elected ierarchy> by
clicking on the box on the right%
b$ 5elect =ierarchy Variable>? go to =5elect from <ist> and
click on $e0 %aria/le at the top to create hierarchy variable%
c$ Variable !ame) *+,R--
.escription) ,R-- /aterial ierarchy Variable
d$ Variable will be of Processing Type /anual 1ntry '
.efault Value and optional%
e$ 5ave the variable and choose this new hierarchy variable from
the list in the Variables)
f$ 5ave the Query and execute it%
3
SAP BW Release 3.5/7.0
Session 9: Defining Different Types of Variales SAP BW Training
Tas% 7: 8or9)la Variale
Step &: 2se t(e 3)ery #reate4 for #(ara#teristi# $al)e $ariale

9pen 4uery Query "or Variables ,R-- #*+65.+C67+Q+,R--+6668$ from the
Infoarea Reporting : 2nalysis #*IR1P$%
Step,: 'reate for9)la $ariale
a$ "rom the context menu of the @ey "igure 5tructure choose $e0 1or+ula)
b$ "rom the context menu of the $e0 1or+ula go to =1dit> and then from 1or+ula
%aria/le chose $e0 %aria/le to create formula variable%
c$ Variable !ame) *"+,R--
.escription) ,R-- Cal/onth Variable
d$ =1dit> the variable *"+,R--% Variable will be of
Processing Type Replacement Path%
e$ Choose Characteristic &al)(ear *
Mot,(0&ALMO$T-) in =Reference Characteristic> %
f$ Replace the variable with @ey and select 1ro+
%alue as "or Intervals 3se%
g$ 5ave the variable and transfer the key figure
Invoice 4uantity A'B this new variable from the lists of formula variable%
,ive .escription .ivided by /onths%
h$ 5ave the Query and execute it%
4

You might also like