Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

read table

Former Member
0 Kudos

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 .

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

in 10 itab data will be wthin same rage.

means itab 1 range 1 t0 5.

itab2 range 6 to 10 etc......

0 Kudos

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