Skip to Content
0
Apr 07, 2009 at 07:31 AM

How to use exporting prameter IT_FILTER in FM 'REUSE_ALV_GRID_DISPLAY'

464 Views

Hi ALL,

Can u plz tell me what are the fields which i must pass for using IT_FILTER in FM 'REUSE_ALV_GRID_DISPLAY'.

I am passing

DATA:WT_TAB TYPE SLIS_T_FILTER_ALV ,

ws_fieldcat1 TYPE SLIS_FILTER_ALV.

ws_fieldcat1-fieldname = 'SHIP_TO'.

ws_fieldcat1-tabname = 'WT_DATA'.

ws_fieldcat1-convexit = 'ALPHA'.

APPEND ws_fieldcat1 TO WT_TAB.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_buffer_active = wc_x

i_callback_program = wv_repid

is_layout = ws_layout

it_fieldcat = wt_fieldcat

i_save = 'A'

it_events = wt_event

IT_FILTER = WT_TAB

TABLES

t_outtab = wt_data

EXCEPTIONS

program_error = 1

OTHERS = 2.

but it is giving dump.

i think we have to pass more fields while creating WT_TAB.

Plz suggest.

Thanks