SAP FILTER VALUE CONDITION ABEXA



Get Example source ABAP code based on a different SAP table
  



FILTER, Single Values
This example demonstrates table filtering using single values.

ABAP_SOURCE_CODE
DEMO CL_DEMO_FILTER_VALUE_CONDITION

ABAP_DESCRIPTION
Those lines are filtered from an internal table spfli_tab filled with flight data that have a specific value in the columns carrid and cityfrom and the result is assigned to an internal table extract. A suitable secondary key carr_city is defined for the internal table here.
A further internal table, rest, is given the same table filtering, but the addition EXCEPT is specified. The assertion ASSERT demonstrates that rest contains all lines from spfli_tab that are not in extract.