ABAP 7.5 - FILTER Statement
There are two internal tables, say, itab1 and itab2. Both are of the same definition. If the entries in itab2 should not be present in itab1, we use FILTER function along with 'EXCEPT IN'. There are two internal tables, say, itab1 and itab2. Both are of the same definition. If only the entries in itab2 should be present in itab1, we use FILTER function along with 'IN'. FILTER required SORTED / HASHED internal tables. Example program is below. REPORT zag_75_filter1 . TYPES : BEGIN OF lty_filter , field1 TYPE i , field2 TYPE i , END OF lty_filter , ltt_filter TYPE SORTED TABLE OF lty_filter WITH NON-UNIQUE KEY field1 field2 . DATA : lt_main ...