Show TOC

Blank Lines, Underlines, and CommentsLocate this document in the navigation structure

Use

Blank Lines

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 .

Underlines

To place underlines on the selection screen, you use:

SELECTION-SCREEN ULINE [[/] pos(len) ] [MODIF ID key ].

This statement generates an underlining line. If you do not use the pos(len) addition, a new underline is generated for the line 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 one of the expressions pos_low or pos_high . pos_low and pos_high are the positions of the two input fields of a selection criterion.

The MODIF 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.

Comments

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 a text 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.

The MODIF 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.

Example
        


        
REPORT demo_sel_screen_select_comment.
        
SELECTION-SCREEN COMMENT /2(50) text-001 MODIF ID sc1.
        
SELECTION-SCREEN SKIP 2.
        
SELECTION-SCREEN COMMENT /10(30) comm1.
        
SELECTION-SCREEN ULINE.
        
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
        
r2 RADIOBUTTON GROUP rad1,
        
r3 RADIOBUTTON GROUP rad1.
        
SELECTION-SCREEN ULINE /1(50).
        
SELECTION-SCREEN COMMENT /10(30) comm2.
        
SELECTION-SCREEN ULINE.
        
PARAMETERS: s1 RADIOBUTTON GROUP rad2,
        
s2 RADIOBUTTON GROUP rad2,
        
s3 RADIOBUTTON GROUP rad2.
        
SELECTION-SCREEN ULINE /1(50).
        
INITIALIZATION.
        
comm1 ='Auswahlknopfgruppe 1'.
        
comm2 ='Auswahlknopfgruppe 2'.
        
LOOP AT SCREEN.
        
IF screen-group1 = 'SC1'.
        
screen-intensified = '1'.
        
MODIFY SCREEN.
        
ENDIF.
        
ENDLOOP.
        


        


         

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 appear beneath the text. They are separated by underlines and explained with comments. If there were no slashes ( / ) in the ULINE additions, the underlines would overwrite the last line of each radio button group.