生产制造常用表(wip与bom)

SELECT * FROM mtl_system_items_b WHERE segment1 IN (‘ITEN20190705’);

SELECT * FROM BOM_STRUCTURES_B WHERE assembly_item_id = ‘286206’;–bom结构
–assembly_item_id = mtl_system_items_b.INVENTORY_ITEM_ID

SELECT * FROM bom_components_b WHERE bill_sequence_id = ‘136297’;–bom组件
–bill_sequence_id = BOM_STRUCTURES_B.BILL_SEQUENCE_ID
–BOM_COMPONENTS_B.WIP_SUPPLY_TYPE 存储发料方式

SELECT * FROM bom_operational_routings WHERE assembly_item_id = ‘286206’;–工艺路线

SELECT * FROM bom_operation_sequences WHERE routing_sequence_id = ‘241692’;–工序
–routing_sequence_id = bom_operational_routings.routing_sequence_id

SELECT * FROM WIP_ENTITIES WHERE wip_entity_name = ‘JOBP20190704001’;–wip(job)
–WIP_ENTITY_ID 储存jobID:755119
–WIP_ENTITY_NAME 储存job名称
–PRIMARY_ITEM_ID 储存部件ID
–ENTITY_TYPE 储存实体类型:1:Discrete job

SELECT * FROM WIP_DISCRETE_JOBS WHERE WIP_ENTITY_ID = ‘759082’;–储存离散job信息,用此信息来控制离散生产
–WIP_ENTITY_ID 储存jobID
–PRIMARY_ITEM_ID 储存部件ID
–STATUS_TYPE:SELECT lookup_code,meaning FROM FND_LOOKUP_VALUES where LANGUAGE = ‘US’ AND Upper(lookup_type) LIKE Upper(‘WIP_JOB_STATUS’);
–START_QUANTITY:起始数量
–QUANTITY_COMPLETED:当前完成数量
–COMMON_BOM_SEQUENCE_ID:–>BOM_COMPONENTS_B.BILL_SEQUENCE_ID(和BOM关联)
–COMMON_ROUTING_SEQUENCE_ID:–>BOM_OPERATIONAL_ROUTINGS.ROUTING_SEQUENCE_ID(和ROUTING关联)
SELECT * FROM WIP_REQUIREMENT_OPERATIONS WHERE WIP_ENTITY_ID = ‘759082’;–储存组件物料需求信息,每行代表一种组件需求
–WIP_ENTITY_ID 储存jobID
–INVENTORY_ITEM_ID 储存组件物料ID
–COMPONENT_SEQUENCE_ID:–>BOM_COMPONENTS_B.COMPONENT_SEQUENCE_ID
–WIP_SUPPLY_TYPE :Method of material consumption within WIP
–REQUIRED_QUANTITY:完成job所需要的该组件物料数量
–QUANTITY_ISSUED:已发料数量
–SUPPLY_SUBINVENTORY:Subinventory used to supply component to WIP(供应子库存)
–SUPPLY_LOCATOR_ID:Locator used to supply component to WIP(货位)
–SEGMENT1:Component Item segment(组件)

SELECT * FROM mtl_material_transactions WHERE transaction_source_id = ‘759082’;

你可能感兴趣的:(ebs)