Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RUNALLOCATION in Default Logic - Question

Hello,

I am trying to distribute from members 2015.INP to base level members of 2015.TOTAL which are 2015.01,2015.01...

While this script is working, I would like to limit the RUNALLOCATION program to start only when a .INP member is changed. In the following case the RUNALLOCATION is executed every time no matter I do changes only to the base level members of .TOTAL.

*SELECT (%YR%, "[YEAR]", S_TIME, "[ID] = %S_TIME_SET%")

*WHEN S_TIME

  *IS <> %YR%.INP

       *RUNALLOCATION

       *FACTOR = 1/12

       *DIM S_TIME WHAT = %YR%.INP ;WHERE = BAS(%YR%.TOTAL); Using = >>>; Total = %YR%.INP

       *ENDALLOCATION

*ENDWHEN

With *When and FOR/NEXT that could be done, but what about RUNALLOCATION?

Former Member
replied

Please look on my code from previous answer - it will run RUNALLOCATION only if INP member is changed:

*SELECT (%YRS%, "[YEAR]", S_TIME, "[ID] = %S_TIME_SET% AND [ISINP]=Y")

ISINP - TIME dimension property set to Y for YYYY.INP members

For 2015.03 "15" - %YRS% will be empty (ISINP<>Y)! End FOR/NEXT will not run...

Vadim

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question