Oracle 工单完工退回,WIP完工入库及完工退回的几个重要问题

1.必须向CST_COMP_SNAP_INTERFACE表中插入此工单所有工序的数据(也就是说同样的工单插入多条,只是工序号不一样)

标准文档:

Note: If there are multiple operation sequences then,

Insert multiple records in CST_COMP_SNAP_INTERFACE, one record for each

OPERATION_SEQ_NUM in WIP_OPERATIONS for the appropriate WIP_ENTITY_ID (with the

same transaction_interface_id).

否则会出现问题:

(1)工单通过mtl_transactions_interface接口表,完工入库了,但是没有扣减最后一站移动站(to move站)数量

“接口表提交后,没有错误信息,数据成功提交了;;  查询物料交易事务处理表,此工单已有完工入库记录(库存也有增加),但就是没有扣减最后一站移动站(to move站)数量(同时工单已完工量也没有相应增加)。   CST_COMP_SNAP_INTERFACE 表中的数据一点都不动(成本管理器正常)”

(2)报错:

CSTPACMS:validate_snap_interface 30 : OPERATION_SEQ_NUM in CST_COMP_SNAP_INTERFACE is missing or incorrect.

应为 不需要投料的工序也是要计算成本的,所以工单所有工序都必须插值,工序来自wip_operations

2.完工入库之前先移动工单至最后一道工序的move状态

3.完工退回之前先移动工单至第一道工序的排队状态

报错信息:

Serial number &TOKEN does not exist for the given item; and you cannot dynamically create a new one for this item.

解决:

a2393383fb2d2a71b520ba1ff4448a16.png

metalink上的一些解决办法

Wip Assembly Completion For A Job Through MTL_TRANSACTIONS_INTERFACE Is Not Updating Job Completed Quantity [ID 745112.1]

修改时间 11-SEP-2010     类型 PROBLEM     状态 MODERATED

In this Document

Symptoms

Cause

Solution

References

Platforms: 1-914CU;

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Work in Process - Version: 11.5.9 to 12.0.4 - Release: 11.5 to 12

Information in this document applies to any platform.

Checked for relevance 11-SEP-2010

Symptoms

On 12.0.4 in Production:

Find that when WIP Assembly Completion transaction is performed for a Discrete job through

mtl_transaction_interface, the transaction is getting processed successfully but the completed

quantity is not getting updated in the Discrete job also quantity still remaining in To Move of

last operation.

EXPECTED BEHAVIOR

Expect that the quantity should get updated in the discrete jobs.

STEPS

The issue can be reproduced at will with the following steps:

1. Create a discrete job, release it

2. Perform Move transaction to the last operation to move step.

3. Perform WIP Assembly Completion through the MTI, it gets processed successfully

4. Verify the job header infoformation, still the quantity is not completed.

BUSINESS IMPACT

The issue has the following business impact:

Due to this issue, there is lot of discrepancy in the job.

.

Cause

The cause of the issue is invalid / incorrect data in cst_comp_snap_interface table.

The cause for this invalid data has been determined as the data in cst_comp_snap_interface corresponding

to completion record in MTI (linked with transaction_interface_id) was not populated with the correct op_seq_num.

This has explained in the following bug.

Bug 5746008  'CSTPACMS:VALIDATE_SNAP_INTERFACE 30' ERROR IN TRANSACTION OPEN INTERFACE

Customer was incorrectly populating the interface data.

cst_comp_snap_interface corresponding to completion record in MTI (linked with

transaction_interface_id) was not populated with the op_seq_num.

In the current scenario, user populated the op_seq_num but it is wrong value.

For any reference related to WIP Assembly Completion through MTI, can refer  Note 458801.1

Solution

To implement the solution, please execute the following steps:

1. Insert the correct operation sequence number in to cst_comp_snap_interface table which corresponds

to the operation sequence of that particular job.

Note: If there are multiple operation sequences then,

Insert multiple records in CST_COMP_SNAP_INTERFACE, one record for each

OPERATION_SEQ_NUM in WIP_OPERATIONS for the appropriate WIP_ENTITY_ID (with the

same transaction_interface_id).

2. Retest the issue.

References

NOTE:458801.1 - Standard API/Interface Needed to Perform Work Order Completion: WIP Assembly Completion Transaction For Discrete Jobs Can Be Performed Through Mtl_Transactions_Interface Table

