on 09-24-2005 11:04 AM
can i make a program for calender actually i have to run a calender logic and select the date and modify them with some value.
I just need to ask is there any function module that runs a calender logic by picking the input date .
Eg if i put a input date say 03.04.2005 the program then automatically run for all the date of that month and year, i mean i can get the all the dates for that month and year...
Please help
Hi Mave,
If your requirement is to get all the days between two dates then you can use this fm DAY_ATTRIBUTES_GET.
for ex, if the date is 03.04.2005 then you can specify
it <b>date_from</b> importing parameter and specify last day of the year in the <b>date_to</b> parameter.
Then it will give back all the days between these two dates in the internal table <b>day_attributes</b>.
You can loop at this table and then do whatever you are required to do..
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the internal table for day attributes should be declared as below.
data: itab_day_attributes type standard table of CASDAYATTR .
how to find what should be the type of the itab/variable to be passed to a FM.
go to transaction SE37 to view the definition of the function and see whats the referece variable used.
Hope this helps.
Regards
Raja
Hi Mave ,
If you want an internal table with the dates of the month
just try this -- . Instead of sy-datum you can pass any date and see the output .
parameters Pdate like sy-datum.
data : begin of itab occurs 0 ,
date like sy-datum,
end of itab.
Data Month(2) type N.
itab-date = pdate.
itab-date+6(02) = 01.
month = itab+4(2).
do .
if itab+4(2) NE month.
exit.
endif.
append itab .
itab-date = itab-date + 1.
enddo.
loop at itab.
write 😕 itab-date.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
See if you can us FM - DAY_ATTRIBUTES_GET
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.