Старый синтаксис
1 2 3 4 5 6 7 8 9 |
LOOP AT lt_all_monsters INTO ls_all_monsters WHERE sanity > 25 AND sanity < 75. CLEAR ls_averagely_mad_monsters. MOVE-CORRESPONDING ls_all_monsters TO ls_averagely_mad_monsters. APPEND ls_averagely_mad_monsters TO lt_averagely_mad_monsters. ENDLOOP. |
Новый синтаксис
1 2 3 4 |
DATA( lt_averagely_mad_monsters ) = FILTER #( lt_all_monsters USING KEY sanity WHERE sanity > 25 AND sanity<75). |