05-07-2008 6:33 PM
hello to all,
In one internal table itab1 there are 10 fields out of one is date field having different date range.
I want to move data to other internal tables having different date range(suppose 10 date ranges r in itab1 ) to different 10 itabs.
can u tell how to move data from itab1 to other 10 itabs.
Thanks .
05-08-2008 5:05 AM
hi,
ur question is not clear,
u have 10 diff date range, u want to move one each in to 10 diff tables or u want to move all 10 dates to all 10 internal tables?
do u have any condition to do the same or jus move the dates??
regards,
madhumitha
05-08-2008 9:34 PM
in 10 itab data will be wthin same rage.
means itab 1 range 1 t0 5.
itab2 range 6 to 10 etc......
05-08-2008 9:56 PM
try this -
loop at itab into wa_itab.
if wa_itab-date1 >= range 1 and wa_itab-date1 <= range2.
append wa_itab to itab2.
endif.
if wa_itab1-date1 > = range2 and wa_itab-date1<= range3.
append wa_itab to itab3.
endif.
and so on...
Endloop.
Regards,
Amit