Show TOC

Element BlocksLocate this document in the navigation structure

Use

To create a logical block of elements on the selection screen, you use:

        
SELECTION-SCREEN BEGIN OF BLOCK block
        
[WITH FRAME [TITLE titel]]
        
[NO INTERVALS].
        
...
        
SELECTION-SCREEN END OF BLOCK block.
         

You must define a block name for each block. Blocks of elements can be nested.

If you use the WITH FRAME addition, a frame is drawn around the block. You can nest up to five different blocks with frames.

Using TITLE , you can provide a title for each block frame. title can be a text symbol or a field name with a length of maximum eight characters. This character field must not be declared with the DATA statement, but is generated automatically with the length of the frame width. The frame width is set automatically based on the nesting depth. The field must be filled before the selection screen is called.

If you use the NO INTERVALS addition, all selection criteria of the block are treated as if they had the appropriate addition for restricting input in single fields . If the block has a frame, the width of the frame is smaller, and nested blocks automatically adopt the NO INTERVALS addition.

        
REPORT demo_sel_screen_beg_of_block .
        
SELECTION-SCREEN BEGIN OF BLOCK rad1
        
WITH FRAME TITLE text-002.
        
PARAMETERS r1 RADIOBUTTON GROUP gr1.
        
PARAMETERS r2 RADIOBUTTON GROUP gr1.
        
PARAMETERS r3 RADIOBUTTON GROUP gr1.
        
SELECTION-SCREEN END OF BLOCK rad1.
         

The following selection screen appears:

The three radio buttons r1 , r2 , and r3 form a block that has a frame and the title 'Radio buttons' specified in text symbol 002 .