09-26-2008 9:54 AM
Hi all,
my select-options is p_budat for bsad-budat and i want to divide this date as per month,day and year but it is accessing only last record from that final internal table.I have taken as loop at it_final where budat is initial.
regards,
simba.
09-26-2008 9:57 AM
Hi,
Can you give the code.
your requirment is not clear .
regrads,
Anirban
09-26-2008 11:46 AM
Hi,
Use following code to split the date into month,date & year.
data: date type c(2),
month type c(2),
year type c(4).
loop at itab into wa.
wa-date = wa-erdat+0(2).
wa-month = wa-erdat+3(2).
wa-year = wa-erdat+6(4).
endloop.
u will get all these value into different variables & u can use them according to u.
Regards.
Dheeraj