SR 7174967.993

显示相关信息 相关的

产品

* Oracle E-Business Suite > Manufacturing > Discrete Manufacturing > Oracle Work in Process

关键字

CST_COMP_SNAP_INTERFACE; DISCRETE JOB; OPEN INTERFACES; COMPLETION TRANSACTIONS

错误

30 ERROR

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
非常抱歉给出了错误的建议。以下是修正后的可以正常运行的Oracle语句: ```sql SELECT SUBSTR(msn.serial_number, 1, 10) AS genset_sn, msi2.segment1 AS Genset_BOM_NUM, msi2.inventory_item_id, msi.segment1 AS key_component, mut1.serial_number AS component_sn, msi.description AS component_desc, wdj.date_completed, (SELECT MAX(aps.vendor_name) FROM ap_suppliers aps INNER JOIN bom_resources bor ON bor.purchase_item_id = pol.item_id INNER JOIN wip_osp_resources_val_v wor ON wor.resource_id = bor.resource_id INNER JOIN mtl_unit_transactions mut ON mut.transaction_source_id = wor.wip_entity_id AND mut.serial_number = mut1.serial_number AND mut.inventory_item_id = mut1.inventory_item_id AND mut.organization_id = mut1.organization_id AND mut.receipt_issue_type = 2 AND mut.transaction_source_type_id = 5 INNER JOIN po_lines_all pol ON pol.po_header_id = poh.po_header_id INNER JOIN po_headers_all poh ON poh.vendor_id = aps.vendor_id WHERE wor.wip_entity_id = mut1.transaction_source_id) AS supplier FROM mtl_material_transactions mmt1 INNER JOIN mtl_unit_transactions mut1 ON mmt1.inventory_item_id = mut1.inventory_item_id AND mmt1.organization_id = mut1.organization_id AND mmt1.transaction_id = mut1.transaction_id INNER JOIN wip_discrete_jobs_v wdj ON mmt1.transaction_source_id = wdj.wip_entity_id AND wdj.primary_item_id = msi2.inventory_item_id INNER JOIN mtl_system_items msi ON msi.inventory_item_id = mmt1.inventory_item_id AND msi.organization_id = mmt1.organization_id INNER JOIN mtl_system_items msi2 ON msi2.organization_id = '323' LEFT JOIN mtl_parameters mpa ON msn.current_organization_id = mpa.organization_id LEFT JOIN mtl_serial_numbers msn ON mut2.serial_number = msn.serial_number AND mut2.inventory_item_id = msn.inventory_item_id WHERE mmt1.transaction_type_name = 'WIP Issue' AND NOT EXISTS (SELECT 'WIP Negative Issue or WIP Return' FROM mtl_material_transactions mmt3 INNER JOIN mtl_unit_transactions mut3 ON mmt3.transaction_id = mut3.transaction_id AND mmt3.transaction_type_id = mut3.transaction_type_id INNER JOIN mtl_transaction_types mtt3 ON mmt3.transaction_type_id = mtt3.transaction_type_id WHERE mmt3.transaction_date > mmt1.transaction_date AND mtt3.transaction_type_name IN ('WIP Negative Issue', 'WIP Return') AND mut3.serial_number = mut1.serial_number AND mut3.inventory_item_id = mut1.inventory_item_id) AND EXISTS (SELECT 1 FROM mtl_material_transactions mmt2 INNER JOIN mtl_unit_transactions mut2 ON mmt2.transaction_id = mut2.transaction_id AND mmt2.transaction_source_id = wdj.wip_entity_id AND mmt2.transaction_type_id = mtt2.transaction_type_id INNER JOIN mtl_transaction_types mtt2 ON mmt2.transaction_type_id = mtt2.transaction_type_id WHERE mtt2.transaction_type_name = 'WIP Completion' AND mut2.serial_number = msn.serial_number AND mut2.inventory_item_id = msn.inventory_item_id) AND LENGTH(msn.serial_number) >= 10 AND (msi.planning_make_buy_code = 2 OR msi.segment1 LIKE 'SO%') AND mpa.organization_code = 'WHP'; ``` 这个修正后的语句解决了之前提到的问题,并使用了合适的连接操作(JOIN)和正确的子查询语法。请注意,根据实际情况和数据库配置,可能还需要进一步的调整和优化。在应用这个修正后的语句之前,请务必在测试环境中进行验证和评估性能。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值