‎2008 Oct 27 2:54 PM
LOOP AT i_supr_summ_format.
i_supr_summ_format-le1week = 0.
i_supr_summ_format-2weeks = 0.
i_supr_summ_format-tran_total = 0.
......
......
......
LOOP AT i_supr_summ_format_t
WHERE zzuserid = i_supr_summ_format-zzuserid.
i_supr_summ_format-le1week = i_supr_summ_format-le1week +
i_supr_summ_format_t-le1week.
i_supr_summ_format-2weeks = i_supr_summ_format-2weeks +
i_supr_summ_format_t-2weeks.
......
......
......
i_supr_summ_format-tran_total = i_supr_summ_format-tran_total +
i_supr_summ_format_t-tran_total.
ENDLOOP.
MODIFY i_supr_summ_format transporting le1week 2weeks 3weeks 4weeks 5weeks 6weeks gt6weeks tran_total.
ENDLOOP.
Enhanced code check gives me a warning " Nesting: LOOP/ENDLOOP Loop Inside LOOP/ENDLOOP '
What am I doing wrong?
‎2008 Oct 27 2:59 PM
‎2008 Oct 27 2:59 PM
‎2008 Oct 27 3:22 PM
loop in side a loop is not generally accepted in many client locations and even SAP doesnot recommend it .. alternative for loop in a loop is ..
loop at itab...
Do...
read table Itab2 into wa_itab index sy-index... or sy-tabix..
enddo.
endloop.