查找待定事务处理

select b.segment1,b.description,costed_flag,transaction_group_id,a.inventory_item_id,a.creation_date
from inv.mtl_material_transactions a,
mtl_system_items b
where costed_flag in ('N','E')
and a.inventory_item_id=b.inventory_item_id

--待定事务
select b.segment1,b.description,costed_flag,transaction_group_id,a.inventory_item_id,a.creation_date
from inv.mtl_material_transactions a,
mtl_system_items b
where costed_flag in ('N','E')
and a.inventory_item_id=b.inventory_item_id


update inv.mtl_material_transactions
set costed_flag='N',transaction_group_id=NULL
WHERE COSTED_FLAG IN ('N','E')

务处理开放接口
接口表: MTL_TRANSACTIONS_INTERFACE
物料出入库可从这个表进行处理,如有批次控制,其信息写在
MTL_TRANSACTION_LOTS_INTERFACE接口表。

重新处理物料接口未处理数据:
update MTL_TRANSACTIONS_INTERFACE mti
set mti.transaction_mode=3,
mti.lock_flag=2,
mti.process_flag=1,
mti.error_code=null,
mti.error_explanation=null
where mti.transaction_interface_id=29369973

Update MTL_MATERIAL_TRANSACTIONS_TEMP
Set PROCESS_FLAG = 'Y',
LOCK_FLAG = 'N',
TRANSACTION_MODE = 3,
ERROR_CODE = NULL
Where transaction_header_id='24233328'
and transaction_temp_id='24238322'
and inventory_item_id=2916


delete WIP_COST_TXN_INTERFACE
where creation_date > '21-9月-2006'
and creation_date < '22-9月-2006'
and process_status=1

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

转载于:http://blog.itpub.net/133041/viewspace-438525/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值