Skip to Content

LY and CY for YTD & MTD values for User Entry Variable under 0CALMONTH

Dear All,
I need to calculate Current Year and Last Year for YTD & MTD values for a Key Figures based on the value that the User enters in the Variable under 0CALMONTH.

How we can write ABAP code to satisfy single User entry for all 4 Key figures.

Can you share the ABAP code for this requirement.

Your help will be greatly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 18, 2019 at 01:33 PM

    Hi Vijay,

    if you are not a programmer check out the Variable Type: Replacement by Variable.

    You could use a range restriction with the user input variable and the respective replacement variable with offsets.



    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.