Oracle EBS-SQL (BOM-13):检查未定义库存分的物料类.sql
2014-06-09 18:24
519 查看
select distinct msi.segment1 编码 ,
msi.description 描述 ,
msi.primary_unit_of_measure 单位 ,
msi.inventory_item_status_code 状态 ,
flv.MEANING 物料类型 ,
catb1.segment1 库存大类 ,
catb1.segment2 库存小类 ,
msi.creation_date 创建时间
from inv.mtl_system_items_b msi,
applsys.fnd_lookup_values flv,
inv.mtl_categories_b catb1,
inv.mtl_item_categories cat 1,
apps.mfg_lookups lkp
where msi.organization_id=X
and flv.lookup_type='ITEM_TYPE' and lkp.LOOKUP_TYPE(+) = 'WIP_SUPPLY'
and lkp.LOOKUP_CODE(+) = msi.wip_supply_type
and flv.language='ZHS'
and msi.item_type=flv.lookup_code
and catb1.category_id(+) = cat1.category_id
and msi.inventory_item_id=cat1.inventory_item_id(+)
and cat1.category_set_id(+)=1 --and msi.item_type in ('P','SA','FG')
and msi.inventory_item_status_code not like 'In%'
--and msi.description not like '%工具备件%'
and decode(catb1.segment1,'','0',catb1.segment1) ='0'
order by msi.segment1
msi.description 描述 ,
msi.primary_unit_of_measure 单位 ,
msi.inventory_item_status_code 状态 ,
flv.MEANING 物料类型 ,
catb1.segment1 库存大类 ,
catb1.segment2 库存小类 ,
msi.creation_date 创建时间
from inv.mtl_system_items_b msi,
applsys.fnd_lookup_values flv,
inv.mtl_categories_b catb1,
inv.mtl_item_categories cat 1,
apps.mfg_lookups lkp
where msi.organization_id=X
and flv.lookup_type='ITEM_TYPE' and lkp.LOOKUP_TYPE(+) = 'WIP_SUPPLY'
and lkp.LOOKUP_CODE(+) = msi.wip_supply_type
and flv.language='ZHS'
and msi.item_type=flv.lookup_code
and catb1.category_id(+) = cat1.category_id
and msi.inventory_item_id=cat1.inventory_item_id(+)
and cat1.category_set_id(+)=1 --and msi.item_type in ('P','SA','FG')
and msi.inventory_item_status_code not like 'In%'
--and msi.description not like '%工具备件%'
and decode(catb1.segment1,'','0',catb1.segment1) ='0'
order by msi.segment1
相关文章推荐
- Oracle EBS-SQL (BOM-8):检查物料属性(无采购员).sql
- Oracle EBS-SQL (PO-13):检查采购物料无一揽子协议价格.sql
- Oracle EBS-SQL (BOM-6):检查物料失效但BOM中未失效的数据.sql
- Oracle EBS-SQL (BOM-5):检查有BOM但物料状态为NEW的物料.sql
- Oracle EBS-SQL (WIP-15):检查车间任务物料未发数量与现有量对照.sql
- Oracle EBS-SQL (WIP-13):检查任务组件未选MRP净值.sql
- Oracle EBS-SQL (BOM-3):检查期间新增Bom数量.sql
- Oracle EBS-SQL (INV-5):检查期间拉式物料领用记录数.sql
- Oracle EBS-SQL (BOM-15):检查多层BOM(含common BOM).sql
- Oracle EBS-SQL (PO-13):检查报价单.sql
- Oracle EBS-SQL (BOM-7):检查有BOM无工艺路线的子装配件或成品.sql
- Oracle EBS-SQL (WIP-14):检查车间需求与BOM差异对照.sql
- Oracle EBS-SQL (INV-1):检查物料成本为0并且物料状态不是'NEW'的物料.sql
- Oracle EBS-SQL (INV-8):检查物料入库明细信息.sql
- Oracle EBS-SQL (BOM-9):检查系统BOM总数.sql
- Oracle EBS-SQL (CST-2):检查有BOM但成本不基于累积的数据.sql
- Oracle EBS-SQL (INV-2):检查帐户别名发放记录.sql
- Oracle EBS-SQL (WIP-9):检查车间任务超发料.sql
- 检查 Bom 分录物料的有效性,递归 SQL 查询( 编号:20110630A0957 )
- Oracle EBS-SQL (WIP-2):检查非标任务没挂自己本身.sql