ASSIGNING

www.4AP.de - ABAP ASSIGNING

Beispielcoding: ASSIGNING (kopieren erlaubt aber auf eigene Gefahr :-))

 

DATA: lt_tabelle TYPE mara_tab.
FIELD-SYMBOLS: <lt_tabelle> LIKE LINE OF lt_tabelle.

* füllen
APPEND INITIAL LINE TO lt_tabelle ASSIGNING <lt_tabelle>.
<lt_tabelle>-bismt = 'alte Matnr'.

LOOP AT lt_tabelle ASSIGNING <lt_tabelle>.
  <lt_tabelle>-bismt = 'neue Matnr'.
* mach sonst noch was
ENDLOOP.

READ TABLE lt_tabelle INDEX 1 ASSIGNING <lt_tabelle>.