Oracle EBS-SQL (INV-12):检查待定事物处理1.sql

/*未加工物料*/

update inv.mtl_material_transactions_temp

     set process_flag='Y',

          LOCK_FLAG='N',

          TRANSACTION_MODE='3',

           ERROR_CODE=NULL;

commit;

然后在应用库存待定事物处理,选择提交

select process_flag,

         lock_flag,

         transaction_mode,

         error_code

from  inv.mtl_material_transactions_temp

--------------------------------------------------------------------------

/*未记成本*/

select t.transaction_id,

         i.segment1,

         t.transaction_group_id,

         t.costed_flag,

         t.transaction_date

from  inv.mtl_material_transactions t,

         inv.mtl_system_items i

where t.transaction_date between '&DATE_FROM' and '&DATE_TO'

   and t.organization_id=&组织ID

   and  t.costed_flag='E'

   and t.inventory_item_id = i.inventory_item_id

   and t.organization_id=i.organization_id

 

update mtl_material_transactions

     set costed_flag = 'N',

          request_id = NULL,

          transaction_group_id = NULL,

          error_code = NULL,

          error_explanation = NULL

where costed_flag in ('N','E');

commit;

--------------------------------------------------------------------------

/*待定在制品成本计算*/

update wip_cost_txn_interface

      set group_id=null,

           transaction_id=null,

           request_id=null,

           process_status=1

where  process_status=3;

 

pending transaction:

update mtl_transactions_interface

      set process_flag=1,

           lock_flag=2,

           transaction_mode=3,

           error_code=null,

where  process_flag=3

 

select * from wip_move_txn_interface

where CREATION_DATE<sysdate -8

转载于:https://www.cnblogs.com/st-sun/p/3782444.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值