Oracle EBS-SQL (WIP-10):检查车间任务状态“完成”但未发料数据.sql
select WE.WIP_ENTITY_NAME 任务号,
MFG_LOOKUPS_WJS.MEANING 作业状态,
WDJ.CLASS_CODE 任务类型,
MSI1.SEGMENT1 装配编码,
Msi1.Description 装配描述,
WDJ.SCHEDULED_START_DATE 计划完成日期,
WDJ.SCHEDULED_COMPLETION_DATE 计划完成日期,
nvl(WDJ.START_QUANTITY, 0) 计划数量,
nvl(WDJ.QUANTITY_COMPLETED, 0) 完成数量,
MSI2.SEGMENT1 物料编码,
CIC.ITEM_COST 成本,
Msi2.Description 物料描述,
nvl(WRO.REQUIRED_QUANTITY, 0) 需求数量,
nvl(WRO.QUANTITY_ISSUED, 0) 发送数量,
nvl(WRO.REQUIRED_QUANTITY, 0) - nvl(WRO.QUANTITY_ISSUED, 0) 未发,
wro.supply_subinventory 供应子库,
ML.MEANING 供应类型
from WIP.WIP_DISCRETE_JOBS WDJ,
WIP.WIP_REQUIREMENT_OPERATIONS WRO,
INV.Mtl_System_Items_B MSI1,
INV.Mtl_System_Items_B MSI2,
WIP.WIP_ENTITIES we,
BOM.CST_ITEM_COSTS CIC,
applsys.fnd_LOOKUP_values ML,
applsys.fnd_LOOKUP_values
MFG_LOOKUPS_WJS
where WE.ORGANIZATION_ID = X
and WDJ.WIP_ENTITY_ID(+) = WE.WIP_ENTITY_ID
and WDJ.ORGANIZATION_ID = WE.ORGANIZATION_ID
and Msi1.INVENTORY_ITEM_ID(+) = We.PRIMARY_ITEM_ID
and Msi1.ORGANIZATION_ID = We.ORGANIZATION_ID
and WRO.WIP_ENTITY_ID(+) = WDJ.WIP_ENTITY_ID
and WRO.ORGANIZATION_ID = WDJ.ORGANIZATION_ID
and MSI2.INVENTORY_ITEM_ID(+) = WRO.INVENTORY_ITEM_ID
and MSI2.ORGANIZATION_ID = WRO.ORGANIZATION_ID
and ML.LOOKUP_TYPE = 'WIP_SUPPLY'
and ML.LOOKUP_CODE = WRO.WIP_SUPPLY_TYPE
and (MFG_LOOKUPS_WJS.LOOKUP_TYPE = 'WIP_JOB_STATUS')
and (wdj.STATUS_TYPE = MFG_LOOKUPS_WJS.LOOKUP_CODE)
and CIC.INVENTORY_ITEM_ID = MSI2.INVENTORY_ITEM_ID
and CIC.ORGANIZATION_ID = MSI2.ORGANIZATION_ID
and CIC.COST_TYPE_ID = 1
and MFG_LOOKUPS_WJS.MEANING<>'已关闭'
--and trunc(WDJ.SCHEDULED_COMPLETION_DATE) between to_date('20**/01/01','yyyy-mm-dd') and to_date('20**/01/31','yyyy-mm-dd')
and MFG_LOOKUPS_WJS.Language='ZHS'
and ML.Language='ZHS'
and nvl(WRO.REQUIRED_QUANTITY, 0) - nvl(WRO.QUANTITY_ISSUED, 0)>0
-- and WRO.REQUIRED_QUANTITY < WRO.QUANTITY_ISSUED
-- and nvl(WDJ.START_QUANTITY, 0)< nvl(WDJ.QUANTITY_COMPLETED, 0)
and MFG_LOOKUPS_WJS.MEANING = '完成'
and nvl(WDJ.START_QUANTITY, 0)=nvl(WDJ.QUANTITY_COMPLETED, 0)
and WRO.WIP_SUPPLY_TYPE <> 6
Oracle EBS-SQL (WIP-10):检查车间任务状态“完成”但未发料数据.sql的更多相关文章
- Oracle EBS R12 WIP Component Issue&Return Process
oracleassemblytransactionscomponentsjobsreference 目录(?)[-] 定义BOM 定义Routing 定义WIP Discrete Job 发料 Mat ...
- Oracle EBS 隐藏帮助-诊断-检查
- Oracle EBS DBA常用SQL - 安装/补丁【Z】
Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...
- oracle锁表查询,资源占用,连接会话,低效SQL等性能检查
查询oracle用户名,机器名,锁表对象 select l.session_id sid, s.serial#, l.locked_mode, l.oracle_username, l.os_user ...
- Oracle EBS中分类账和法人实体 的关系(有sql语句实例)
Oracle EBS中分类账和法人实体 的关系(有sql语句实例) 2012-12-06 16:05 2822人阅读 评论(0) 收藏 举报 分类: Oracle EBS(12) Oracle数据 ...
- [转]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值列表无值 在输入 应付超 ...
- Oracle EBS WMS功能介绍(二)
Oracle EBS WMS功能介绍(二) (版权声明,本人原创或者翻译的文章如需转载,如转载用于个人学习,请注明出处.否则请与本人联系,违者必究) 出货物流逻辑主要包括 1. 打包.能够进 ...
- Oracle EBS应用笔记整理 (转自IT++ flyingkite)
***************************************************** Author: Flyingkite Blog: http://space.itpub. ...
随机推荐
- vi所有特殊字符
vi5个特殊字符包含 /.^.$.*.. 在vi中用/查找时,()不做为特殊字符处理 比如:查找字符串(cyg_uint8 *)b 应该这样写 /(cyg_uint8 \*)b 只有 * 需要转义 \ ...
- Python httplib学习
httplib是python中http协议的客户端实现,可以使用该模块与HTTP服务器进行交互. 如示例1: import httplib url = "www.126.com"c ...
- Nginx Http模块开发
关于Nginx Http模块开发的文章非常少,只有Emiler的那篇关于Http模块的文章,但是那篇文章里面,并没有说到事件型的模块如何进行开发.而且文章里面提到的内容实在是让人有点意犹未尽.因此,对 ...
- 一个.java文件中可以有几个同级类
1.在一个.java文件中可以有几个类.修饰符只可以public abstract final和无修饰符,不能是其他的private等修饰符.2.public修饰的只能有一个,且要与文件名相同 若没有 ...
- 解决CentOS(RedHat)中sendmail和sm-client启动慢故障(转)
Starting sendmail: Starting sm-client: 刚才发了修改主机名那篇文章后,我意外发现重新启动CentOS的时候系统会卡在sendmail和sm-client那里将近3 ...
- redhat 6.3 64位安装中文输入法全过程记录
首先,修改/etc/profile文件,在末尾增加两行: export LC_ALL="zh_CN.UTF-8" export LANG="zh_CN.UTF-8&quo ...
- 链表k个节点反向
问题: 以k个元素为一组,反转单向链表.比如: 输入: 1->2->3->4->5->6->7->8->null and k = 3 输出:3-> ...
- poj 1276 Cash Machine_多重背包
题意:略 多重背包 #include <iostream> #include<cstring> #include<cstdio> using namespace s ...
- poj 3761 Bubble Sort_快速幂
题意:问你冒泡排序第i次排序,一共排了多少次 套公式K!((K + 1) ^ (N - K) - K ^ (N - K)) #include <iostream> #include< ...
- tomcat root dir log 配置
tomcat 配置log记录及root 目录