Map Table with FOR IN Loop
Since ABAP 740 you can use the FOR IN
Operator.
lt_keys_out = VALUE #( FOR ls_key IN lt_keys_in ( VALUE #( key = ls_key-artikel_key ) ) ).
In this example we want to map the table lt_keys_in
to the table lt_keys_out
and more specifically the attribute artikel_key
onto key
. The FOR
Operator in Combination with the VALUE
Operator letβs us do that easily in one line.