Entering content frame

Procedure documentation Defining Exception Cells Locate the document in its SAP Library structure

Use

When you define selection criteria and formulas for structural components and there are two structural components of a query, generic cell definitions are created at the intersection of the structural components that determine the values to be presented in the cell.

Cell-specific definitions allow you to define explicit formulas, along with implicit cell definition, and selection conditions for cells and in this way, to override implicitly created cell values. This function allows you to design much more detailed queries.

In addition, you can define cells that have no direct relationship to the structural components. These cells are not displayed and serve as containers for help selections or help formulas.

Prerequisites

The query contains two structures. You can define exception cells only for queries which have two structures. You can use the one structure for characteristic values and key figures for the other. You can then define cells if these prerequisites have been met.

Note

A cell is the intersection between two structural components. The term Cell for the function Defining Exception Cells should not be confused with the term Cell in MS Excel. The formulas or selection conditions that you define for a cell always take effect at the intersection between two structural components. If a drilldown characteristic has two different characteristic values, the cell definition always takes effect at the intersection between the characteristic value and the key figure.

Procedure

In the Query Designer toolbar, choose Define Cells... This graphic is explained in the accompanying textto reach the cell definition functions.

New selection

...

       1.      Select a cell in the Cell Definition dialog box and, from the context menu, choose New Selection.

       2.      Define your selection by dragging a key figure and the characteristic values by which you want to restrict the key figure (using Drag&Drop) to the right-hand area of the New Selection dialog box. See also Defining Selections

You can use characteristic value variables instead of fixed characteristic values.

-         If you want to change an existing variable, select this variable and, from the context menu, choose Edit. The SAP BW Variables Editor appears. For more information, see Changing Variables in the Variable Editor.

-         If you want to define a new variable, select the characteristic value and, from the context menu, choose New Variable. The SAP BW Variables Wizard appears. For more information, see Defining Variables with the Variable Wizard.

       3.      Enter a description for the selection.

Note

You can use Text Variables in the description.

       4.      Choose OK. The cell contains the description of the selection. The This graphic is explained in the accompanying text symbol shows you that a selection exists for this exception cell.

New formula

...

       1.      Highlight a cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Formula from the context menu.

       2.      Define your formula using the operands and functions available. See also Defining Formulas

       3.      Enter a description of the formula.

Note

You can use Text Variables in the description.

       4.      Choose OK. The cell contains the description of the formula. The This graphic is explained in the accompanying text symbol shows you that a formula exists for this exception cell.

New cell reference

You can use any cell that you define in a formula. If you want to reuse the value from the implicit, generic cell definition that is automatically created at the intersection of the two structural components of a query, select this cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Cell Reference. A description taken from the two structural components now automatically appears in the cell. The This graphic is explained in the accompanying text symbol shows you that a cell reference exists for this exception cell. You can now reference to this cell. That is, you can reuse the implicit cell definition and do not have to create these values manually in a new selection.

Functions of explicitly defined cells:

Select a defined cell and choose the required function from the context menu (secondary mouse button).

·        Edit

·        Delete

·        Where-Used List

Before you delete a cell, you can check for the formulas in which the defined cell is used in the where-used list.

·        Properties

Choose Properties if you:

-         Want to change the description of the cell.

-         Want to change the highlighting of the cell.

-         Want to hide the cell. That is, if you do not want to see the values of the cell.

Help Cells

Choose Help Cells, if you require additional cells for help selections or help formulas. You can use the functions New Selection and New Formula in the context menu to define help cells that are not displayed in the query to serve only as objects for help selections and help formulas.

Example

For example, you can define an invoice in a help cell and use this in a “real” cell to calculate a duplicated invoice.

...

                            a.      Right-click on the empty cell next to Help Cells to get to a context menu. From here, choose New Selection.

                            b.      Use Drag & Drop to drag the Invoice key figure into the right-hand area of the New Selection dialog box.

                            c.      Enter a description.

                            d.      Choose OK. The cell contains the description of the selection. The This graphic is explained in the accompanying text symbol shows you that a selection exists for this exception cell.

                            e.      From the context menu for the required cell of the query, now choose New Formula.

                              f.      Drag the cell you have just defined, which you can find in the Operands window, under Cells, into the Formula window using Drag & Drop. Click on the button twice.

                            g.      Enter a description.

                            h.      Choose OK. The cell contains the description of the formula. The This graphic is explained in the accompanying text symbol shows you that a formula exists for this exception cell.

In the help cells that are already defined in the context menu, you can:

·        Edit the cell definition

·        Delete the cell definition

·        Display the where-used list for the cell

·        Change the description of the cell under Properties.

Result

You have defined one or more exception cells for a query. In the status bar of the Query Designer, the  This graphic is explained in the accompanying text symbol shows you that the query contains exception cells.

 

 

Leaving content frame