Skip to Content

macro copy future bucket qty to N-1 from key figure

Hi Gurus,

We are planning to write a macro.

Can any one can help me in copying the qty of N to N-1?

We have 1 Key figure values where we wanted the values of N to move to N-1 bucket.

Thanks in advance

Regards,

Rajesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 08, 2014 at 06:04 PM

    Hello Rajesh.

    Please refer below sample example in 9AEXAMPLES View( MacroExamples) macrobook using /sapapo/advm.

    Here is link to SAP Help which has details on this function or other functions.

    Date Functions - Planning Area Administration - SAP Library

    Hope this will help.

    Thank you

    Satish Waghmare


    Capture.JPG (57.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 04:43 PM

    Hi

    You could use the macro function TIMESHIFT_BACKWARDS()

    From SAP Help:

    TIMESHIFT_BACKWARDS( X1 ; ... ; Xn ; Y1 ; ... ; Yn ) shifts the values of time series X1 through Xn backward in time by the number of periods given in time series Y1 through Yn.

    Example:

    The time series looks like this: X 10 20 30 40 50 Y 1 2 1 3 1. The result looks like this: 30 40 30 - 50 -

    The value 10 is shifted back one period in time, the value 20 is shifted back two periods in time, and so on.

    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.