I have a code that add the amount from period 1 up to period 16 to get the total
"determines what periods have been requested and sums them accordingly
LOOP AT s_perio INTO wa_perio.
IF wa_perio+6(3) = space.
w_low = wa_perio+3(3).
w_high = wa_perio+3(3).
ELSE.
w_low = wa_perio+3(3).
IF wa_perio+6(3) = 12.
w_high = 16.
ELSE.
w_high = wa_perio+6(3).
ENDIF.
ENDIF.
ENDLOOP.
wa_times-sign = c_sign.
wa_times-option = c_option_bt.
wa_times-low = w_low.
wa_times-high = w_high.
APPEND wa_times TO times.
ADD st_linerec-wog001 THEN st_linerec-wog002 UNTIL st_linerec-wog016
GIVING w_total ACCORDING TO times.
Now i want to change the code from add then until... to ASSIGN and INCREMENT (since the first one is not used in classes, an obsolete statement). Am i supposed to use field symbol? and i'm not sure how to use INCREMENT for it.
Thanks.