05-26-2006 3:12 PM
Hi
i need to find the date after 3 years from today. please let me know how (function module or class) to do this.
thanks
05-26-2006 3:16 PM
05-26-2006 3:17 PM
hi use this function module
CALL FUNCTION 'HR_SGPBS_ADD_TIME_TO_DATE'
EXPORTING
i_idate = date
i_time = 3
i_iprkz = Y
IMPORTING
O_IDATE = end-date
05-26-2006 3:18 PM
hi,
<b>
Use this function module.
RE_ADD_MONTH_TO_DATE
old date = sy-datum ( any date u want ).
months = 36</b>
<b>U can also use other FM</b>
-
Date Manipulation
SD_DATETIME_DIFFERENCE
DAYS_BETWEEN_TWO_DATES
MONTHS_BETWEEN_TWO_DATES.
RE_ADD_MONTH_TO_DATE
CALCULATE_DATE
HR_JP_MONTH_BEGIN_END_DATE
LAST_DAY_OF_MONTHS
ADD_TIME_TO_DATE
CONVERT_DATE_TO_ALPHA_NUMERIC
PERIOD_AND_DATE_CONVERT_OUTPUT
CONVERSION_EXIT_LDATE_OUTPUT
DATE_TO_DAY
CCM_GO_BACK_MONTHS
SD_DATETIME_DIFFERENCE
Give the difference in Days and Time for 2 dates
FIMA_DAYS_AND_MONTHS_AND_YEARS
Get number of days. Year, Months between two dates.
<b>
Mark Helpfull Answers</b>
Regards
Message was edited by: Manoj Gupta
Message was edited by: Manoj Gupta
05-26-2006 3:20 PM
FM: BKK_ADD_MONTH_TO_DATE
specify MONTHS = 36 or -36 as per requirement.
05-26-2006 3:20 PM
05-26-2006 3:20 PM
Import parameters Value
DATE 26.05.2006
DAYS 00
MONTHS 00
SIGNUM +
YEARS 03
Export parameters Value
CALC_DATE 26.05.2009
05-26-2006 3:33 PM
Hi if you would also like to get the day for the same date 3 years from now
use the function module
CALL FUNCTION 'DATE_TO_DAY'
EXPORTING
date = date
IMPORTING
WEEKDAY = day
05-26-2006 4:05 PM
chk this , works good
<b>SORRY MISREAD , this is after 3 days</b>
REPORT ychatest .
DATA : v_date1 LIKE sy-datum,
v_input LIKE rm06b-eeind .
WRITE sy-datum TO v_input DD/MM/YYYY.
CALL FUNCTION 'DATE_IN_FUTURE'
EXPORTING
anzahl_tage = '3'
import_datum = v_input
IMPORTING
export_datum_int_format = v_date1.
WRITE : v_date1.
.
Message was edited by: Chandrasekhar Jagarlamudi