CST_MAT_OVERHEAD

CSTPACIN.COST_INV_TXN:Cannot apply material overhead because this level material overhead subelements already exist.

Applies to:

Oracle Cost Management - Version: 11.5.8 to 11.5.10.3 - Release: 11.5 to 11.5
Information in this document applies to any platform.

Symptoms

-- Problem Statement:
On 11.5.8 in Production:
When attempting to cost PO receipt transactions , the following error occurs:


ERROR_CODE =  CST_MAT_OVERHEAD
ERROR_EXPLANATION : CSTPACIN.COST_INV_TXN:Cannot apply material overhead because this level material overhead subelements already exist.

-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Responsibility: Cost Management Responsibility
2. Wait for Cost Manager to run. Cost Manager completes normal
3. Navigation: Inventory ,Material Transactions:
4. Check Material Transactions:
Repsonsibility: Inventory Super User
5. Transactions -> Material Transactions
Default date from and to: Today’s date,Find
6. Lines complete with status Error
7.Check Material Transactions "Reason, Reference" Tab



Cause

There is no record in mtl_cst_txn_cost_details for the PO receipt transaction.

The following bug was logged for this specific customer to receive a datafix
from Oracle Development:
Bug 6346329: INCTGL TRANSFER TO GL FINISHES WITH MESSAGE ERROR
Oracle Development stated that the issue is due to invalid / incorrect data.

The following SQL identified the invalid / incorrect data:

from inv.mtl_transaction_accounts
where transaction_id = &error txn;

Select *
from inv.mtl_cst_actual_cost_details
where transaction_id = &error txn;


Select *
from inv.mtl_cst_txn_cost_details
where transaction_id = &error txn;

Solution

-- To implement the solution, please execute the following steps::
The issue is resolved by:

1. Ensure that you have taken a backup of your system before applying the recommended solution.

2. Run the following scripts in a TEST environment first:

insert into mtl_cst_txn_cost_details(
transaction_id
,organization_id
,cost_element_id
,level_type
,last_update_date
,last_updated_by
,creation_date
,created_by
,last_update_login
,request_id
,program_application_id
,program_id
,program_update_date
,inventory_item_id
,transaction_cost
,new_average_cost
,percentage_change
,value_change)
.
select
transaction_id
,organization_id
,1
,1
,last_update_date
,last_updated_by
,creation_date
,created_by
,last_update_login
,request_id
,program_application_id
,program_id
,program_update_date
,inventory_item_id
,transaction_cost
,null
,null
,null
from mtl_material_transactions
where transaction_id = &error txn;

If this sql also inserts a row with NULL OR ZERO cost, please use following
sql to update the correct cost. PO_UNIT_PRICE has to be provided as input here:
.
update mtl_cst_txn_cost_details
set transaction_cost = &po_unit_price
where transaction_id = &error txn
and cost_element_id = 1
and level_type = 1;


3. Resubmitting the transactions for costing should resolve the issue.

4. If you are satisfied with the results, issue a commit.

5. Migrate the solution as appropriate to other environments.



References

NOTE:316837.1 - Subinventory Transfer Fails With Cstpacin.Cost_inv_txn: (70): ORA-20100

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15225049/viewspace-701532/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/15225049/viewspace-701532/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值