‎2006 Mar 27 10:09 PM
I want to add days (numeric vales) to date. For example 03/27/2006 + 3 days = 03/30/2006.
Is there any FM for this?
Regards,
Arpit
‎2006 Mar 27 10:15 PM
Hi Arpit,
You can try this FM <b>RP_CALC_DATE_IN_INTERVAL</b>.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 3
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Mar 27 10:15 PM
Hi Arpit,
You can try this FM <b>RP_CALC_DATE_IN_INTERVAL</b>.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 3
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Mar 27 10:18 PM
Hi,
another option can be use function module SALP_CALC_DATE
IN_RECTYPE D (for Days)
IN_NBR_DWXMQY 10 (no of days)
IN_DATE (start date)
thanks
‎2006 Mar 27 10:19 PM
Hi Arpit,
You can directly add days to any date.No FM is required.
‎2006 Mar 27 10:19 PM
First you need to get the data into internal format. Then you can just add 3 days to it.
report zrich_0001 .
data: date(10) type c value '03/27/2006'.
data: datum type sy-datum.
start-of-selection.
call function 'CONVERT_DATE_TO_INTERNAL'
exporting
date_external = date
importing
date_internal = datum.
datum = datum + 3.
write:/ datum.
REgards,
Rich Heilman
‎2006 Mar 27 10:22 PM
Hi,
U can use the function module 'DATE_IN_FUTURE' to add or subtract days to date.
regards,
Sek s
‎2006 Mar 27 10:25 PM
If your date is in a field defined as a date field, just add your number to it.
Bruce