SELECTION-SCREEN INCLUDE BLOCKS

Syntax

SELECTION-SCREEN INCLUDE BLOCKS block [ID id].

Effect

The BLOCKS addition creates a block block on the current selection screen. The block specified for block must already have been created on a previous selection screen with a SELECTION-SCREEN BEGIN OF BLOCK or SELECTION-SCREEN BEGIN OF [TABBED] BLOCK statement.

The new block has exactly the same structure and contains the same screen elements as the original block. The properties of all the parameters, selection criteria, output fields, and pushbuttons in the new block are copied from the corresponding elements in the original block as if they were copied individually with a SELECTION-SCREEN INCLUDE statement.

If a block is copied within a block with a frame, the width of the original block is adjusted to fit the area within the frame. The original block cannot contain any elements outside this area.

The ID addition can only be used in a selection include for a logical database.

Note

The INCLUDE addition in this variant ensures that once a block structure has been defined, the structure and the corresponding global variables can be used by several selection screens at the same time.