Definition of Titles and Texts on Selection Screens

SELECTION-SCREEN - Defining Titles and Texts on Selection Screens

You can define texts for various text objects: ( comments, pushbuttons, ...)

There are two ways to do this:

Notes

The field abcdefgh is generated automatically. You do not have to declare it using the DATA statement.

You can define texts in any of the following:
-
SELECTION-SCREEN BEGIN OF SCREEN
-
SELECTION-SCREEN BEGIN OF BLOCK
-
SELECTION-SCREEN COMMENT
-
SELECTION-SCREEN PUSHBUTTON

TABLES SAPLANE.

SELECTION-SCREEN BEGIN OF BLOCK CHARLY
WITH FRAME TITLE TEXT-001.
PARAMETERS PARM(5).
SELECTION-SCREEN COMMENT /5(20) COMM1234.
SELECT-OPTIONS SEL FOR SAPLANE-PLANETYPE.
SELECTION-SCREEN END OF BLOCK CHARLY.

...

INITIALIZATION.
MOVE 'Test dynamic text' TO COMM1234.

(TEXT-001 has the contents 'Block Charly').

Selection screen:

--Block Charly-----------------------------------
| PARM _____ |
| Test dynamic text |
| SEL ________ to ________ |
-------------------------------------------------