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

To calculate next month in a customer exit Variable

I need to derive the next month.

If the user enters 02-08-2010. Then in anothr variable if user enters 6 I should get 02-01-2011. Is there any functional module to derive next month based on the numeric value.

Anil

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2010 at 02:37 PM

    For function module RP_CALC_DATE_IN_INTERVAL in ECC is there a similar function module in BI.

    Anil

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2010 at 03:43 AM

    Hi Anil,

    Here I understand of what your query is; user enters a date to a variable, lets call v1 and no of months to another variable v2, where it should retrieve the data for; future date = entered date v1 + v2 no of months?

    If it is the case:

    there is a function module that you can manipulate in user exit. below is the procedure of how to achieve this;

    - create variable v1 for date available for user input,

    - create variable v2 for no of months available for user input,

    - create variable v3 for result date on user exit and not available for user input.

    - go to cmod and follow the below exit code for v3 variable.

    istep 2.

    when variable v3.

    data: tempdate type datum, noofmonths type i.

    tempdate = v1.

    noofmonths = v2.

    call function 'SALP_CALC_DATE'

    exporting

    in_rectype = 'M'

    in_nbr_dwxmqy = noofmonths

    in_date = tempdate

    importing

    out_date = result.

    The above code will result the variable value as v1+v2 months.

    I have done this before.

    Please let me know if anything specific.

    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.