ALLOCATION
什么是ALLOCATION
ALLOCATION用于BPC中费用的分摊
分以下四大要素:
-
What needs to be allocated
-
Where the results of the allocation must be written
-
What driver should be used to perform the allocation ,factor
-
How the allocation driver should be used,source of factor
ALLOCATION的代码
- *RUNALLOCATION
- *FACTOR = {factor expression}
- *DIM {dimension name} WHAT={expression} ;WHERE={expression}; Using={expression}; Total={expression}
- *ENDALLOCATION
例子1.
根据收入在各家公司的比例,将c100里的成本分摊到这些公司里面(c100,c101,c200)
执行ALLOCATION 之前:
RB_ACCOUNT | RB_ENTITY | TIME-2017.03 | |
---|---|---|---|
410000 - Revenue | C202 - 上海进出口贸易公司 | 10000 | |
410000 - Revenue | C100 - 信息技术集团 | ||
410000 - Revenue | C101 - 电器集团 | 30000 | |
510000 - Cost of Goods Sold | C202 - 上海进出口贸易公司 | ||
510000 - Cost of Goods Sold | C100 - 信息技术集团 | 20000 | |
510000 - Cost of Goods Sold | C101 - 电器集团 |
执行ALLOCATION SCRIPT之后效果如下:
RB_ACCOUNT | RB_ENTITY | TIME-2017.03 | |
---|---|---|---|
410000 - Revenue | C202 - 上海进出口贸易公司 | 10000 | |
410000 - Revenue | C100 - 信息技术集团 | ||
410000 - Revenue | C101 - 电器集团 | 30000 | |
510000 - Cost of Goods Sold | C202 - 上海进出口贸易公司 | 5000 | |
510000 - Cost of Goods Sold | C100 - 信息技术集团 | 0.00 | |
510000 - Cost of Goods Sold | C101 - 电器集团 | 15000 |
script:
- *RUNALLOCATION
- *FACTOR = USING/TOTAL
- *DIM RB_ACCOUNT WHAT=510000 ;WHERE=<<<; Using=410000; Total=<<<;
- *DIM RB_ENTITY WHAT=C100;WHERE=C100,C101,C202;USING=<<<;Total=<<<;
- *DIM TIME WHAT=2017.03;WHERE=<<<;USING=<<<;TOTAL=<<<;
- *ENDALLOCATION
分解步骤:
1.改写表格,金额居右
ACCOUNT | ACCOUNT | ||
---|---|---|---|
ENTITY | TIME | 410000 | 510000 |
C202 | 2017.03 | 10000.00 | ? |
C100 | 2017.03 | 0 | 20000.00 |
C101 | 2017.03 | 30000.00 | ? |
2.整理四要素(每行从左到右)
what=确认除数
WHERE=商的位置
USING=每列上的分摊因子 (因子)
TOTAL=整列要素的总和 (被除数)
ACCOUNT | ENTITY | TIME | |
---|---|---|---|
WHAT | 510000 | C100 | 2017.03 |
WHERE | 510000 | ALL | 2017.03 |
USING | 410000 | ALL | 2017.03 |
TOTAL | 410000 | ALL | 2017.03 |