zoukankan      html  css  js  c++  java
  • Oracle EBS-SQL (PO-13):检查采购物料无一揽子协议价格.sql

    Select
           msi.segment1                               物料编码,
           msi.DESCRIPTION                         物料描述,
           msi.primary_unit_of_measure     主计量单位
    FROM
            inv.MTL_SYSTEM_ITEMS_b  msi
    WHERE
             msi.organization_id = X
      AND MSI.INVENTORY_ITEM_ID NOT IN (
                SELECT
                          MSI.INVENTORY_ITEM_ID
                  FROM
                          PO.PO_LINES_ALL PLA,
                          PO.PO_HEADERS_ALL         PHA,
                          INV.MTL_SYSTEM_ITEMS_B MSI,
                          po.po_vendors                      pv,
                          po.po_vendor_sites_all         pvs,
                          po.po_line_locations_all       PLLA
                WHERE
                         PLA.PO_HEADER_ID=PHA.PO_HEADER_ID
                         AND PLA.ITEM_ID=MSI.INVENTORY_ITEM_ID
                         AND MSI.ORGANIZATION_ID=X
                         AND PHA.ORG_ID=PLA.ORG_ID
                         AND PHA.ORG_ID=Y
                         AND PLLA.PO_HEADER_ID=PLA.PO_HEADER_ID
                         AND PLLA.PO_LINE_ID=PLA.PO_LINE_ID
                         and pha.vendor_id=pv.vendor_id
                         and pv.vendor_id=pvs.vendor_id
                         and plla.org_id=pla.org_id
                         and pha.TYPE_LOOKUP_CODE='BLANKET'
                         AND PLA.CLOSED_CODE IS NULL
                         AND pha.closed_code IS NULL)
                         AND MSI.ITEM_TYPE='P'

  • 相关阅读:
    IDEA报错 Unable to open debugger port (127.0.0.1:63342): java.net.BindException "Address already in use
    解决Xshell 连接Linux 窗口不活动会自动断开连接
    Spring整合ActiveMQ实现消息延迟投递和定时投递
    JAVA获取某年(当年)的第一天的开始时刻和某年(当年)的最后一天的最后时刻
    将电脑信息上传到中国移动ONENET平台
    二分查找
    jcraft--SFTP demo
    org.apache.commons.io.Charsets
    oracle中的替换函数replace和translate函数
    Java中getResourceAsStream的用法
  • 原文地址:https://www.cnblogs.com/st-sun/p/3780515.html
Copyright © 2011-2022 走看看