Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Date after 3 years...function module needed

Former Member
0 Kudos

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

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

hi,

try this FM <b>RP_CALC_DATE_IN_INTERVAL</b>

Regards

vijay

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

FM: BKK_ADD_MONTH_TO_DATE

specify MONTHS = 36 or -36 as per requirement.

Former Member
0 Kudos

hi

try this FM

<b>ADD_TIME_TO_DATE</b>

former_member188685
Active Contributor
0 Kudos
                                                                          
 Import parameters               Value                                                                                
DATE                            26.05.2006                               
 DAYS                            00                                       
 MONTHS                          00                                       
 SIGNUM                          +                                        
 YEARS                           03                                                                                
Export parameters               Value                                                                                
CALC_DATE                       26.05.2009                                                                                

Former Member
0 Kudos

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

Former Member
0 Kudos

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