Oracle EBS-SQL (BOM-9):检查系统BOM总数.sql

SELECT
      ITM.SEGMENT1                         物料编码
     ,ITM.DESCRIPTION                     物料描述
     ,bom2.CREATION_DATE              创建日期
     ,BOM2.ALTERNATE_BOM_DESIGNATOR  替代BOM
     ,FU.description                           操作者
FROM INV.MTL_SYSTEM_ITEMS_B          ITM,
     apps.BOM_BILL_OF_MATERIALS     bom2,
     applsys.fnd_user  FU
WHERE
       ITM.INVENTORY_ITEM_STATUS_CODE <> 'Inactive'                        AND
       EXISTS
      (
         SELECT  COM.COMPONENT_ITEM_ID
         FROM  apps.BOM_INVENTORY_COMPONENTS COM,
               apps.BOM_BILL_OF_MATERIALS BOM
         WHERE
                ROWNUM=1                                                                          AND
         COM.EFFECTIVITY_DATE<=SYSDATE                                             AND
         (COM.DISABLE_DATE IS NULL OR COM.DISABLE_DATE>SYSDATE)  AND
               BOM.BILL_SEQUENCE_ID=COM.BILL_SEQUENCE_ID                 AND
               BOM.ASSEMBLY_ITEM_ID=ITM.INVENTORY_ITEM_ID                AND
               BOM.ORGANIZATION_ID=ITM.ORGANIZATION_ID)                   AND
               ITM.ORGANIZATION_ID =X                                                     AND
               FU.USER_ID=BOM2.CREATED_BY                                            AND
               bom2.ASSEMBLY_ITEM_ID=itm.inventory_item_id                    AND
               bom2.ORGANIZATION_ID =X                                                  AND
               ITM.SEGMENT1 LIKE '31%' 
          

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值