Skip to Content
0
Jul 16, 2015 at 03:08 PM

RUNALLOCATION by totals

22 Views

Hi All,

Using BPC 10.0 NW, I'd like to create allocation script.

Dimensions:

CATEGORY

TIME

PRODUCT

FACTORY

FLOW

Business scenario: we have production volumes for each PRODUCT, but without FACTORY. Values are imported into FLOW=IMPORTED with DUMMY factory. Each PRODUCT member has an attribute DRIVER, in which there is information about ID of driver which should be used to allocate values. Many products are connected to one driver.

We would like to create script which will allocate imported data based on driver attribute, but not for each product seperate, but using common calculated USING/TOTAL so all products would have same allocation.

We were using *RUNALLOCATION, and script allocated values but for each product seperately (script below).

Is there any method in *RUNALLOCATION to achieve it? (except copy totals into seperate dummy product etc.)

*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%

*XDIM_MEMBERSET TIME = %TIME_SET%

*XDIM_MEMBERSET FACTORY = DUMMY

*XDIM_MEMBERSET PRODUCT = BAS(TOTAL_PRODUCT)

*XDIM_MEMBERSET FLOW = IMPORTED

*XDIM_MEMBERSET ACCOUNT = VOLUME

*RUNALLOCATION

*FACTOR=USING/TOTAL

*DIM FACTORY WHAT=DUMMY; WHERE=BAS(TOTAL_FACTORY); USING=BAS(TOTAL_FACTORY); TOTAL=<<<

*DIM FLOW WHAT=IMPORTED; WHERE=ALLOCATED; USING=DRIVER_SKUCOUNT; TOTAL=<<<

*ENDALLOCATION