Skip to Content
0
Former Member
Jan 03, 2008 at 03:42 PM

need help with loop

499 Views

hallow

i need help with loop that i do for numbers of month between dates i give eg.

if i have to dates like l_datefrom 012007

and l_dateto like 032008

i wont to do this loop 14 times (the number of month between this 2 dates)

*---this i wont to run in the loop

012007 "l_datefrom

022007 "l_dateto

022007 "l_datefrom

032007 "l_dateto

032007 "l_datefrom

042007 "l_dateto

how i increase all times the month by one in the loop

and after 12 month also increase year?

best regards

i reward

do no_month times."14

loop at itab

CALL FUNCTION 'Z_GET_PRO

EXPORTING

project = gt_prps-psphi

date_from = l_datefrom

date_to = l_dateto.

append....

endloop.

enddo.