Oracle EBS-SQL (BOM-14):检查工艺路线明细.sql
select
msi.segment1 装配件编码,
msi.description 装配件描述,
bos.operation_seq_num 序号,
bso.operation_code 工序代码,
bd.department_code 部门,
bos.operation_description 工序说明,
bor.completion_subinventory 完工子库,
bors.resource_seq_num 资源序号,
br.resource_code 资源代码,
br.description 资源说明,
br.unit_of_measure 资源单位,
bors.assigned_units 人数,
decode(bors.basis_type, '1', '物料', '2', '批次') 计费基准,
bors.usage_rate_or_amount 单位使用量,
bors.usage_rate_or_amount_inverse 倒数,
decode(bors.autocharge_type, '1', 'WIP移动', '2', '人工', '3','PO接收', '4', 'PO移动') 计费类型,
decode(bors.attribute1, 'Y', '是', 'N', '否') 是否预估
from inv.mtl_system_items_b msi,
bom.bom_departments bd,
bom.bom_resources br,
bom.bom_operational_routings bor,
bom.bom_operation_sequences bos,
bom.bom_operation_resources bors,
bom.bom_standard_operations bso
where msi.inventory_item_id = bor.assembly_item_id
and msi.organization_id = bor.organization_id
and bor.routing_sequence_id = bos.routing_sequence_id
and bso.standard_operation_id(+) = bos.standard_operation_id
and bos.department_id = bd.department_id
and bd.organization_id = bor.organization_id
and bors.operation_sequence_id = bos.operation_sequence_id(+)
and bors.resource_id = br.resource_id(+)
and bor.organization_id(+) = br.organization_id
and msi.organization_id = x
and msi.inventory_item_status_code <> 'Inactive'
and bos.disable_date is null
union
select msi.segment1 装配件编码,
msi.description 装配件描述,
bos.operation_seq_num 序号,
bso.operation_code 工序代码,
bd.department_code 部门,
bos.operation_description 工序说明,
bor.completion_subinventory 完工子库,
to_number('') 资源序号,
'' 资源代码,
'' 资源说明,
'' 资源单位,
to_number('') 人数,
'' 计费基准,
to_number('') 单位使用量,
to_number('') 倒数,
'' 计费类型,
'' 是否预估
from inv.mtl_system_items_b msi,
bom.bom_departments bd,
bom.bom_operational_routings bor,
bom.bom_operation_sequences bos,
bom.bom_standard_operations bso
where msi.inventory_item_id = bor.assembly_item_id
and msi.organization_id = bor.organization_id
and bor.routing_sequence_id = bos.routing_sequence_id
and bso.standard_operation_id(+) = bos.standard_operation_id
and bos.department_id = bd.department_id
and bd.organization_id = bor.organization_id
and msi.organization_id = x
and msi.inventory_item_status_code <> 'Inactive'
and bos.disable_date is null
and not exists
(select 'X'
from bom.bom_operation_resources bors
where bors.operation_sequence_id = bos.operation_sequence_id)
Oracle EBS-SQL (BOM-14):检查工艺路线明细.sql的更多相关文章
- Oracle EBS-SQL (BOM-18):检查BOM与工艺路线对照.sql
/*有工艺路线,无BOM清单*/ select msi.segment1, msi.description from apps.BOM_OPERATIONAL_ROUTINGS bor, apps.m ...
- Oracle EBS-SQL (PO-4):检查采购订单明细.sql
SELECT PHA.SEGMENT1 订单号, pha.approved_flag 批准状态, pha.closed_code 订 ...
- Oracle EBS 隐藏帮助-诊断-检查
- Oracle EBS BOM模块常用表结构
表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM_ID NUMBE ...
- [Oracle EBS APIs]import Flow routing and DJ routing using BOM_RTG_PUB.PROCESS_RTG APIs
DJ routing --BOM模块的工艺路线 Flow routing -- Flow Manufacturing 模块使用的工艺路线,导入 Flow routing时先导入Line Operati ...
- MS SQL巡检系列——检查外键字段是否缺少索引
前言感想:一时兴起,突然想写一个关于MS SQL的巡检系列方面的文章,因为我觉得这方面的知识分享是有价值,也是非常有意义的.一方面,很多经验不足的人,对于巡检有点茫然,不知道要从哪些方面巡检,另外一方 ...
- 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数据 ...
- PO ITEM_BOM_工艺路线SQL
---物料主数据接口 SELECT count(*)PO_MARA FROM STG.PO_MARA; SELECT count(*)PO_MARC FROM STG.PO_MARC; SELECT ...
随机推荐
- css清除浮动解决方案
清除浮动包括清除子元素的浮动和清除上级元素的浮动,其中清除上级元素的浮动,只需设置clear为both就可以了,而清除子元素的浮动则可以用空标签法.clearfix方法或overflow方法.因清除上 ...
- Extjs4 Grid内容已经拿到但是不显示数据
原先照着Extjs4.0.7官方文档写了一个GridPanel的列子,没有什么问题,今天又自己写了一个,效果如下,内容肯定拿到就是不显示: 经过一段代码排查后,问题出在了自定义Model时将field ...
- Qt中一些常用的格式转换
转自:http://blog.csdn.NET/yh_1988/article/details/7190356 用Qt经常头痛于一些格式不能通用的问题 在此记录备用 1 (20120112)QStri ...
- xsd转实体类
话说VS自带的工具,可以将xsd或者xml格式的文件转成实体类,大概格式如下 使用VS2005工具XSD.exe(SDK/v2.0/Bin/xsd.exe)自动生成实体类: xsd /c /names ...
- LFS:kernel panic VFS: Unable to mount root fs
说明: 使用Vm虚拟机构建自己的LFS系统时,系统引导不成功,提示 kernel panic VFS: Unable to mount root fs 参考链接:http://www.52os.net ...
- 几种基于javaI/O的文件拷贝操作比较
最近公司的项目用到文件拷贝,由于涉及到的大量大文件的拷贝工作,代码性能问题显得尤为重要,所以写了以下例子对几种文件拷贝操作做一比较: 0.文件拷贝测试方法 public static void fil ...
- sshd安全性能优化
sshd服务是远程登录服务,默认端口为22,对于其优化一是为了增加服务器的安全,避免暴力破解:二是为了加快速度连接,减少不必要的带宽的浪费. sshd服务的配置文件为/etc/ssh/sshd_con ...
- .NET 基础串讲
C#基础 .NET介绍 计算机发展史 第一代语言:机器语言 0101 第二代语言:汇编语言, 用一些简洁的英文字母.符号串来替代一个特定指令的二进制串 第三代语言:接近于数学语言或人的自然语言,同时 ...
- ADO.net基础学习总结
ADO.net是一门.net连接.操作数据库的技术 释放资源:凡是实现了idisposable借口的类都需要用using来释放资源 using() { } 连接数据库 //创建数据库连接: usi ...
- dl dt dd标签
<dl>标记定义了一个定义列表,定义列表中的条目是通过使用<dt>标记(“definition title”,定义标题)和<dd>标记(“definition de ...