sapdev logo background
sapdev logo sapdev logo
Comments

ABAP SELECTION-SCREEN BLOCK Statement syntax, information and example SAP source code



Return to Statement index



SELECTION-SCREEN - BLOCK

Short Reference

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

ABAP_ADDITIONS:
1 ... WITH FRAME [TITLE title]
2 ... NO INTERVALS

What does it do? These statements define a block with the name block
on the current selection screen . You must specify the name block directly and it must contain a maximum of 20 characters.
All screen elements on the selection screen defined by the statements PARAMETERS ,
SELECT-OPTIONS , and SELECTION-SCREEN
between these statements are part of the block block . You can create additional blocks within the definition of a block.

Latest notes: Each block is assigned a selection screen event AT SELECTION-SCREEN ON BLOCK , in which the user entries within the block can be processed together.

ABAP_ADDITION_1 ... WITH FRAME [TITLE title]

What does it do? The addition WITH FRAME draws a frame around a block that is not empty. A maximum of five blocks can be nested. A standard width of 120 columns has been defined for the outer frame. The frame of each nested block has been shortened by 4 columns.
You can specify the addition TITLE to define a title for a block with a frame. For the title , you can either specify a name of your choice with a maximum of 8 characters or the name of a text symbol from the program in the form text-idf , where idf is the three-character ID of the text symbol. If you specify a name of your choice, the runtime environment generates a global variable of the same name, belonging to type c with a length of 70. When the selection screen is displayed, the content of the text symbol or the global variables is positioned at the top left hand corner of the frame. If the specified text symbol is not found, the system does not create a title.

ABAP_ADDITION_2 ... NO INTERVALS

What does it do? If you specify NO INTERVALS , the addition of the same name is used implicitly in the SELECT-OPTIONS statement when defining all the selection criteria
for this block, and the block is narrowed accordingly. If the block has a frame, the blocks nested within it also inherit the addition
NO INTERVALS .

Example ABAP Coding Grouping radio buttons in a block with a frame and title on the standard selection screen for an executable program.
SELECTION-SCREEN BEGIN OF BLOCK rad1
WITH FRAME TITLE title.
PARAMETERS: r1 RADIOBUTTON GROUP gr1,
r2 RADIOBUTTON GROUP gr1,
r3 RADIOBUTTON GROUP gr1.
SELECTION-SCREEN END OF BLOCK rad1.

INITIALIZATION.
title = 'Selection'.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




SELECTION-SCREEN
SELECTION-SCREEN_COMMENT




comments powered by Disqus