Use APPLY_FILTER( ) Function
APPLY_FILTER( ) function can be used on internal table or DB tables to get all the items that match the filter condition.
In below the APPLY_FILTER( ) is applied on the DB table and then on the internal table.

Program that calls the AMDP Procedure method.

The debug details- The DB table consists of 26 records for the client and it gives back the result where the FLTYPE = X.
Result filter table – when filter is applied on the DB table.

Result filter table – when filter is applied on the internal table.

The source internal table-
