Blank Lines, Underlines, and Comments
To place blank lines on the selection screen, you use:
SELECTION-SCREEN SKIP [<n>].
This statement generates <n> blank lines, where <n> can have a value between 1 and 9. To produce a single blank line, you can omit <n>.
To place underlines on the selection screen, you use:
SELECTION-SCREEN ULINE [[/]<pos(len)>] [MODIF ID <key>].
This statement generates an underline. If you do not use the <pos(len)> addition, a new line is generated for the underline below the current line, and the underline has the same length as the line. If you use the <pos(len)> addition, the underline begins at position <pos> in the current line and continues for a length of <len> characters. With several elements in one line, you can also specify (<len>) without <pos>. A slash (/) produces a line feed.
For <pos>, you can specify a number or either one of the expressions POS_LOW and POS_HIGH. POS_LOW and POS_HIGH mark the positions of the two input fields of a selection criterion.
TheMODIF ID <key> addition has the same function as for the PARAMETERS statement. You can use it to modify the underline before the selection screen is called.
To place comments on the selection screen, you use:
SELECTION-SCREEN COMMENT [/]<pos(len)> <comm> [FOR FIELD <f>]
[MODIF ID <key>].
This statement writes the <comm> comment on the selection screen. For <comm>, you can specify atext symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called. You must always specify the <pos(len)> addition. Only if there are several elements in one line, can you omit <pos>.
The text <comm> will be displayed, starting in column <pos>, for a length of <len>. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.
You use FOR FIELD <f> to assign a field label to the comment. <f> can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field <f> is displayed.
TheMODIF ID <key> addition has the same function as for the PARAMETERS statement. You can use it to modify the comment before the selection screen is called.
SELECTION-SCREEN COMMENT /2(50) TEXT-001 MODIF ID SC1.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN COMMENT /10(30) COMM1.
PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
R2 RADIOBUTTON GROUP RAD1,
R3 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN ULINE /1(50).
SELECTION-SCREEN COMMENT /10(30) COMM2.
PARAMETERS: S1 RADIOBUTTON GROUP RAD2,
S2 RADIOBUTTON GROUP RAD2,
S3 RADIOBUTTON GROUP RAD2.
SELECTION-SCREEN ULINE /1(50).
COMM1 ='Radio Button Group 1'.
COMM2 ='Radio Button Group 2'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INTENSIFIED = '1'.
The following selection screen appears:
The text specified in text symbol 001, 'Example of Blank Lines, Underlines and Comments', appears highlighted. Two groups of radio buttons are displayed below the text, separated by underlines and described by comments. If there were no slashes (/) in the ULINE additions, the underlines would overwrite the last line of each radio button group.