With release 7.40 we have plenty of ways to filter internal table data. For example, one can use such ABAP constructs:
FILTER operator
DATA(lt_extract) =
FILTER #( lt_bseg USING KEY matnr_bwtar WHERE matnr = CONV matnr( SPACE )
AND bwtar = CONV bwtar( SPACE ) ).
FOR table iterations with VALUE construction operator
DATA(lt_extract) =
VALUE tty_bseg( FOR line IN lt_bseg WHERE ( matnr EQ SPACE AND bwtar EQ SPACE ) ( line ) ).
Is there any performance gain of one over another and why?
Maybe you know any other syntax to perform internal tables filtering efficiently?