I want to run allocation logic on condition.
My allocation logic is as follows:
// COPYING ABOVE RATE TO ALL HQs
*XDIM_MEMBERSET TIME = BAS(%TIME_SET%)
*XDIM_MEMBERSET CATEGORY=Actual
*XDIM_MEMBERSET ZVALUATION = RATE
*XDIM_MEMBERSET ACCOUNT = PL010
*XDIM_MEMBERSET RPTCURRENCY = <ALL>
*RUNALLOCATION //COPYING RATE FROM NO_HQ TO ALL HQ
*FACTOR = 1
*DIM ZHQ_CNTRY_CUST WHAT = NO_HQ; WHERE=BAS(ALL_HQ)
*ENDALLOCATION
*COMMIT
What above script does is just copies data from "NO_HQ" and replicates it on BAS(ALL_HQ)
But I want to copy the rates to BAS(ALL_HQ) on condition that member of ALL_HQ should have value in ZVALUATION=VALUE
Eg:
ZVALUATION | VALUE | RATE | |
ZHQ_CNTRY_CUST | (Data available from BW | Remark | |
NO_HQ | 50 | calculated by different logic script | |
HQ1 | 50000 | 50 | Want to copy rate |
HQ2 | 0 | Don’t want to copy rate | |
HQ3 | 60000 | 50 | Want to copy rate |
HQ4 | 90000 | 50 | Want to copy rate |
HQ5 | 0 | Don’t want to copy rate |