首页  ·  知识 ·  生产制造
抓取BOM的资料
jarli  http://space.itpub.net/41594/    编辑:德仔   图片来源:网络
select john.organization_id, john.top_item_id, itema.segment1, decode(ITEMA.ITEM_TYPE

select john.organization_id,
john.top_item_id,
itema.segment1,
decode(ITEMA.ITEM_TYPE,
'AA','Asset Activity',
'AI','ATO Item',
'AOC','ATO Option Class',
'CI','Container Item',
'EP','Expendable Item',
'FG','Finished Good',
'FRT','Freight',
'IC','Interchangeable Item',
'IR','Internal Requisition',
'LC','Restricted Item',
'LV','Low Value Item',
'OP','Outside Processing Item',
'P','Purchased item',
'PH','Phantom item',
'PTO','PTO model',
'PUTO','Purchased To Order',
'SA','Subassembly',
'SI','Supply item',
null) ITEM_TYPE_CODE,
john.plan_level,
john.component_item_id,
itemb.segment1,
decode(itemb.PLANNING_MAKE_BUY_CODE,1,'Make',2,'Buy') PLANNING_MAKE_BUY_CODE,
john.assembly_item_id,
itemc.segment1,
john.component_quantity,
john.extended_quantity,
john.sort_order
from john_category_item_6 john,
mtl_system_items_b itema,
mtl_system_items_b itemb,
mtl_system_items_b itemc
where john.organization_id=itema.organization_id
and john.top_item_id=itema.inventory_item_id
and john.organization_id=itemb.organization_id
and john.component_item_id=itemb.inventory_item_id
and john.organization_id=itemc.organization_id(+)
and john.ASSEMBLY_ITEM_ID=itemc.inventory_item_id(+)
order by john.top_item_id,john.sort_order


 
本文作者:jarli 来源:网络http://space.itpub.net/41594/
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读