如果出现未分配差异,需要对数据进行查找和分析,第一个需要使用的工具就是 SAP 的值流监视器 (CKMVFM),尽管很多场景下 CKMVFM 也看不出来。SAP oss note 2447218 讲解了在 price limiter quantity 对未分配差异的计算逻辑。note 举了一个例子,比较容易理解。什么是 price limiter quantity 呢,简单来说,有些业务并不会有物料的数量的变更,但会产生差异 (主要是价格差异),比如发票校验、生产订单结算、MR22做物料价值调整。SAP对这些业务会进行数量的统计,然后在分配差异的时候考虑在内。上一篇所举的发票数量超过库存数量,就是一个典型例子。
The price limiter quantity (CKMLPP-PBPOPO) is a statistical quantity information in case of price difference postings without actual quantity movement, for example invoices, order settlements, debit and credit postings with MR22. The idea behind the price limiter quantity is the allocation of these price differences by period.
2447218 - CKM3: Calculation for ‘Not Distributed’ price differences as per price limiter logic
未分配差异的计算逻辑:price limiter quantity > 累计库存数量,则超出的部分计入未分配差异。
使用 note 2447218 的例子说明计算的逻辑:
未分配差异 -500,000,我们来分析未分配差异是如何计算的。执行事务码 CKMVFM,选中物料那一行,点击未分配按钮,出现如下界面:
因为后继调整数量 628 超过累计库存数量 314,所以超出部分计入未分配差异。公式为:
后继调整的价格差异 * (后继调整数量 - 累计库存数量) / 后继调整数量 :
-1,000,000 * (628 - 314) / 314 = -500,000
其实就是后继调整引起的价格差异,就超出部分按比例计入未分配差异。