2006 Nov 28 6:59 AM
My purpose is to add days to a particular date and get the resulting date. I tried using this function module "RP_CALC_DATE_IN_INTERVAL", but the problem is this function module only accepts two digits for days. i.e. i am only able to add a maximum of 99 days to a particular date, but i do want to go further and add more so please tell me if there is any function module which shall help me add 3 digit days to a date.
2006 Nov 28 7:12 AM
Hey,
You can simply use as following
Data: date type sy-datum.
date = date + 100.
Hope this helps.
Thanks
Naresh
2006 Nov 28 7:10 AM
2006 Nov 28 7:10 AM
Hi Kiran,
You can use the FM 'HR_SEN_CALE_DAYS_DATE' to calculate date. This FM also gives you an option of giving year, month or days from a date to calculate next date.
Hope this helps!
Regards,
Saurabh
2006 Nov 28 7:12 AM
Hi Kiran
You can simply add the number of days to the date.
Check below example:
data: l_date like sy-datum.
l_date = sy-datum + 365.
write:/ l_date.
Kind Regards
Eswar
2006 Nov 28 7:12 AM
Hi Kiran,
You can directly add days to the date.
Eg:
DATA date LIKE sy-datum.
DATA days TYPE i.
date = sy-datum.
days = 100.
date = date + days.
WRITE date.
Regards
Wenceslaus
2006 Nov 28 7:12 AM
Hey,
You can simply use as following
Data: date type sy-datum.
date = date + 100.
Hope this helps.
Thanks
Naresh
2006 Nov 28 7:16 AM
hi
use the same function module ...it works fine ..... please note there r other options like month and year ...so u can very well pass any number of days by using month and year field...
regards
aswin