Quantcast
Viewing all articles
Browse latest Browse all 10425

FM "LVC_VARIANT_SELECT " raising exception wrong input for layout with filters

Hello All,

I have an issue while executing an ALV Report.The report is not working for Layout with filters.Function Module "LVC_VARIANT_SELECT" which raises an exception for wrong input.

 

the code is :

 

 

  CALL FUNCTION 'LVC_VARIANT_SELECT'

    EXPORTING

      i_dialog            = ' '

      i_user_specific     = c_char_x

      i_default           = l_flag

      it_default_fieldcat = <fs_t_fcat>

    IMPORTING

      et_fieldcat         = t_fieldcat

    CHANGING

      cs_variant          = wa_variant

    EXCEPTIONS

      wrong_input         = 1

      fc_not_complete     = 2

      not_found           = 3

      program_error       = 4

      data_missing        = 5

      OTHERS              = 6.

The error is due to the following code in FM:

 

 

if e_exit is initial.

    case l_subrc.

      when 0.

        if not it_data is requested and not lt_filter_lit is initial.

          raise wrong_input.

        endif.

 

I am not passing it_data to the Function Module  & I am unable to figure out the link between the Filter & this table.Any solution for this issue??


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>