Skip to Content
avatar image
Former Member

Using Layout Variable in DP Macro

Hi,

The requirement which I want to implement is if Sales Orders are greater than zero at location level, then value of Forecast should be equal to Sales Orders. For this I wrote the macro which runs at location level to set the value of flag to 1 if sales orders is greater than zero else 0 using LAYOUTVARIABLE_SET.

Now I am referncing this value of flag(using LAYOUTVAR_VALUE) in other macro. However this macro is running at lowest level i.e. at location,product,country etc. and for some reason it is not getting the value of flag set in other macro.

Please let me know how to make it work or is there any other logic to implement it.

Thanks,

Alok

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 28, 2012 at 09:04 AM

    Hi,

    are you running this two macros together (in a collective macro) or one after the other? Also, are you running them as a background job or interactively?

    regards,

    J.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2012 at 09:35 AM

    Hi ,

    Not sure y we need Laoutvar Value,

    Let expect Backlog is SO and  Remaining Unconstrained Fcst as Forecast.

    You can create a New KF and write logic as below :

    Suman


    Capture.PNG (14.3 kB)
    Capture.PNG (4.9 kB)
    Add comment
    10|10000 characters needed characters exceeded