‎2008 Aug 18 6:27 AM
hi all,
i need to calculate the date.
inputs are date and days....... output should be in date.
for eg
input --- 12.04.2008 + 90 = date,
12.04.2008 + 180 = date.
please suggest a suitable function module
Regards
Suprith
‎2008 Aug 18 6:29 AM
‎2008 Aug 18 6:29 AM
‎2008 Aug 18 6:30 AM
‎2008 Aug 18 6:32 AM
hi prabhu
'RP_CALC_DATE_IN_INTERVAL' willnot work if the day is of 3 chars.
‎2008 Aug 18 6:42 AM
Hi ,
u can add no. of months in that case , but with out FM u can also try this one
date = date + 180.
u will get the same o/p.
Regards
Prabhu
‎2008 Aug 18 6:31 AM
Hi Suprith,
You can try this FM's:
DATE_IN_FUTURE
Calculate a date N days in the future.
RP_CALC_DATE_IN_INTERVAL
Add/subtract years/months/days from a date
With luck,
Pritam.
‎2008 Aug 18 6:31 AM
Hi
DATA :
w_d TYPE d,
w_days TYPE i VALUE 10,
w_final TYPE d.
w_d = sy-datum.
w_final = w_d + w_days.
WRITE :
w_final.Regards
Pavan
‎2008 Aug 18 6:32 AM
Hi ,
Try this FM//
RP_CALC_DATE_IN_INTERVAL u2013 Adds/subtracts years, months, days to/from date
Regards,
Sachin M M
‎2008 Aug 18 6:32 AM
‎2008 Aug 18 6:32 AM
Hi,
Check this Fm,
'RP_CALC_DATE_IN_INTERVAL'
data: w_date type sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 90
months = 0
signum = '+'
years = 0
importing
calc_date = w_date.
write: / w_date.Regards
Adil
‎2008 Aug 18 6:45 AM
‎2008 Aug 18 6:54 AM
Hi Suprith,
Use can check with the RP_CALC_DATE_IN_INTERVAL FM.
Here for the date at input we can add/substract the no: of Days/Months/Years.
Kindly let me know if this FM does not fit your requirement.
‎2008 Aug 18 6:58 AM
HI Suprith,
Use the Following Function Module
RP_CALC_DATE_IN_INTERVAL
Hope it will solve your problem,
Regards,
KP