Oracle EBS-SQL (INV-8):检查物料入库明细信息.sql
select a.vendor_number 供应商编码
,a.vendor_name 供应商名称
,a.item_number 物料编码
,a.item_description 物料描述
,a.po_number 采购订单号
,a.receipt_num 收据号
,a.transaction_date 入库日期
,a.primary_quantity 入库数量
,a.unit_price 采购订单价 /*一揽子协议价+入库金额*/
,(select pll.price_override
from apps.po_lines_all pla2
,apps.po_headers_all pha2
,apps.po_line_locations_all pll
where pla2.item_id = a.inventory_item_id
and pla2.po_header_id = pha2.po_header_id
and pha2.type_lookup_code = 'BLANKET'
and pha2.vendor_site_id = a.vendor_site_id
and pla2.po_line_id = pll.line_location_id
And pha2.AUTHORIZATION_STATUS = 'APPROVED'
And pha2.approved_flag = 'Y'
And nvl(pha2.cancel_flag,'N') = 'N'
And nvl(pha2.closed_code,'OPEN') = 'OPEN'
And nvl(pla2.cancel_flag,'N') = 'N'
And nvl(pla2.closed_code,'OPEN') = 'OPEN'
and trunc(a.transaction_date) between
nvl(pll.start_date
,a.transaction_date - 1) and
nvl(pll.end_date
,a.transaction_date + 1)) blanket_price
from (select pv.segment1 vendor_number
,pv.vendor_name
,msi.segment1 item_number
,msi.description item_description
,pha.segment1 po_number
,rsh.receipt_num
,trunc(mmt.transaction_date) transaction_date
,sum(mmt.primary_quantity) primary_quantity
,pla.unit_price
,pha.vendor_site_id
,msi.inventory_item_id
,pha.po_header_id
from apps.mtl_material_transactions mmt
,apps.po_headers_all pha
,apps.mtl_system_items_b msi
,apps.po_vendors pv
,apps.rcv_transactions rt
,apps.rcv_shipment_headers rsh
,apps.po_lines_all pla
where mmt.organization_id = X
and mmt.transaction_source_type_id = 1
and mmt.transaction_source_id = pha.po_header_id
and mmt.inventory_item_id = msi.inventory_item_id
and mmt.organization_id = msi.organization_id
and pha.vendor_id = pv.vendor_id
and mmt.source_code = 'RCV'
and mmt.source_line_id = rt.transaction_id
and rt.shipment_header_id = rsh.shipment_header_id
and rt.po_line_id = pla.po_line_id
group by pv.segment1
,pv.vendor_name
,msi.segment1
,msi.description
,pha.segment1
,rsh.receipt_num
,trunc(mmt.transaction_date)
,pla.unit_price
,pha.vendor_site_id
,msi.inventory_item_id
,pha.po_header_id) a
Oracle EBS-SQL (INV-8):检查物料入库明细信息.sql的更多相关文章
- SQL显示某月全部日期明细以及SQL日期格式
SQL显示某月全部日期明细<存储过程> 方法一: declare @date datetime declare @end datetime ,getdate()) ,@date) crea ...
- Oracle EBS-SQL (BOM-8):检查物料属性(无采购员).sql
select msi.segment1 物料编码, msi.DESCRIPTION ...
- Oracle EBS 隐藏帮助-诊断-检查
- Oracle EBS DBA常用SQL - 安装/补丁【Z】
Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...
- Oracle EBS中分类账和法人实体 的关系(有sql语句实例)
Oracle EBS中分类账和法人实体 的关系(有sql语句实例) 2012-12-06 16:05 2822人阅读 评论(0) 收藏 举报 分类: Oracle EBS(12) Oracle数据 ...
- Oracle EBS 采购 接收入库 接口开发
http://blog.itpub.net/25164132/viewspace-746657/ 接收入库是项目中会经常碰到的开发,这类开发一般来说比较简单,但是接收入库在Oracle中其实涉及到很多 ...
- Oracle EBS应用笔记整理 (转自IT++ flyingkite)
***************************************************** Author: Flyingkite Blog: http://space.itpub. ...
- [转]oracle EBS 基础100问
from:http://www.cnblogs.com/xiaoL/p/3593691.html http://f.dataguru.cn/thread-51057-1-1.html 1001 OR ...
- Oracle EBS R12经验谈(二)
作者: jianping.ni 时间: 2009-2-13 12:52 标题: Oracle EBS R12经验谈(二) OAF页面:银行帐户开户人LOV值列表无值 在输入 应付超 ...
随机推荐
- FAT16文件系统简介
有必要说明一下,以下对FAT16系统的介绍,很多都是参考文献.由于FAT16系统一般在U盘.MMC卡.SD卡以及一些小型存储设备上使用比较多,以后把这些小型存储设备统称为存储卡,这里仅局限于对存储卡的 ...
- Android中通过代码获取arrays.xml文件中的数据
android工程res/valuse文件夹下的arrays.xml文件中用于放各种数组数据,比如字符串数组.整型数组等,数组中的数据可能是具体的值,也有可能是对资源数据的引用,下面针对这两种情况通过 ...
- windows phone中,将crash report记录下来,写入文件,方便分析
APP出现crash(崩溃)总是不能忍的 当我们连接调试器调试的时候,发现每当APP崩溃的时候 程序都会走到App.xaml.cs中的 // Code to execute on Unhandled ...
- 在Activity中响应ListView内部按钮的点击事件的两种方法!!!
在Activity中响应ListView内部按钮的点击事件的两种方法 转载:http://www.cnblogs.com/ivan-xu/p/4124967.html 最近交流群里面有人问到一个问题: ...
- 2.8 Classes of Restricted Estimators
根据所加限制的不同,可以将模型分为以下几类 RSS+Roughness penalty $PRSS(f;\lambda)=RSS(f)+\lambda J(f)$ 其中$J(f)$为对函数$f$的pe ...
- MongoDB 复制
副本集:简单说,副本集就是有自动故障恢复功能的主从集群.主从集群和副本集最为明显的区别:副本集没有固定的“主节点”.整个集群会选出一个主节点.当其不能工作时,变更到其他节点.二者看起来非常相似:副本集 ...
- CodeForces 10D. LCIS 最长公共上升子序列模板题 + 打印路径
推荐一篇炒鸡赞的blog. 以下代码中有打印路径. #include <algorithm> #include <iostream> #include <cstring& ...
- 编程获取linux的CPU使用的内存使用情况
Linux可用下top.ps命令检查当前的cpu.mem用法.下面简单的例子: 一.采用ps查看资源消耗的过程 ps -aux 当您查看进程信息,第三列是CPU入住. [root@localhost ...
- swift通过摄像头读取每一帧的图片,并且做识别做人脸识别
最近帮别人做一个项目,主要是使用摄像头做人脸识别 github地址:https://github.com/qugang/AVCaptureVideoTemplate 要使用IOS的摄像头,需要使用AV ...
- UBUNTU系统root帐号解锁
UBUNTU系统启动时默认以安装系统时输入的用户名进行登录.如:以非root帐号rusky登录系统,当我们做某些操作时系统提示需要输入root密码.但我们并没有设置过root密码.此时,可按如下操作为 ...