DEFINE RECE="%"
  SELECT rsh.receipt_num                                    收据号,
              pov.vendor_name                            供应商名称,
              poh.segment1                                    采购订单,
              decode(POH.AUTHORIZATION_STATUS,'APPROVED','已批准','IN PROCESS','过程中','','未完成') 批准状态,
              pol.line_num                                         订单行,
              PTL.LINE_TYPE                                      行类型,
              decode(POL.closed_code,'OPEN','打开','CLOSED','关闭','FINALLY CLOSED','最后关闭')  栏状态,
              msi.segment1                                     物料编码,
              msi.description                                    物料描述,
              POL.QUANTITY                                       行数量,
              plla.quantity_received                       接收总数量,
              plla.quantity_accepted                            已入库,
              plla.QUANTITY-plla.quantity_received 未接收数量,
              plla.quantity_received-plla.quantity_accepted 接收中数量  ,
              rcvt.unit_of_measure                           计量单位,
              rcvt.quantity                                       入库数量,
              rcvt.transaction_date                           入库日期,
              rcvt.subinventory                                接收子库,
              mil.SEGMENT1                                          货位,
              DECODE(rcvt.transaction_type,'REJECT','拒绝','RETURN TO RECEIVING','退回至接收','DELIVER','交货','RECEIVE','接收','ACCEPT','接受','TRANSFER','转移','RETURN TO VENDOR','退回至供应商')  类型,
              rcvt.comments                                          备注,
              rcvt.RMA_REFERENCE                          红冲号码,
              rcvt.*
    FROM po.rcv_transactions            rcvt,
             po.rcv_shipment_headers    rsh,
             po.po_headers_all              poh,
             po.po_lines_all                    pol,
             po.po_line_locations_all      plla,
             inv.mtl_system_items_b     msi,
             inv.MTL_ITEM_LOCATIONS  mil,
             po.po_vendors                   pov,
             PO.PO_LINE_TYPES_TL       PTL
 WHERE rcvt.organization_id = X                                                       AND
             rcvt.shipment_header_id = rsh.shipment_header_id              AND
             poh.po_header_id = rcvt.po_header_id AND poh.org_id = Y   AND
             pol.po_line_id = rcvt.po_line_id                                           AND
             msi.organization_id = X                                                      AND
             pol.item_id = msi.inventory_item_id                                    AND
             mil.inventory_location_id(+) = rcvt.locator_id                       AND
             rsh.vendor_id = pov.vendor_id                                            AND
             rsh.receipt_num LIKE '&RECE'                                              AND
             PTL.LANGUAGE = 'ZHS'                                                       AND
             PTL.LINE_TYPE_ID = POL.LINE_TYPE_ID                               AND
             plla.quantity_received >0                                                     AND
             plla.quantity_received-plla.quantity_accepted >rcvt.quantity   AND
             pOL.po_line_id = plla.po_line_id                                           AND
             pOH.org_id = plla.org_id                                                      AND
        --  poh.segment1 ='20**010001'                                               AND
             rcvt.transaction_type ='DELIVER'                              
         ORDER BY
                   rsh.receipt_num

Oracle EBS-SQL (QA-3):检查已检验未入库.sql的更多相关文章

  1. Oracle EBS 隐藏帮助-诊断-检查

  2. Oracle EBS DBA常用SQL - 安装/补丁【Z】

    Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...

  3. Oracle EBS中分类账和法人实体 的关系(有sql语句实例)

    Oracle EBS中分类账和法人实体 的关系(有sql语句实例) 2012-12-06 16:05 2822人阅读 评论(0) 收藏 举报  分类: Oracle EBS(12)  Oracle数据 ...

  4. Oracle EBS R12 (12.1.3) Installation Linux(64 bit)

    Oracle EBS R12 (12.1.3) Installation Linux(64 bit) Contents Objective. 3 1 Download & Unzip. 3 D ...

  5. Oracle EBS R12经验谈(二)

    作者: jianping.ni    时间: 2009-2-13 12:52     标题: Oracle EBS R12经验谈(二) OAF页面:银行帐户开户人LOV值列表无值    在输入 应付超 ...

  6. Oracle EBS应用笔记整理 (转自IT++ flyingkite)

    ***************************************************** Author: Flyingkite Blog:   http://space.itpub. ...

  7. [转]oracle EBS 基础100问

    from:http://www.cnblogs.com/xiaoL/p/3593691.html  http://f.dataguru.cn/thread-51057-1-1.html 1001 OR ...

  8. Oracle EBS 如何月结、对账[Z]

    在Oracle系统处理月结业务时,需要遵循一定的操作顺序.这些业务,牵涉到相应的模块,包括:应付模块.采购模块.库存模块.应收模块.薪资模块.固定资产和总帐模块等 在Oracle系统中,总帐模块处于财 ...

  9. Oracle EBS使用adpatch工具打patch过程【Z】

    Oracle EBS使用adpatch工具打patch过程 从Metalink下载补丁 登陆到Metalink(https://support.oracle.com),Oracle内部用户可以使用AR ...

随机推荐

  1. phalcon

    phalcon 代码内在sql 内用Ad去取数据库内的ad表. osx上没问题, centos报找不到表. 应该是centos上mysql区分大小写,可改写mysql的配置.

  2. Effective Java2读书笔记-创建和销毁对象(一)

    第1条:考虑用静态工厂方法代替构造器 通常情况下,我们创建一个对象采取new的形式,但是还有一种方法也是经常使用到的,它的名称叫做静态工厂方法. 例如,java中基本类型boolean的包装类Bool ...

  3. Asp.net web服务处理程序(第六篇)

    四.Web服务处理程序 对于Web服务来说,标准的方式是使用SOAP协议,在SOAP中,请求和回应的数据通过XML格式进行描述.在Asp.net 4.0下,对于Web服务来说,还可以选择支持Ajax访 ...

  4. JavaScript为unicode编码转换为中文

    代码laycode - v1.1 关于这样的数据转换为中文问题,常用的以下方法. 1. eval解析或new Function("'+ str +'")()  str = eval ...

  5. Word Search II 解答

    Question Given a 2D board and a list of words from the dictionary, find all words in the board. Each ...

  6. C++ classics

    common Business-Oriented LanguageBASIC(Beginner's All-purpose Symbolic Instruction Code)1972 C1983 C ...

  7. 中国三种3G网络频段

    首先看中国三家运营商所发布的频率标准: 中国移动TD-SCDMA(TDD): • 核心频段:1880~1920MHz,2010~2025MHz • 补充频率:2300~2400MHz 中国联通WCDM ...

  8. hdu 5626 Clarke and points

    Problem Description Clarke is a patient with multiple personality disorder. One day he turned into a ...

  9. Unity 为自己组件添加公共方法

    为什么需要跟你的组件添加公共方法呢? 留一条后路嘛,万一你那天想起要给全部的组件添加一个方法. 此时我只能告诉你慢慢修改吧累死你 子组件:A ,父组件:B继承方式:  A -> B –> ...

  10. Java程序员面试题集(1-50)(转)

    转:http://blog.csdn.net/jackfrued/article/details/17339393 下面的内容是对网上原有的Java面试题集及答案进行了全面修订之后给出的负责任的题目和 ...