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

How to get next day date based on current day date?

Hello Experts,

My requirement is to get the default date for the field 'Closing Date' in Opportunity details page based on 'Start Date'.

I'm able to fetch the 'start date' value into the 'closing date' field but how to get the next date value of the start date.

Regards

DNR Varma

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2011 at 05:57 PM

    Hi,

    Write a peace of code to achieve this..

    data:wk_datum type sy-datum.

    wk_datum = sy-datum

    wk_datum = wk_datum + 10.

    Follow this link http://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations.

    hope this will help you, reward if useful.

    Kind Regards,

    Dhananjay.

    Edited by: Dhananjay SAP CRM on Nov 25, 2011 7:06 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the response.

      The function modules which are available in that link does not exist in SAP CRM.

      Any how, I have resolved the problem myself by using the below function modules.

      Convert date to internal format with FM 'CONVERT_DATE_TO_INTERNAL'

      Add days/months/years to that date with FM 'FIMA_DATE_CREATE'

      Again convert to external format using the FM 'CONVERT_DATE_TO_EXTERNAL'.

      Regards

      DNR Varma

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.