SAP SELECTION-SCREEN INCLUDE ABAP Statements

Get Example source ABAP code based on a different SAP table
  



ABAP Code Snippet

Short Reference
ABAP Code Snippet


ABAP Syntax

ABAP Code Snippet

ABAP Code Snippet
[OBLIGATORY [OFF]]
[MODIF ID modid]
[ID id].

ABAP Code Snippet

ABAP Code Snippet
[OBLIGATORY [OFF]]
[NO INTERVALS [OFF]]
[MODIF ID modid]
[ID id].

ABAP Code Snippet

ABAP Code Snippet
[FOR FIELD sel]
[MODIF ID modid]
[ID id].

ABAP Code Snippet

ABAP Code Snippet
[USER-COMMAND ucom]
[MODIF ID modid]
[ID id].

ABAP Code Snippet

ABAP Code Snippet


What does it do? These variants of the statement SELECTION-SCREEN enable elements that have already been created in other selection screens of the same program to be included in a selection screen. Either parameters, selection criteria, output fields, pushbuttons, or whole blocks can be transferred. They can be included in all and from all selection screens of the elements of the program. No elements can be included within the same selection screen. An element cannot be used more than once in the same selection screen. The definition of the selection screen from which the elements are transferred must be arranged before the current selection screen.



Example ABAP Coding
Reusing a block of the
standard selection screen of an executable program in a standalone selection screen that has the number 500. SELECTION-SCREEN: BEGIN OF BLOCK block,
COMMENT /1(40) text,
ULINE.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK block.

SELECTION-SCREEN: BEGIN OF SCREEN 500 AS WINDOW,
ABAP Code Snippet
END OF SCREEN 500.

INITIALIZATION.
text = 'Standard Selection'.

START-OF-SELECTION.
...
CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

Return to menu