__BookData_02\capture.png


  report  yrtest0012.

  data: begin of itab_range_srvnr occurs 1,
          sign(1),
          option(2),
          low  like mara-matnr,
          high like mara-matnr,
        end of itab_range_srvnr.


*-----------------------------------------------------------------*
end-of-selection.
*-----------------------------------------------------------------*
  perform complex_srvnr_selection tables itab_range_srvnr
                                   using 'Material'
                                         'MAT1'.




*&----------------------------------------------------------------*
*&      Form  COMPLEX_SRVNR_SELECTION
*&-----------------------------------------------------------------*
*       text
*------------------------------------------------------------------*
form complex_srvnr_selection tables  p_range_tab
                              using  p_title
                                     p_help_field.

  call function 'COMPLEX_SELECTIONS_DIALOG'
    exporting
      title          = p_title
      search_help   =  p_help_field
    tables
      range          = p_range_tab
    exceptions
      no_range_tab   = 1
      cancelled      = 2
      internal_error = 3
      others         4.

endform.                               " COMPLEX_SRVNR_SELECTION