inv interface

--select * from mtl_onhand_quantities where organization_id=255

INSERT INTO mtl_transactions_interface
(transaction_interface_id,
transaction_header_id,
source_code,
source_header_id,
source_line_id,
process_flag,
transaction_mode,
inventory_item_id,
-- item_segment1 ,
revision,
organization_id,
transaction_date,
transaction_quantity,
subinventory_code,
locator_id,
transaction_source_id,
transaction_source_name,
transaction_reference,
transaction_type_id,
transaction_uom,
transfer_subinventory,
TRANSFER_LOCATOR ,
last_update_date,
last_updated_by,
creation_date,
created_by,
distribution_account_id,
wip_entity_type,
flow_schedule,
scheduled_flag,
-- ACCT_PERIOD_ID ,
attribute1,
attribute2)
VALUES
(999, --999 , --transaction_interface_id
999, --transaction_header_id
'ROHS_CVT', --source_code
1, --source_header_id
1, --source_line_id
1, --process_flag
3, --transaction_mode 3-background 2-immediate
to_number(111198), --inventory_item_id
-- NULL , --item_segment1
NULL, --revision
to_number(255), --organization_id
SYSDATE, --transaction_date
4, --transaction_quantity
'DE2', --subinventory_code,
'9693', --locator_id
999, -- 999 , --transaction_source_id
'ROHS LOT ADJUSTMENT', --to_char(c2.set_id) , --transaction_source_name
'11', --transaction_reference
2, --transaction_type_id
'KG', --transaction_uom
'DB2', --transfer_subinventory
'10148',    --TRANSFER_LOCATOR
SYSDATE-35, --last_update_date
'11', --last_updated_by
SYSDATE-35, --creation_date
'11', --created_by
'11', --distribution_account_id
null, --wip_entity_type
'Y', --flow_schedule
2, --scheduled_flag
-- 1655, --ACCT_PERIOD_ID
null, --'Y' , --attribute1
null --'N15387' --attribute2
);

COMMIT;

select * from mtl_transactions_interface

DELETE FROM mtl_transactions_interface

SELECT * FROM mtl_system_items where segment1='7200-0200200' and organization_id=255  111198
     
select * from mtl_onhand_quantities where organization_id=255 and inventory_item_id=111198
select * from inv.mtl_safety_stocks where organization_id=255 and inventory_item_id=111198
     
select * from inv.mtl_item_locations where organization_id=255 AND  subinventory_code='DB2'
     
select * from mtl_material_transactions where transaction_id=57050012

SELECT * FROM MTL_ITEM_REVISIONS WHERE inventory_item_id=111198

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

转载于:http://blog.itpub.net/12122734/viewspace-490912/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值