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: 

date problem

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Can you give the code.

your requirment is not clear .

regrads,

Anirban

Former Member
0 Kudos

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