ap_invoice_distributions_all到xla_ae_lines
select c.code_combination_id,
h.je_header_id,
l.ae_header_id,
l.ae_line_num,
te.source_id_int_1,
te.application_id,
te.entity_id,
h.je_source,
h.je_category,
i.gl_date,
s.vendor_name,
s.segment1 as supplier_no,
l.event_class_code as event_class,
i.invoice_id,
ad.invoice_distribution_id,
i.invoice_num as transaction_number,
i.invoice_date,
initcap(jl.description) description,
jl.accounted_dr as debit,
jl.accounted_cr as credit,
nvl(jl.accounted_dr, 0) - nvl(jl.accounted_cr, 0) net_amount
from apps.gl_je_headers h,
apps.gl_je_lines jl,
apps.gl_code_combinations c,
apps.gl_import_references r,
apps.xla_ae_lines al,
apps.xla_ae_headers ah,
apps.xla_distribution_links l,
apps.ap_invoices_all i,
apps.ap_invoice_distributions_all ad,
apps.ap_suppliers s,
apps.xla_events e,
apps.xla_transaction_entities te
where /*ad.invoice_id = 10194
and*/ jl.je_header_id = h.je_header_id
and jl.code_combination_id = c.code_combination_id
and al.gl_sl_link_id = r.gl_sl_link_id
and al.ae_header_id = ah.ae_header_id
and al.application_id = ah.application_id
and ah.application_id = e.application_id
and ah.event_id = e.event_id
and e.application_id = te.application_id(+)
and e.entity_id = te.entity_id(+)
and r.je_header_id = jl.je_header_id
and r.je_line_num = jl.je_line_num
and l.ae_header_id = al.ae_header_id
and l.ae_line_num = al.ae_line_num
and l.applied_to_source_id_num_1 = i.invoice_id
and l.source_distribution_id_num_1 = ad.invoice_distribution_id
and ad.invoice_id = i.invoice_id
and i.vendor_id = s.vendor_id
order by i.gl_date desc
转载于:https://www.cnblogs.com/benio/archive/2011/01/01/1923697.html
ap_invoice_distributions_all到xla_ae_lines相关推荐
- 子分类账知识学习(汇总网上比较有用的资料)
子模块和GL之间关联的变化 12i在功能模块上的变化很多,比如,基本每个模块都启用了MOAC特性,新增加了子帐模块,税模块等等很多新的模块,OPM库存和离散库存集成了.不过这些变化中,大部分不 ...
- oracle凭证编号,R12 AP模块的发票过账后如何关联对应的凭证编号
--AP发票 SELECT GJH.NAME,GJH.LEDGER_ID,GJH.JE_CATEGORY, GJH.JE_SOURCE,XDL.SOURCE_DISTRIBUTION_TYPE, XT ...
- R12_专题知识总结提炼-AP模块
应付模块业务操作流程 供应商管理 供应商概述 在您使用 Oracle Purchasing 之前,需要定义供应商.供应商site,以及供应商联系人, 供应商主数据(SUPPLIER MASTER D ...
- ORACLE EBS常用标准表结构
ORACLE EBS常用标准表结构 标签: EBS Oracle 一.INV(库存) 子库存:mtl_secondary_inventories 事物处理:mtl_material_transacti ...
- Oracle常用标准表
一.INV(库存) 子库存:mtl_secondary_inventories 事物处理:mtl_material_transactions mmt 事务处理来源类型:mtl_txn_source_t ...
- Oracle EBS R12 SLA子分类帐会计 核心标准表(Table)
目录 一.会计事务实体(子帐与子模块的关系) 二.会计事件 三.子帐头 四.子帐行 五.子帐关联 六.日记帐参考(子帐与GL日记帐的关系) 一.会计事务实体(子帐与子模块的关系) SELECT * F ...
- Document TitleHow to troubleshoot Funds Check Hold Issues on Payables Invoices
最近发票验证的时候 总是被系统自动加上HOLD :资金检查无法进行[@more@] Document TitleHow to troubleshoot Funds Check Hold Issues ...
- Oracle ebs 常用标准表
Oracle ebs 常用标准表 call fnd_global.APPS_INITIALIZE(1318,50583,401) select fnd_profile.VALUE('ORG_ID') ...
- 今年一直搞Oracle EBS优化,脑壳痛
搞了10几年的性能优化,OLTP系统,OLAP系统,Oracle,MYSQL,PG,Greenplum,Oceanbase,hive, 达梦等等各种数据库优化项目做过太多太多...唯独EBS系统没有单 ...
最新文章
- golang runtime.findrunnable epoll_wait lock 占用CPU 过多排查
- 第四章-分布式数据库HBase
- RTC 融合通信服务架构与场景应用 | 2021稀土开发者大会音视频专场
- Python实现二叉树的三种深度遍历方法!
- boost::typeof模块实现函数绑定的测试程序
- boost::signals2::slot相关的测试程序
- 06 Jquery 基础
- Android打开jsp页面,如何确定是通过jsp页面上的Android设备还是IOS设备访问网页
- linux race window,java开发环境(QTrace)
- 如何将php里面的首行缩进_word首行缩进排版的三个技巧
- JS 没有块级作用域
- Centos7 FastDFS 安装和配置启动
- isodata算法确定k均值聚类的k值
- html图形渐变颜色一半一半,CSS3第八课:重复线性渐变repeating-linear-gradient
- 同花顺面经(二面挂)
- java语言学术报告厅,文理学院举办java编程语言公开课
- html 调用weixinsharetimeline,微信小程序使用onShareTimeline分享到朋友圈的方法
- USB设备导致xp系统蓝屏
- 运算放大器应用汇总2
- 控制算法--1 二值位式控制算法
热门文章
- 以图搜图:Python实现dHash算法
- redmi airdots左右耳不串联怎么办_小米AirDots二代4小时售罄,告诉你戴狂卖3500万的耳机是什么感受...
- 南大电子机器人入驻云南_园区优秀企业| 中科恒清清淤机器人,以智能科技为水环境治理保驾护航...
- 均匀三次b样条曲线_西门子数控曲线加工进给速度优化指令
- Emacs编辑Nginx
- mysql libs 5.1.73_【MySQL案例】mysql-libs-5.1.73-3.el6
- python中bd是什么属性_python数据类型及其特有方法
- APP适配安卓手机刘海屏
- CentOS7部署Nginx
- JDK 中的证书生成和管理工具 keytool