Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

COMPLEX_SELECTIONS_DIALOG does not clear range table parameter

When calling the function module COMPLEX_SELECTIONS_DIALOG and clearing out all of the ranges, it does not clear the ranges table parameter nor does it return an exception. Below is the code

form get_range_info
    tables  p_filter_range
    using   value(p_title)
            value(p_search_help_name).

  call function 'COMPLEX_SELECTIONS_DIALOG'
   exporting
     title                   = p_title
*         TEXT                    =
*         SIGNED                  = 'X'
*         LOWER_CASE              = ' '
*         NO_INTERVAL_CHECK       = ' '
*         JUST_DISPLAY            = ' '
*         JUST_INCL               = ' '
*         EXCLUDED_OPTIONS        =
*         DESCRIPTION             =
*         HELP_FIELD              =
          search_help             = p_search_help_name
*         TAB_AND_FIELD           =
    tables
      range                   = p_filter_range
       exceptions
         no_range_tab            = 1
         cancelled               = 2
         internal_error          = 3
         invalid_fieldname       = 4
         others                  = 5
            .
  if sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

The p_filter_range may contain data when passed to the subroutine. If it does and the ranges are cleared in the function module, the function module passes back the original range data in p_filter_range and does not raise an exception. Have I missed something in calling the function module or is this an error with the function module?

Thanks,

Brian Basch

Not what you were looking for? View more on this topic or Ask a question