ABAP internal table new syntax
reduce ..for.. :Used to determine whether there is data in field f that is not equal to A and not equal to M
点击查看代码
DATA(lv_exists) = REDUCE abap_bool(
INIT result = abap_false
FOR ls_row IN is_input-s_head
WHERE ( zgglx <> 'A' AND zgglx <> 'M' )
NEXT result = abap_true ).
Assign the data with field b equal to f in inner table A to inner table A1
VALUE FOR?
reduce for
点击查看代码
lt_heada = REDUCE #( INIT resulta = VALUE #( )
FOR line IN is_input-s_head
WHERE ( zgglx = 'A' )
NEXT resulta = VALUE #( BASE resulta ( line ) ) ).