‎2008 Jul 25 2:04 PM
hii all,
i want add no. of days into current date.
please provide me the function module for this functionality
the output like:
20080112 + 025. = 20080206
thanks
rahul.
‎2008 Jul 25 2:06 PM
why u need FM. You simply write the stament directly in your program. It will work perfectly fine.
data: l_v_date type sydatum value '20080112',
l_v_end_date type sydatum.
l_v_end_date = l_v_date + 25.
Edited by: Mainak Aich on Jul 25, 2008 6:37 PM
‎2008 Jul 25 2:06 PM
Hi,
Try this FM,
RP_CALC_DATE_IN_INTERVAL
Add/subtract years/months/days from a date
Regards
Adil
‎2008 Jul 25 2:06 PM
‎2008 Jul 25 2:06 PM
hiiii
use following FM
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 10
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
write: / wa_date.regards
twinkal
‎2008 Jul 25 2:07 PM
check the Function
RP_CALC_DATE_IN_INTERVAL
You search Before asking
‎2008 Jul 25 2:07 PM
U can directly add date ..
data : v_date like sy-datum.
v_date = sy-datum.
v_date = v_date + 25.
write 😕 v_date.
‎2008 Jul 25 2:07 PM
Hi
try this :
RP_CALC_DATE_IN_INTERVAL
http://www.erpgenie.com/abap/functions.htm
With Regards
Nikunj Shah
‎2008 Jul 25 2:08 PM
Hi
Check this link
http://www.abapcode.info/2008/01/sap-function-module-for-date-and-time.html
Regards
Narin Nandivada
‎2008 Jul 25 2:09 PM
Hi Babbal,
chech the FM's below:
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
DATE_IN_FUTURE Calculate a date N days in the future.
With luck,
Pritam.