Show TOC

 Creating Parameters

To create a parameter, proceed as follows:

  1. Choose Selections in the InfoSet maintenance screen.

  2. Choose Create.

  3. In the dialog box that appears, determine whether you are defining a parameter or a selection criterion and enter a name for the selection containing up to eight characters.

  4. Define the parameter.

By specifying a sequence on the selection screen, you can determine the arrangement of the parameters. This is generally in ascending order. If two parameters have the same sequence specification, the order in which they appear on the selection screen is uncertain.

Note Note

The sequence number applies equally to parameters and selection criteria.

End of the note.

The text you enter on the Description line serves as documentation and should describe the selection criterion as well as possible. It should describe the parameter. The Selection text appears on the selection screen of every query report within that InfoSet. If you do not enter a selection text, the system uses the description as the selection text.

When defining parameters, you have the same options as when you define additional fields.

If you want to assign attributes such as type and length specifications to the parameter, use the field Additns . There, you can specify all the additions allowed with the ABAP statement PARAMETERS. If required, you can use several additions, one after the other.

The system then performs a syntax check.

For every selection that is defined by the InfoSet or provided by the logical database, you can create code at the AT SELECTION-SCREEN in order to carry out checks. Ensure that the cursor is positioned on a selection in the overview screen for the available selections, and then call the Check code for element function.

The code at AT SELECTION-SCREEN has to be made separately for each selection. When you generate a query report, checks are made to ensure the check code for all selections is collected at the same AT SELECTION SCREEN and that only those selections that appear on the selection screen are referred to.

Caution Caution

You should also evaluate parameters that you define. A typical example would be CHECK <parameter> to evaluate parameters in a GET event, in order to allow only certain table lines to be processed.

End of the caution.