Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

' REUSE_ALV_GRID_LAYOUT_INFO_SET' problem (+)

Former Member
0 Kudos

Hello,

I'm using REUSE_ALV_GRID_LAYOUT_INFO_SET to change filter values in ALV grid, which is displayed using REUSE_ALV_GRID_DISPLAY. In spite of specifying all the values in table IT_FILTER, filter values do not change. If I try to change values manually, I've got error message 'Filter error ::: 15'. Does anyone have an example of using REUSE_ALV_GRID_LAYOUT_INFO_SET in this way?

      CLEAR filter_string.
      REFRESH it_filter.


      filter_string-fieldname = 'MATNR'.
      filter_string-tabname =  1 .
      filter_string-valuf = '*.*'.
      filter_string-valuf_int = '*.*'.
      filter_string-sign0 = 'I'.
      filter_string-optio = 'CP'.
      filter_string-decimals = 0.
      filter_string-intlen = 18.
      filter_string-inttype = 'C'.
      filter_string-order = 1.
      filter_string-ref_fieldname = 'MATNR'.
      APPEND filter_string TO it_filter.

      CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'
        EXPORTING
 
          it_filter            = it_filter
                  .
 

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

HI Cyril,

IN addition to the filter data, also pass the field catalog info also.

Regards,

Ravi

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

HI Cyril,

IN addition to the filter data, also pass the field catalog info also.

Regards,

Ravi

0 Kudos
  CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'
      EXPORTING
*          IS_LAYOUT      =
            IT_FIELDCAT    =  IT_FIELDCAT[].
*          IT_SORT        =
           IT_FILTER      =   IT_FILTER[]
*          IS_GRID_SCROLL =

pass the fieldcat info also,

Regards

vijay

Former Member
0 Kudos

Thanks a lot, it works!