You use this procedure to replace the standard texts that appear next to input fields on selection screens with text elements. You can use a short text defined in the ABAP Dictionary or create your own texts.
You must have defined one or more selection screens for your program.
PROGRAM TEXT_ELEMENTS_3.
TABLES SBOOK.
PARAMETERS: PARAM(10).
SELECT-OPTIONS: SEL1 FOR SBOOK-CARRID,
SEL2 FOR SBOOK-CONNID.
The names of your parameters and selection options appear automatically in the Name column. The selection text for each parameter may be up to 30 characters long.
The system automatically inserts the short texts from the ABAP Dictionary. Text elements containing ABAP Dictionary texts appear in display mode.
The field appears in change mode and you can enter the text for the parameter:
The system inserts the selection texts for the program in the text pool for the relevant language. If you run the program used in the example, the following selection screen appears:
If you change or delete parameters or selection options in your program after you have saved the selection texts, the system displays a message reminding you to find and delete obsolete selection texts. If you try to delete a selection text that is still in use, the system displays a warning. When you save the selection texts, the system informs you if there are unused texts.