SAP SUBMIT INTERFACE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• USING SELECTION-SCREEN SUBMIT
• VIA SELECTION-SCREEN SUBMIT

SUBMIT, selscreen_options

ABAP_SYNTAX
... $[USING SELECTION-SCREEN dynnr$]
$[VIA SELECTION-SCREEN$]
$[ selscreen_parameters$]...

ABAP Addition
1 ... USING SELECTION-SCREEN dynnr
2 ... VIA SELECTION-SCREEN


What does it do?
The addition USING SELECTION-SCREEN specifies the selection screen and VIA SELECTION-SCREEN determines whether it is displayed. The additions selscreen_parameters supply values to the parameters and selection criteria, as well as the dynamic selection of the called selection screen.
The values are passed to the selection screen between the events INITIALIZATION and AT SELECTION SCREEN OUTPUT. The following hierarchy applies to the passing of the values: First, the selection screen variant of the addition USING SELECTION-SET is passed, which sets all parameters and selection criteria to the values of the variant. The values previously set in the called program are overwritten. The values of the table of the addition WITH SELECTION-TABLE are then passed. All parameters and selection criteria specified here are overwritten accordingly. Finally, the values of the additions WITH sel value are passed. All parameters and selection criteria specified here are overwritten accordingly. If the addition WITH sel value is used more than once for the same parameter, the parameter is overwritten with the last specified value. If the addition WITH sel value is used more than once for the same selection criterion, a ranges table with the corresponding number of lines is passed.
Dynamic selections are supplied independently of this hierarchy.



Latest notes:

The options for parameter passing can be used to view a selection screen as a parameter interface of an executable program. This applies in particular to background selection screen processing and to parameters and selection criteria defined without screen elements using the addition NO-DISPLAY
When data is passed, any adjustments made to the screen format, such as reductions and the execution of conversion routines, should not be executed for fields for which there are no screen elements on the selection screen. This applies to all parameters and selection criteria defined with NO DISPLAY. It also applies to all lines in a ranges table with the exception of the first line.
The additions selscreen_parameters only take effect the first time the called program is executed. If a selection screen is displayed in the called program, the runtime framework calls the program again after it has ended, replacing the values specified in selscreen_parameters with the previous input values.
ABAP_HINT_END

ABAP Addition

What does it do?
This addition defines which selection screen is called. Here, dynnr is a data object that must contain the dynpro number of a selection screen defined in the called program when the statement SUBMIT is executed.
If the addition USING SELECTION-SCREEN is omitted or the dynpro number 1000 is specified, the standard selection screen is called. If no standard selection screen is defined in the called program, no selection screen is called.
If a dynpro number not equal to 1000 is specified in the addition USING SELECTION-SCREEN, the corresponding standalone selection screen is called. If no selection screen with this dynpro number is defined in the called program, an uncatchable exception is raised.

ABAP Addition

What does it do?
If this addition is specified, the selection screen is displayed on the screen, otherwise background selection screen processing takes place. In background selection screen processing, the selection screen events are raised without the selection screen being displayed on the screen.

ABAP_EXAMPLE_ABEXA
Program Calls, Filling the Selection Screen
ABAP_EXAMPLE_END

Return to menu