Show TOC

Creating Selection CriteriaLocate this document in the navigation structure

Procedure

Selection criteria are created in much the same way as parameters (see Creating Parameters).

By specifying a sequence on the selection screen, you can determine the arrangement of the selection criteria. This is always in ascending order.

Note

The sequence number applies equally to parameters and selection criteria.

The text you enter on the Description line when defining a selection criteria serves as documentation and should describe the selection criterion as well as possible. The selection text is displayed on the selection screen of every query report for the InfoSet. If you do not enter a selection text, the system uses the description as the selection text.

Selection criteria assignment for a data source node takes place using the FOR field that has to be assigned to each selection criterion. The selection criterion is set on the query selection screen if the corresponding data source node is in any way relevant to the query.

If you want to assign special attributes to the selection criterion, use the Additns line.There, you can specify all the additions allowed with the ABAP statement SELECT-OPTIONS. If required, you can use several additions, one after the other.

The system then performs a syntax check.

For every selection that is defined in the InfoSet or retrievd by the logical database, you can make a code for the time AT SELECTION-SCREEN to carry out checks. To do this, place the cursor on a selection in the overview screen for the existing selections and choose the function check code for element .

Coding at the AT SELECTION-SCREEN has to be decided upon separately for each selection. When a query report is generated, a check is made to ensure that the check coding for all selections is collected together in AT SELECTION-SCREEN and that only the selections that appear on the screen are referred to.