SAP BOM的读取逻辑

1 Search Material, Plant and Material Description.
Read the material number, plant and material description from join of MARA, MARC and MAKT using the following conditions:

Material Number (MARA-MATNR) in input material (select-options) and
Plant (MARC-WERKS) in input plant (select-options) and
Material type (MARA-MTART) in input material type (select-options).
Note: Proceeding to Step 2 or 3 or 4 depends on the input radio button for Production or Engineering or ALL BOM option.

2. Search for BOM – Engineering.
BOM link search from MAST -
Select material numbers and BOM link from MAST based on the material numbers selected above using the following conditions:
Material (MAST-MATNR) = Materials selected above and
Plant (MAST–WERKS) = As in input and
BOM usage (MAST-STLAN) = 2 (Engineering usage).
Read BOM Header and Item.
Read BOM Header details as per data mapping (Section 5.2) from table STKO using the
conditions:
BOM Number (STKO-STLNR) = BOM number got in previous step and
BOM alternative (STKO-STLAL) = BOM alternative got in previous step.

Read Item details as per data mapping from STOP using the conditions :
BOM number (STOP-STLNR) = STKO-STNLR.
Read BOM text from table STZU.

3. Search BOM – Production.
BOM link search from MAST -
Select material numbers and BOM link from MAST based on the material numbers selected above using the following conditions:
Material (MAST-MATNR) = Materials selected above and
Plant (MAST–WERKS) = As in input and
BOM usage (MAST-STLAN) = 1 (Production usage).

Read BOM Header and Item.
Read BOM Header details as per data mapping (Section 5.2) from table STKO using the
conditions:
BOM Number (STKO-STLNR) = BOM number got in previous step and
BOM alternative (STKO-STLAL) = BOM alternative got in previous step.

Read Item details as per data mapping (Section 5.2) from table STOP using the
conditions:
BOM number (STOP-STLNR) = STKO-STNLR.
Read BOM text from table STZU.

Search for Resource / Production Version (Production BOM’s only)

Read Production Version and Resource as per data mapping (Section 5.2) from table MKAL using the conditions:
Material number (MKAL–MATNR) = Material number from above selection (MAST) And
Plant (MKAL–WERKS) = Plant from above selection (MAST)
And
Alternative BOM (MKAL-STLAL) = Alternative BOM from above selection (MAST)
And
BOM Usage (MKAL-STLAN) = 1 (Production BOM).

Note:
1. If no production version exists for any of the BOM’s write such records at the bottom of the report under the heading “No Production Version Exists (Production BOM’s)”.
2. Sort the output on Plant, Usage and then on Material.
3. If multiple plants then the report will be displayed Plant wise.

• Header to be displayed for Production / Engineering BOM option.

4. Material BOM Comparison.
Search for BOM’s
BOM link search from MAST -
Select material numbers and BOM link from MAST based on the material numbers selected above using the following conditions:
Material (MAST-MATNR) = Materials selected above and
Plant (MAST–WERKS) = As in input.

Read BOM Header’s
Read BOM Header details as per data mapping (Section 5.2) from table STKO using the
conditions:
BOM Number (STKO-STLNR) = BOM number got in previous step and
BOM alternative (STKO-STLAL) = BOM alternative got in previous step.

Read Item details as per data mapping from STPO using the conditions:
BOM number (STPO-STLNR) = STKO-STNLR.

相关表列表:
MAST Material BOM
STKO BOM Header
STPO BOM Positions (detail)
MAPL Assignment fo Task Lists to Materials
PLKO Routing Group Header
PLSO Routing Group Sequence
PLPO Routing Group Operations
AFKO Production Order Header
AFPO Production Order Position (details)

可用函数
CSAP_MAT_BOM_READ

来自:https://www.sdn.sap.com/irj/sdn/thread?forumID=50&threadID=75996

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/CompassButton/archive/2006/10/21/1343853.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SAP BOM多层管理是指在SAP系统中对产品结构进行分层管理的功能。BOM是产品结构清单的英文缩写,它描述了一个产品的所有组成部分和它们之间的关系。 在SAP系统中,BOM通常采用多层结构来组织。这意味着一个产品可以由多个子组件组成,而每个子组件又可以进一步细分为更小的子组件。这种层级结构的管理可以帮助企业更好地了解产品的构成,从而更好地进行生产计划和物料采购。 通过SAP系统的BOM多层管理功能,企业可以方便地创建和维护产品结构。首先,企业可以通过BOM多层管理功能建立产品的初始结构,包括主件和子件的层级关系。其次,企业可以对已有的BOM进行修改和更新,如添加新的组件、移除不需要的组件等。此外,BOM多层管理还可以进行版本控制,确保产品结构的准确性和可追溯性。 BOM多层管理不仅仅是一个简单的列表,它还提供了相关的信息和参数,如物料号、数量、单位、工序代码等。这些信息可以被其他SAP模块使用,如生产计划、物料需求计划等。通过与其他模块的集成,企业可以实现物料和生产资源的合理配置和调度,以提高生产效率和产品质量。 总之,SAP BOM多层管理是SAP系统中的一个重要功能,它可以帮助企业更好地组织和管理产品结构,提高生产计划的准确性和灵活性,从而提高企业的竞争力。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值