Skip to Content
1
Apr 11, 2017 at 09:27 AM

Loop thorugh and change data in ABAp 7.40/7.50

210 Views

Hi,

In abap 7.40/7.50, is there an easier way to loop through an itab and change data than this example?

Didn't find a way to use gt_data = VALUE #( ... )

* Get mara
Select *
from mara
into table @data(lt_mara).

* Reconcile

Loop at gt_data assigning field-symbol(<ls_data>).
<ls_data>-bismt = lt_mara[ matnr = <ls_data-matnr ]-bismt.
Endloop.