Oracle EBS-SQL (CST-2):检查有BOM但成本不基于累积的数据.sql
2014-06-11 14:46
851 查看
select c.segment1 物料编码,
c.description 物料描述,
f.item_cost 成本,
DECODE(f.based_on_rollup_flag,'1','基于累积','2','不基于累积') 成本类型
from
--bom.cst_item_cost_details b,
inv.mtl_system_items_b c,
bom.bom_bill_of_materials d,
--bom.bom_inventory_components e,
bom.cst_item_costs f
where c.organization_id=94
and d.organization_id=c.organization_id
and f.organization_id=c.organization_id
--and b.organization_id=c.organization_id
and f.based_on_rollup_flag='2'
and f.cost_type_id='1000'
and c.inventory_item_id=f.inventory_item_id
and c.inventory_item_status_code='Active'
and c.item_type<>'P'
and d.assembly_item_id=c.inventory_item_id
--and d.bill_sequence_id=e.bill_sequence_id
and d.bill_sequence_id in (select t.bill_sequence_id
from bom.bom_inventory_components t)
--and e.component_item_id=c.
c.description 物料描述,
f.item_cost 成本,
DECODE(f.based_on_rollup_flag,'1','基于累积','2','不基于累积') 成本类型
from
--bom.cst_item_cost_details b,
inv.mtl_system_items_b c,
bom.bom_bill_of_materials d,
--bom.bom_inventory_components e,
bom.cst_item_costs f
where c.organization_id=94
and d.organization_id=c.organization_id
and f.organization_id=c.organization_id
--and b.organization_id=c.organization_id
and f.based_on_rollup_flag='2'
and f.cost_type_id='1000'
and c.inventory_item_id=f.inventory_item_id
and c.inventory_item_status_code='Active'
and c.item_type<>'P'
and d.assembly_item_id=c.inventory_item_id
--and d.bill_sequence_id=e.bill_sequence_id
and d.bill_sequence_id in (select t.bill_sequence_id
from bom.bom_inventory_components t)
--and e.component_item_id=c.
相关文章推荐
- Oracle EBS-SQL (BOM-6):检查物料失效但BOM中未失效的数据.sql
- Oracle EBS-SQL (CST-3):检查零成本交易.sql
- Oracle EBS-SQL (BOM-7):检查有BOM无工艺路线的子装配件或成品.sql
- Oracle EBS-SQL (BOM-13):检查未定义库存分的物料类.sql
- Oracle EBS-SQL (BOM-8):检查物料属性(无采购员).sql
- Oracle EBS-SQL (QA-1):检查超出检验周期的检验数据.sql
- Oracle EBS-SQL (BOM-5):检查有BOM但物料状态为NEW的物料.sql
- Oracle EBS-SQL (WIP-14):检查车间需求与BOM差异对照.sql
- Oracle EBS-SQL (MRP-7):检查MRP计划运行报错原因之超大数据查询2.sql
- Oracle EBS-SQL (CST-1):检查BOM历史成本查询(Average Cost).sql
- Oracle EBS-SQL (BOM-9):检查系统BOM总数.sql
- Oracle EBS-SQL (INV-1):检查物料成本为0并且物料状态不是'NEW'的物料.sql
- Oracle EBS-SQL (BOM-15):检查多层BOM(含common BOM).sql
- Oracle EBS-SQL (BOM-3):检查期间新增Bom数量.sql
- Oracle EBS-SQL (PO-14):检查报价单与成本对比.sql
- Oracle EBS-SQL (INV-6):检查监督帐户别名处理.sql
- Oracle EBS-SQL (WIP-2):检查非标任务没挂自己本身.sql
- Oracle EBS-SQL (WIP-9):检查车间任务超发料.sql
- Oracle EBS-SQL (PO-14):检查供应商信息sql
- Oracle EBS-SQL (INV-5):检查期间拉式物料领用记录数.sql