代码改变世界

CO:Internal Order Settlement

2012-12-25 17:30  VincentMK  阅读(1958)  评论(0编辑  收藏  举报

Internal Order 内部订单的结算是指按照订单上定义的结算规则,将其归集到的费用转移到其他接受对象。

主要步骤:

1、定义结算规则 KO02

2、维护结算参数

3、定义Allocation structure

4、定义Settlement profile

5、KO88执行规则

以下具体讲述:

1、定义结算规则 KO02

image

 

定义如下图的结算规则

就是将内部订单20001分配给订单20002,成本中心83100003、83100004,这是一个混合的结转。

image

2、维护结算参数

必须要维护分配的参数才能执行,这边你可能要问为什么,看完就明白为什么了。

image

 

在此需要维护Settlement Profile和Allocation Structure

Settlement Profile:用来定义使用何种分配方式:百分比还是数值,还有定义接受对象是何种类型:Order or CostCenter

Allocation Structure:用来定义订单允许的Source范围即CostElement,以及要结转到哪一个CostElement

一般规则是先创建Allocation Structure、然后再建Settlement Profile

image

3、定义Allocation structure

Tcode:OPKT

image

选择Allocation Structure,

新增条目,

其中:

Assignment:用来维护Order中什么样的费用应该结算到什么样的CostElement中

Source:用来维护cost element的范围,就是订单中所使用的CostElement

Settlement cost element 项用来维护需要结转给的对象类型及结转到哪个Cost Elem.

如果此处没有维护,在KO88 run时将会报错:

Complete allocation structure XX

image

 

Settlement cost element 项用来维护需要结转给的对象类型及结转到哪个Cost Elem.

在此我新建了两个类型,分别是结转到 订单ORD和成本中心CTR

image

 

至此已完成新建Allocation Structure。

4、定义Settlement profile

继续OPKT选择Settlement profile

image

 

新建条目,

Allocation structure: 填写刚刚创建的

Indicators:选择需要分配的形式

Valid Receivers:决定了接受者的类型

image

存盘。

5、KO88执行规则

推荐先测试执行,看看分配的结果是否对。

这里的currency是跟着Controlling Area走的。

image

测试无误后,可正式执行。

 

如果想要回转,可在此页面 Reverse

需要说明的是做回转可以使金额回转回来,但是已经转过去的Cost Elem还是会存在,不过是作为一个空的内容存在。

可测试之。

image

 

执行完后,可查看Internal Order报表Tcode:S_ALR_87012993

image

 

2012.12.25 圣诞