SAP MM批次管理(3)批次级别

三、批次级别

每个物料主数据都通过一个由数字、或字母、或数字字母混合的编码进行标识,即物料编码,物料编码在集团级别唯一。

批次主数据与物料主数据一样,也需要一个编码来标识,即批次编码(或编号),批次编码有三个级别(level):集团级别、物料级别、工厂级别,你可以决定批次编码在哪个级别唯一。

在IMG路径 SPRO->后勤-常规->批次管理->指定批级别并激活状态管理 下配置批次级别,

下面是对各个批次级别的介绍:

若批次级别是集团级别和物料级别,批次分类类别都是023,批次数据主要存储在表MCH1;若批次级别是工厂级别,批次分类类别都是022,批次数据主要存储在表MCHA。后面批次的分类和特性中会用到。

如果系统在集团层级启用了批次管理,那么对于某个物料是否启用了批次管理,要检查MARA表的XCHPF字段,如果值为X,则说明启用了批次管理,如果值为空,则没有启用批次管理。

如果系统在工厂层级启用了批次管理,那么要检查MARC表的XCHPF字段,如果值为X,则说明启用了批次管理,如果值为空,则没有启用批次管理。

SAP系统批次默认的级别是工厂级别,批次级别可以由较低级别向较高级别转换,若向较低级别转换,只能由集团级别转换为物料级别(是因为集团级别和物料级别的批次数据表都是MCH1,关键字段一样),批次级别存入表TCUCH中,

批次级别之间的转换如下图所示:

如果不小心把批次级别设成了物料级别,或需求有变,就真的不能转换成工厂级别吗?当然不是,不过方法比较麻烦,方法来自SAP Notes:

Note 41715 - Resetting batch level from material to plant level

1. For all releases lower than Release 4.5B, implement the corrections and the modification in the report RM07CHDX as described in the correction instructions.

2. Create the report ZCHTCUCH, which is specified in the attachment.

3. Run this report in the clients for which you want to reset batch level to plant level.

4. Call transaction OMCT.

5. Check whether the batch level for "Batch unique at plant level" is set.

6. Implement Notes 821891, 944278, 950540 and 1091613 if you have not already done so (or you have not imported the corresponding Support Package).

7. Execute the function "Batch Level -> Conversion".

8. Define a plant for a plant view that may be missing.

9. Always execute the report in the test mode first. Analyze the error log.

10. If no errors occur,  you can execute the report in production mode.

11. If you are working with batch long texts, first execute the report ZM07CHDX_TEXT in test mode.

附:

ZCHTCUCH源代码:

REPORT ZCHTCUCH. 

TABLES: TCUCH.

SELECT * FROM TCUCH. 

  IF TCUCH-KZDCH NE '0'. 

      TCUCH-KZDCH = '0'. 

      UPDATE TCUCH. 

      WRITE:/ 'TCUCH changed to plant-level'. 

  ELSE. 

      WRITE:/ 'TCUCH already changed to plant-level'.  

  ENDIF. 

ENDSELECT.

相关程序: 

RM07CHDX 

RM07CHZX

  • 2
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值