cancel
Showing results for 
Search instead for 
Did you mean: 

How can I filter date duration in ALV table?

Former Member
0 Kudos

How can I define date duration in ALV table? For example, I want to choose a field date from 20070615 to 20071020. It seems doesn't work. Would you please help?

l_alv_filter = lr_alv_field->if_salv_wd_filter~create_filter_rule(

low_value = '20070615'

high_value = '20071020'

).

Thank you and best regards,

Katrina

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes, that's one way. Thank you for your help. I just want to filter a range. Here the test is also successful.

l_alv_filter = lr_high_level_alv_field->if_salv_wd_filter~create_filter_rule(

INCLUDED = 'X'

OPERATOR = 'BT'

LOW_VALUE = '20070116'

HIGH_VALUE = '20071020'

).

Thank you and best regards,

Katrina

Former Member
0 Kudos

hi katrina......

instead of using the interface.......

you can also go for the method

CL_SALV_WD_FILTER_RULE ->SET_LOW_VALUE()

Answers (1)

Answers (1)

Former Member
0 Kudos

hi katrina....

just try giving it in the date format itself.

--- regards,

alex b justin