LOOP AT itab INTO wa_tab.
...
...
...
wa_tab-fld1 = ’X’.
MODIFY itab FROM wa_tab.
ENDLOOP.
Field-Symboles:<fs> like itab .
LOOP AT itab ASSIGNING <fs>.
...
...
...
<fs>-fld1 = ’X’.
ENDLOOP.
建议在使用时,尽量用Loop…Assigning,因为它速度更快。
LOOP AT itab INTO wa_tab.
...
...
...
wa_tab-fld1 = ’X’.
MODIFY itab FROM wa_tab.
ENDLOOP.
Field-Symboles:<fs> like itab .
LOOP AT itab ASSIGNING <fs>.
...
...
...
<fs>-fld1 = ’X’.
ENDLOOP.
建议在使用时,尽量用Loop…Assigning,因为它速度更快。