CALL SELECTION-SCREEN
Short Reference
ABAP Syntax CALL SELECTION-SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]]
[USING SELECTION-SET variant].
ABAP_ADDITIONS:
1 ... STARTING AT col1 lin1 [ENDING AT col2 lin2]
2 ... USING SELECTION-SET variant
What does it do? This statement calls the
selection screen with the
dynpro number specified in dynnr
and starts selection screen
processing . For dynnr a data object of the type n and
the length 4 is expected.
The statement CALL SELECTION-SCREEN accesses the selection
screens of the respective main program
of the current program group. These screens work with the parameters and
selection criteria of the main program and trigger the selection screen
processing in the main program. The main program is generally the
current program, except for the case when calling a selection screen in
an externally called subroutine. An unhandleable exception is raised if
the specified selection screen is not contained in the main program of
the program group.
You can call any selection screen of the main program, in particular
the standard selection screen. The default setting is the display of the
selection screen in the window of the preceding screen.
System Fields
sy-subrc Meaning
0The user selected the function Execute or Execute +
Print on the selection screen.
4User chose Back , Exit , or Cancel on the
selection screen.
Latest notes:
The statement CALL SCREEN cannot be
used to call selection screens, since otherwise the proper execution of
the selection screen processing cannot be guaranteed.
If the called selection screen is displayed in a dialog window, we
recommend that you use the addition AS WINDOW when specifying the
selection screen.
ABAP_ADDITION_1
... STARTING AT col1 lin1 [ENDING AT col2 lin2]
What does it do? The addition STARTING AT creates a modal dialog
box and the selection screen is displayed in it. The upper left corner
of the dialog box is determined by the values in col1 and
lin1 for column and row. These values refer to the window with the
popup level 0. The lower right corner is
either set automatically or can be specified in col2 and lin2
after ENDING AT . For col1 , lin1 , col2
and lin2 , data objects of the type i are expected. The
values of col1 , lin1 should be smaller than col2 ,
lin2 ; Otherwise the behavior will be undefined.
ABAP_ADDITION_2 ... USING SELECTION-SET variant
What does it do? The addition USING SELECTION-SET populates the
parameters and selection criteria of the selection screen with the
values of a variant specified in variant
. The values are passed to the associated data objects of the
program immediately before the event
ATSELECTION-SCREEN OUTPUT . variant expects a
character-like data object
which, when the statement is executed, contains the name of a variant of
the main program stored for the selection screen in uppercase. If you
specify a nonexistent variant or a variant of another selection screen
of the main program, then the addition is ignored.
Example ABAP Coding See the example in
SELECTION-SCREEN BEGIN OF SCREEN .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved