Skip to Content
author's profile photo Former Member
Former Member

Getting the Date

Hi All,,

I need to get a date which is prior to 18 months from the current date. . if today date is 31/03/2009

I need to get a date of 18months older than current date..Can any body tell me how we can get this date..

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 06:03 PM

    Hi,

    [Search|https://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations] the SCN you can find lot of threads for your question.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 31, 2009 at 06:07 PM

    use fm : HR_99S_DATE_ADD_SUB_DURATION

    *      CALL FUNCTION 'HR_99S_DATE_ADD_SUB_DURATION'
    *        EXPORTING
    *          im_date     = lv_ersda   " from date 
    *          im_operator = '+'          " add or subtract
    *          im_duration = t_duration " structure to add days/ months/ years
    *        IMPORTING
    *          ex_date     = lv_vfdat. "output date

    Please search next time before you post a new question.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 08:46 PM

    Asked and answered many times before. Please search.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.