Start of Content Area

Function documentation Selecting Constants Locate the document in its SAP Library structure

Use

In the Query Designer, you use selections to determine which data you want to display for the report runtime. You can then alter the selections during runtime using navigation and filters – that is, you can restrict the selections further.

The function Constant Selection allows you to mark a selection in the Query Designer as constant. This means that navigation and filtering have no effect on the selection for the runtime. In this way, you can easily select reference sizes that you cannot change for the rest of  the runtime.

Integration

You can use this function with selections in structural components, cells and restricted key figures.

Features

You can define entire selections as constants for structural components and cells. During navigation, such a selection exists independently of all filters.

Moreover, you can define components of selections, that is, single InfoObjects and their filter values, as constant. The selection remains constant only with regard to this InfoObject in navigation and independent of filters.

Caution

You cannot select an entire restricted key figure as a constant, only its InfoObjects.

Activities

You can activate the Constant Selection setting for an entire selection in the Structure linkSelection/Formula Properties dialog box.

You select an InfoObject of a selection as constant in the following way:

...

       1.      From the context menu of a selection, choose Edit or from the context menu of a structure, choose New Selection if you want to make the setting when you create the selection. The Edit Selection or New Selection dialog box appears.

       2.      From the context menu of the InfoObject that you are using in the selection, choose Constant Selection.

In the same way as with InfoObjects, you can also select a restricted key figure or a cell in a selection as a constant.

Note

The function Constant Selection is also available in the Ad-hoc Query Designer in a restriction. You can find more detailed information under Structure linkAd-hoc Query Designer: Defining New Queries.

Examples

Market Index

You do not want to see the absolute sales revenue in a product list (product is in drilldown), but a normalized sales revenue (that is, related to) a specific product group. Using the Constant Selection function, you can select the sales revenue of a specific product group as the constant for the drilldown. You can now relate the sales revenue of the individual products in the group to the sales revenue of the product group and, for example, determine the revenue from each individual product sales revenue as a proportion of the sales revenue for the group.

Plan/actual problem

There are actual values in the InfoCube for each period. Plan values are only there for the entire year. These are posted in period 12. To compare the PLAN and ACTUAL values, you have to define a PLAN and ACTUAL column in the query, restrict PLAN to period 12 and mark this selection as a constant selection. This means that you always see the plan value, whichever period you are navigating in.

Note

This also solves problems with the MultiProvider:

The MultiProvider has an InfoCube with the actual values and an InfoCube with the plan values. If the characteristic Calendar Month  is in the plan InfoCube, but not in the actual InfoCube, all data is displayed in a drilldown by Calendar Month under the value # (unassigned). You can define a constant selection for calendar month = # (unassigned). In doing so, you select the yearly plan value as constant independently of the filter and it is displayed in each row, that is, for every month. You can now divide the yearly plan value by 12. Then you can make plan/actual comparisons on a monthly basis, although there are only yearly values in the plan InfoCube.

List of slow-moving items

You can define a query on a MultiProvider that displays all products that have not been sold over a specific period of time or that have not sold very well. That is, the query should display all characteristic values for which there is no transaction data in the selected time period or for which there are only very low values. For more information, see List of slow-moving items.

 

 

End of Content Area