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

Function Module Query

Hello, I am looking for a function module where I can enter a date and also some number and it will give me future date. like

today is 16/05/2014

then I put 30

I want this function module to return

15/06/2014

Do we have any function module like this in BW?

Thanks.


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 16, 2014 at 04:56 AM

    Hi,

    You could just add the number to the date. No FM required.

    For instance, SY-DATUM + 30 will give you the same result.

    Instead of hardcoding the number (30) you can also use a variable instead.

    Regards,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2014 at 07:21 AM

    Venkat,You can use the FM

    DATE_CREATE

    In DATUM_EIN pass the date.

    in ANZAHL_KALTAGE parameter pass the no.of days.

    Hope this helps.

    Regards,

    AL

    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.