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

Using it_filter in ALV

Former Member
0 Likes
1,008

Hello Friends,

I have filled up IT_FILTER in following manner.

clear wa_filter.

refresh it_filter.

wa_filter-fieldname = 'MATNR'.

wa_filter-tabname = it_final.

wa_filter-valuf = '000000000000000225'.

wa_filter-valut = '000000000000000250'.

wa_filter-sign0 = 'E'.

wa_filter-optio = 'BT'.

wa_filter-ref_fieldname = text-002.

wa_filter-ref_tabname = 'MARA'.

append wa_filter to it_filter.

Still i am not able to exclude values given in this filter range.

Can anyone suggest where i am mistaking?

Thank you,

Pratik Vora

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

Hi,

do the following to achieve the exclude functionality.

clear wa_filter.

refresh it_filter.

wa_filter-fieldname = 'MATNR'.

wa_filter-tabname = 'IT_FINAL'.

wa_filter-valuf = '000000000000000225'.

wa_filter-valut = '000000000000000250'.

wa_filter-valuf_int = '000000000000000225'.

wa_filter-valut_int = '000000000000000250'.

wa_filter-sign0 = 'E'.

wa_filter-optio = 'BT'.

append wa_filter to it_filter.

Hi,

do the following to achieve the exclude functionality.

clear wa_filter.

refresh it_filter.

wa_filter-fieldname = 'MATNR'.

wa_filter-tabname = 'IT_FINAL'.

wa_filter-valuf = '000000000000000225'.

wa_filter-valut = '000000000000000250'.

wa_filter-valuf_int = '000000000000000225'.

wa_filter-valut_int = '000000000000000250'.

wa_filter-sign0 = 'E'.

wa_filter-optio = 'BT'.

append wa_filter to it_filter.

3 REPLIES 3
Read only

Former Member
0 Likes
647

hi

try using the sample code in this documentation

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2...

hope it helps

regards

Aakash Banga

Read only

Former Member
0 Likes
648

Hi,

do the following to achieve the exclude functionality.

clear wa_filter.

refresh it_filter.

wa_filter-fieldname = 'MATNR'.

wa_filter-tabname = 'IT_FINAL'.

wa_filter-valuf = '000000000000000225'.

wa_filter-valut = '000000000000000250'.

wa_filter-valuf_int = '000000000000000225'.

wa_filter-valut_int = '000000000000000250'.

wa_filter-sign0 = 'E'.

wa_filter-optio = 'BT'.

append wa_filter to it_filter.

Read only

0 Likes
647

Thanks man,

but still not working..

regards,

Pratik vora