05-23-2006 4:08 PM
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
.
05-23-2006 4:12 PM
HI Cyril,
IN addition to the filter data, also pass the field catalog info also.
Regards,
Ravi
05-23-2006 4:12 PM
HI Cyril,
IN addition to the filter data, also pass the field catalog info also.
Regards,
Ravi
05-23-2006 4:16 PM
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
05-23-2006 4:17 PM