Show TOC

Setting Selection OptionsLocate this document in the navigation structure

For large data amounts in particular, it is important that a user has the option using a selection screen to restrict the data to be displayed to those table lines that contain specific values in in one or more selected columns (for example, all flights on a specific date).

The data retrieval (using selection options) and display are copied from the ALV with IDA. The selection made by the user is transferred to the list using method set_select_options. Use method add_ranges_for_name of class cl_salv_range_tab_collector to convert the selection of the user to the format that is needed for the method set_select_options. Example:

data(lo_collector) = NEW cl_salv_range_tab_collector( ).
  lo_collector->add_ranges_for_name( iv_name = 'CARRID'
                                   it_ranges = carrid[] ).

  lo_collector->add_ranges_for_name( iv_name = 'CONNID'
                                   it_ranges = connid[] ).

  lo_alv_display->set_select_options( it_ranges = lt_name_range_pairs ).
Interface Method
IF_SALV_GUI_TABLE_IDA set_select_options
Class Method
CL_SALV_RANGE_TAB_COLLECTOR add_ranges_for_name

Example report for an in-container display: SALV_IDA_SELECTION_SCREEN