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.