Application Development and Automation 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 only

date problem

Former Member
0 Likes
433

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
Read only

Former Member
0 Likes
402

Hi,

Can you give the code.

your requirment is not clear .

regrads,

Anirban

Read only

Former Member
0 Likes
402

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