Oracle EBS-SQL (CST-2):检查有BOM但成本不基于累积的数据.sql

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.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值