Application Development and Automation 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: 
Read only

ALV

Former Member
0 Likes
534

can we set filter in block ALV, if so how can we do that?

can we set filter in block ALV, if so how can we do that?

1 REPLY 1
Read only

Former Member
0 Likes
379

hi

Filtering

The procedure is like the one in sorting. Here, the type of the table you must fill is “LVC_T_FILT”. Filling this table is similar to filling a RANGES variable.


FORM prepare_filter_table CHANGING pt_filt TYPE lvc_t_filt .
DATA ls_filt TYPE lvc_s_filt .
ls_filt-fieldname = 'FLDATE' .
ls_filt-sign = 'E' .
ls_filt-option = 'BT' .
ls_filt-low = '20030101' .
ls_filt-high = '20031231' .
APPEND ls_filt TO pt_filt .
ENDFORM. " preparefiltertable

You can get and set filtering criteria applied whenever you want by using methods “get_filter_criteria” and “set_filter_criteria”, respectively.

Regards

Ravish

<b>

Reward if useful</b>