Skip to Content
avatar image
Former Member

Date after 3 years...function module needed

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    May 26, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

  • May 26, 2006 at 02:16 PM

    hi,

    try this FM <b>RP_CALC_DATE_IN_INTERVAL</b>

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 02:20 PM

    hi

    try this FM

    <b>ADD_TIME_TO_DATE</b>

    Add comment
    10|10000 characters needed characters exceeded

  • May 26, 2006 at 02:20 PM
                                                                              
     Import parameters               Value                                                                                
    DATE                            26.05.2006                               
     DAYS                            00                                       
     MONTHS                          00                                       
     SIGNUM                          +                                        
     YEARS                           03                                                                                
    Export parameters               Value                                                                                
    CALC_DATE                       26.05.2009                                                                                
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 03: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

    Add comment
    10|10000 characters needed characters exceeded