To create a logical block of elements on the selection screen, you use:
SELECTION-SCREEN BEGIN OF BLOCK <block>
[WITH FRAME [TITLE <title>]]
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.
If you use TITLE, you can assign a title to each block frame. <title> can be 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 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 forrestricting entry to single fields. If the block has a frame, the width of the frame is smaller, and nested blocks automatically adopt the NO INTERVALS addition.
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.