SAP NetWeaver AS ABAP Release 752, ©Copyright 2017 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Reference → Calling and leaving program units → Calling Programs → Calling Executable Programs → SUBMIT → SUBMIT - selscreen_options →
SUBMIT - selscreen_parameters
Syntax
... [USING SELECTION-SET variant]
[USING SELECTION-SETS OF PROGRAM prog]
[WITH SELECTION-TABLE rspar]
[WITH expr_syntax1 WITH expr_syntax2 ...]
[WITH FREE SELECTIONS texpr] ...
Extras:
1. ... USING SELECTION-SET variant
2. ... USING SELECTION-SETS OF PROGRAM prog
3. ... WITH SELECTION-TABLE rspar
4. ... WITH expr_syntax1 WITH expr_syntax2 ...
5. ... WITH FREE SELECTIONS texpr
Effect
USING SELECTION-SET fills all selection screen components using a
selection screen variant
variant. If USING SELECTION-SETS OF PROGRAM is
specified, a variant of a different program can be used. If WITH SELECTION-TABLE
is specified, values for multiple selection screen components are passed as the content of an internal
table rspar. WITH expr_syntax fills individual
selection screen components with values. The addition WITH FREE SELECTIONS makes it possible to pass dynamic selections to the
selection screen of a
logical database.
... USING SELECTION-SET variant
Effect
If this addition is specified, the parameters and selection criteria for the selection screen are filled with the values of a
selection screen variant.
variant expects a character-like data object that contains the name of a selection screen variant for the program called when the statement is executed. If the variant does not exist, an
error message is sent. If the variant is part of a different selection screen, it is ignored.
Note
You can create and manage selection screen variants for every program in which selection screens are defined, either in the
ABAP Workbench or during execution of the program by choosing Goto - Variants on a selection screen.
... USING SELECTION-SETS OF PROGRAM prog
Effect
If this addition is specified, the selection screen variants of the program prog are used in the called program. prog expects a character-like data object that contains the name of a program when the statement is executed. The addition has the following effects:
Note
The program prog should contain a selection screen that has the same parameters and selection criteria as the selection screen used in the called program.
... WITH SELECTION-TABLE rspar
Effect
If this addition is specified, parameters and selection criteria on the selection screen are filled from an internal table rspar. rspar expects a standard table with the row type RSPARAMS or RSPARAMSL_255 and without secondary table keys. The structured data types RSPARAMS and RSPARAMSL_255 are defined in ABAP Dictionary and have the following components, all of which have the data type CHAR:
Before parameters and selection criteria of the selection screen can be filled with specific values, the rows in the internal table rspar must contain the following values:
If the name of a selection criterion is repeated in rspar, a selection table
containing multiple rows is defined and passed to the selection criterion. If parameter names occur multiple times, the last value is passed to the parameter.
The content of the parameters or selection tables for the current program can be entered in the table using the function module RS_REFRESH_FROM_SELECTOPTIONS.
Notes
... WITH expr_syntax1 WITH expr_syntax2 ...
Effect
This addition fills individual parameters or selection criteria of the selection screen with values. Parameters are filled with single values and selection criteria are filled with selection tables that overwrite values already specified in the called program. The passed selection table is compiled from all additions expr_syntax that address the same selection criterion sel. The following statements can be specified for expr_syntax, where the name of a parameter or a selection criterion must be specified directly for sel:
The addition expr_syntax can be specified more than once and the same selection screen component can also be specified more than once.
Notes
Example
The program report1 has a standalone
selection screen with the
dynpro number 1100. In
the program report2, an internal table with row type RSPARAMS and a ranges
table are filled for this selection screen. These are passed at SUBMIT time, together with a single condition.
Called Program
Calling Program
Result
After report1 is accessed by report2,
the selection tables for the selection criteria selcrit1 and selcrit2 in the called program contain the following entries:
| SIGN | OPTION | LOW | HIGH | |
| selcrit1 | I | EQ | ABAP | |
| selcrit2 | I | BT | H | K |
| selcrit2 | E | EQ | H | |
| selcrit2 | E | EQ | K |
... WITH FREE SELECTIONS texpr
Effect
This addition fills the dynamic selections of the
selection screen of a
logical database
with values. The called program must be associated with a logical database that supports dynamic selections. texpr must be an internal table of the type RSDS_TEXPR from
type group RSDS.
In texpr, the selections for the dynamic selections are specified in an internal
format (known as Reverse Polish Notation). The function modules FREE_SELECTIONS_INIT, FREE_SELECTIONS_DIALOG,
and FREE_SELECTIONS_RANGE_2_EX from the function group SSEL
can be used to fill texpr in the calling program. The first two function modules run a user dialog (see
Dynamic Selections). At the same time, however,
ranges tables can be passed
to FREE_SELECTIONS_RANGE_2_EX in an internal table of the type RSDS_TRANGE for each node in the dynamic
selection. These ranges tables are then converted to a table of the row type RSDS_TEXPR. If the calling
program contains a selection screen with the same dynamic selections, its content can first be passed to a table of the type RSDS_TRANGE using the function module RS_REFRESH_FROM_DYNAMICAL_SEL.
The rows in the internal table type RSDS_TRANGE contain a
flat component TABLENAME for each
node and a table-like component FRANGE_T of the type RSDS_FRANGE_T for the fields in the node. The rows
in RSDS_FRANGE_T contain a flat component FIELDNAME for each field and a table-like component SELOPT_T
of the row type RSDSSELOPT from ABAP Dictionary. RSDSSELOPT contains the four components SIGN, OPTION, LOW, and HIGH and can include the ranges table.
Example
The program report1 is associated with the logical database F1S, which supports
dynamic selections for the node SPFLI. The program report2 enters conditions
in a nested internal table of the type rsds_trange with selection conditions
for field CONNID in node SPFLI. This table is then converted to a table of the type rsds_texpr, which is passed at SUBMIT time.
Called Program
Calling Program