You can define texts for various text objects: (
comments, pushbuttons, ...)
There are two ways to do this:
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
DATA SAPLANE_WA TYPE 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_WA-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
________ |
-------------------------------------------------
Edit Selection Screens