Hi,
I am looking for help so I can run this logic in a reasonable time duration. Basically what it does is to allocate the promotion cost to base level of the Distributor and Product dimension by using a ratio account. The logic works if I only ran it for 1 distributor parent and for a month. I am planning to run it by month but at least I need to run it for all distributor parents. I tried running it that way, it gets hung up. Not all intersections will have data so I am wondering if there is a way to make this logic to do the calculation only for intersections that has Promotion Cost.
Any help is very much appreciated.
Thank you so much
Yani
*SELECT (%DISTRIB%, "[ID]", "DISTRIBUTOR", "[REVPLAN_PROMO_LVL]='Y' AND [INPUT_MEMBER]='N'")
*SELECT (%BP%, "[ID]", "PRODUCT", '[MC_LEVEL] = 'Brand Package' AND [INPUT_MEMBER]='N'")
*FOR %D%=%DISTRIB%
*FOR %P%=%BP%
*XDIM_MEMBERSET RPTCURRENCY = USD
*RUNALLOCATION
*FACTOR = USING
*DIM DISTRIBUTOR WHAT=%D%_I; WHERE=BAS(%D%); USING=<<<; TOTAL=<<<;
*DIM PRODUCT WHAT=%P%_I; WHERE=BAS(%P%); USING=<<<; TOTAL=<<<;
*DIM DATASRC WHAT=TEST+DATASRC1; WHERE=TEST_DATASRC2; UISNG=TEST_DATASRC1; TOTAL=<<<;
*DIM REVACCOUNT WHAT=PROMOTION_COST; WHERE=<<<; USING=STW_BASE_PCT; TOTAL=<<<;
*DIM UOM WHAT=DOLLARS; WHERE=<<<; USING=BARRELS; TOTAL=<<<;
*ENDALLOCATION
*NEXT
*NEXT