Start of Content Area

Procedure documentation Maintaining Selection Texts  Locate the document in its SAP Library structure

You can replace the standard texts that appear next to input fields on selection screens with text elements. You can either use a short text defined in the ABAP Dictionary or create your own texts.

Prerequisites

You must have defined one or more selection screens for your program.
ExampleCoding example:

PROGRAM TEXT_ELEMENTS_3.

TABLES SBOOK.

PARAMETERS: PARAM(10).

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

Procedure

From the ABAP Editor in change mode:

  1. Choose Goto Text elements Selection texts.
    A table appears in which you can create or edit your selection texts:

    This graphic is explained in the accompanying text

    The names of your parameters and selection options appear automatically in the Name column (as illustrated above). Each may have a selection text of up to 30 characters.
  2. To use texts from the ABAP Dictionary for your selection texts, position the cursor on the relevant line and choose Utilities Copy DD text.
    To use Dictionary texts for all fields for which they exist, choose Utilities Copy all Dictionary texts.
    The system automatically fills the selection texts with the short texts from the ABAP Dictionary. The Type is automatically set to DDIC. Text elements that contain ABAP Dictionary texts appear in display mode.

    This graphic is explained in the accompanying text
  3. Enter texts for the remaining parameters for which you did not use the ABAP Dictionary text (or for which none existed).
  4. To change an ABAP Dictionary text, position the cursor on the corresponding line and choose Utilities No DD text.
  5. Change the selection text.

    This graphic is explained in the accompanying text
  6. Save your entries.

Result

The selection texts for the program are inserted in the text pool for the relevant language. If you ran the program used in the above example, the following selection screen would appear:
This graphic is explained in the accompanying text

Note

If you change or delete parameters or selection options in your program after you have saved the selection texts, a flag appears in the n.used column next to the relevant text the next time you start the selection text maintenance function. This enables you to find and delete obsolete selection texts. If you try to delete a selection text that is still in use in the program, the system displays a warning. When you save the selection texts, the system again informs you that there are unused texts.