Bex Query Designer Variables |


Published on

Download this slide from

Want to get more SAP Documents ? Visit

Published in: Technology, Education

Bex Query Designer Variables |

  1. 1. BEx Query Designer Unit 5: Variables 7/17/2007
  2. 2. Using Variables <ul><li>Variables are query parameters that you define in Query Designer and that are filled with values only when you execute the query or Web application. </li></ul><ul><li>Variables act as placeholders for: </li></ul><ul><ul><li>Characteristic values </li></ul></ul><ul><ul><li>Hierarchies </li></ul></ul><ul><ul><li>Hierarchy nodes </li></ul></ul><ul><ul><li>Texts </li></ul></ul><ul><ul><li>Formula elements </li></ul></ul><ul><li>If you use variables, a query definition can then serve as the basis for many different queries. </li></ul>
  3. 3. Characteristic Value Variables <ul><li>Selecting Single Value Variables </li></ul><ul><ul><li>Single Values </li></ul></ul><ul><li>Selecting Single Value Variables as Variable Value Area Limits </li></ul><ul><ul><li>Value Range </li></ul></ul><ul><ul><li>Between, Greater than, Less than, Greater than or equal to, Less than or equal to </li></ul></ul><ul><li>Selecting Variables with Several Single Values or Value Ranges </li></ul><ul><ul><li>Depending on how they have been defined, you can not only select single values for variables, but also several single values, intervals, or selection options. </li></ul></ul>
  4. 4. Text and Formula Variables Formula variables represent numerical values. You can use formula variables in formulas and for calculating exceptions and conditions. Text variables represent a text. You can use text variables in query descriptions, calculated key figures and structural components. This appears with its technical name, enclosed by ampersands (&), in the description.
  5. 5. Hierarchy Variables Hierarchy variables represent hierarchies. You can use them wherever hierarchies can be selected. Note that the fields for Version and Key Date are only input-enabled if the characteristic can contain version or time-dependent hierarchies. Note
  6. 6. Hierarchy Node Variables <ul><li>If you use a hierarchy node variable , you can make selections by hierarchy node when you come to use the query. </li></ul><ul><li>Variable hierarchy node with a fixed hierarchy </li></ul><ul><ul><li>a report about any department ( variable hierarchy node ) for the hierarchy valid for 2002 ( fixed hierarchy ) </li></ul></ul><ul><li>Variable hierarchy node with a variable hierarchy </li></ul><ul><ul><li>a report about any department ( variable hierarchy node ) for the hierarchy valid for the current calendar year ( variable hierarchy ) </li></ul></ul>
  7. 7. Variable Processing Types <ul><li>User Entry / Default Value Enables you to enter the required value for the variable manually in a dialog box when you execute the query </li></ul><ul><li>Replacement Path Enables you to specify the value that automatically replaces the variable when the query or Web application is executed </li></ul><ul><li>Authorization Enables you to fill the variables automatically with the values from the authorization of a user </li></ul><ul><li>Customer Exit Enables you to determine values for variables by means of a function module exit </li></ul><ul><li>SAP Exit Contained in variables that are delivered with SAP BW Business Content </li></ul>
  8. 8. Using the Variable Offset <ul><li>To analyze key figures that have a fixed time-relationship to one another, you can use the variable offset . </li></ul><ul><li>In your report definition, you can use the same variable several times to restrict the key figures and determine a difference from the input value. </li></ul><ul><li>You can also use the variable offset to select an interval as a restriction with upper and lower limits that refer to the same variable. </li></ul><ul><li>Example: </li></ul><ul><li>Use the variable offset to compare the sales volume from the current time period with that of the same time period in the previous year. </li></ul>
  9. 9. Business Content Variables <ul><li>Business Content variables are delivered for all types of variables to enable you to create complex queries quickly and easily. </li></ul><ul><li>For time characteristics, a range of variables are delivered that replace frequently-used time periods or specific times. </li></ul><ul><li>Examples: </li></ul><ul><ul><li>current month </li></ul></ul><ul><ul><li>comparable month of the previous year </li></ul></ul>