Analyzing Selection Texts 

The Analysis function allows you to find missing or obsolete selection texts.

It is more practical than the normal selection text maintenance function for this task, but does not let you include texts from the ABAP Dictionary.

Prerequisites

You must have defined one or more selection screens for the relevant program.

Suppose we have the following program for which no selection texts have yet been defined:

PROGRAM TEXT_ELEMENTS_4.

TABLES SBOOK.

PARAMETERS: PARAM(10).

SELECT-OPTIONS: SEL1 FOR SBOOK-CARRID,
SEL2 FOR SBOOK-CONNID.

Procedure

From the ABAP Editor:

  1. Go to the text element maintenance initial screen.
  2. Select Selection texts and choose Analyze.
    If you have not yet defined any selection texts, the following screen appears:


    This shows you the parameters and selection options for which you have not yet entered any selection texts.
  3. If you do not want to use texts from the ABAP Dictionary, enter your texts.
  4. Select the lines that you want to analyze.

  5. Choose Edit marked text.
    The changed lines and the selected lines are included in the analysis.
  6. If you now choose Save, the selection text for SEL1 is included in the text pool.

Result

In this case, both SEL1 and SEL2 were changed, but only SEL1 was selected, so only SEL1 is included in the analysis.

You can edit the selection texts for all of the input fields on a selection screen using the Analyze function.

If you want to use ABAP Dictionary texts as selection texts, you must use the text element maintenance function as described under Maintaining selection texts.