(转)Oracle EBS 有效银行账户取值 银行科目
SELECT ba.bank_account_id, --银行账户key
ftv.territory_short_name, --国家
ftv.territory_code, --国家简称
cb.bank_name, ---银行名称
cbb.bank_branch_name, ---分行名称
hp.party_name, --公司法人
ba.ap_use_allowed_flag, --ap是否可用
ba.ar_use_allowed_flag, --ar是否可用
ba.bank_account_name, ---账户名称
ba.bank_account_num, --银行帐号
ba.currency_code, --币种
gcc1.segment1 asset_segment1, ---现金
gcc1.segment2 asset_segment2,
gcc1.segment3 asset_segment3,
gcc1.segment4 asset_segment4,
gcc1.segment5 asset_segment5,
gcc1.segment6 asset_segment6,
gcc1.segment7 asset_segment7,
gcc1.segment8 asset_segment8,
gcc2.segment1 cash_c_segment1, ---现金结算
gcc2.segment2 cash_c_segment2,
gcc2.segment3 cash_c_segment3,
gcc2.segment4 cash_c_segment4,
gcc2.segment5 cash_c_segment5,
gcc2.segment6 cash_c_segment6,
gcc2.segment7 cash_c_segment7,
gcc2.segment8 cash_c_segment8,
gcc3.segment1 bank_c_segment1, ---银行手续费
gcc3.segment2 bank_c_segment2,
gcc3.segment3 bank_c_segment3,
gcc3.segment4 bank_c_segment4,
gcc3.segment5 bank_c_segment5,
gcc3.segment6 bank_c_segment6,
gcc3.segment7 bank_c_segment7,
gcc3.segment8 bank_c_segment8,
ba.netting_acct_flag, --净值计算帐户
hou.name org_name,
hou.organization_id,
cbau.ap_use_enable_flag ou_ap_use_enable_flag,
cbau.ar_use_enable_flag ou_ar_use_enable_flag,
gcc4.segment1 ou_asset_segment1, ---公司银行科目
gcc4.segment2 ou_asset_segment2,
gcc4.segment3 ou_asset_segment3,
gcc4.segment4 ou_asset_segment4,
gcc4.segment5 ou_asset_segment5,
gcc4.segment6 ou_asset_segment6,
gcc4.segment7 ou_asset_segment7,
gcc4.segment8 ou_asset_segment8,
gcc5.segment1 ou_cash_c_segment1, ---公司现金结算
gcc5.segment2 ou_cash_c_segment2,
gcc5.segment3 ou_cash_c_segment3,
gcc5.segment4 ou_cash_c_segment4,
gcc5.segment5 ou_cash_c_segment5,
gcc5.segment6 ou_cash_c_segment6,
gcc5.segment7 ou_cash_c_segment7,
gcc5.segment8 ou_cash_c_segment8,
gcc6.segment1 ou_bank_c_segment1, ---公司银行手续费
gcc6.segment2 ou_bank_c_segment2,
gcc6.segment3 ou_bank_c_segment3,
gcc6.segment4 ou_bank_c_segment4,
gcc6.segment5 ou_bank_c_segment5,
gcc6.segment6 ou_bank_c_segment6,
gcc6.segment7 ou_bank_c_segment7,
gcc6.segment8 ou_bank_c_segment8,
gcc7.segment1 ou_future_segment1, ---公司远期付款
gcc7.segment2 ou_future_segment2,
gcc7.segment3 ou_future_segment3,
gcc7.segment4 ou_future_segment4,
gcc7.segment5 ou_future_segment5,
gcc7.segment6 ou_future_segment6,
gcc7.segment7 ou_future_segment7,
gcc7.segment8 ou_future_segment8,
ba.description,
substr(ba.description, 1, instr(ba.description, '+', 1) - 1) desc1, ---银行联行号
substr(ba.description,
instr(ba.description, '+', 1) + 1,
instr(ba.description, '+', 1, 2) -
instr(ba.description, '+', 1) - 1) desc2, ---银行所在省
substr(ba.description,
instr(ba.description, '+', 1, 2) + 1,
length(ba.description) - instr(ba.description, '+', 1, 2)) desc3 ---银行所在市 FROM ce_banks_v cb,
ce_bank_accounts ba,
ce_bank_branches_v cbb,
ce.ce_bank_acct_uses_all cbau,
fnd_territories_vl ftv,
hz_parties hp,
gl_code_combinations gcc1,
gl_code_combinations gcc2,
gl_code_combinations gcc3,
hr_operating_units hou,
ce_gl_accounts_ccid cgc,
gl_code_combinations gcc4,
gl_code_combinations gcc5,
gl_code_combinations gcc6,
gl_code_combinations gcc7
WHERE 1 = 1
AND cbau.bank_account_id = ba.bank_account_id
AND cbb.branch_party_id = ba.bank_branch_id
AND SYSDATE < nvl(ba.end_date, SYSDATE + 1)
AND ba.account_classification = 'INTERNAL'
AND cbau.ap_use_enable_flag = 'Y'
AND cb.pk_id = ba.bank_id
AND ftv.territory_code = cb.home_country
AND hp.party_id = ba.account_owner_party_id
AND gcc1.code_combination_id = ba.asset_code_combination_id
AND gcc2.code_combination_id = ba.cash_clearing_ccid
AND gcc3.code_combination_id = ba.bank_charges_ccid
AND hou.organization_id = cbau.org_id
AND cgc.bank_acct_use_id = cbau.bank_acct_use_id
AND cgc.ap_asset_ccid = gcc4.code_combination_id
AND cgc.cash_clearing_ccid = gcc5.code_combination_id
AND cgc.bank_charges_ccid = gcc6.code_combination_id
AND cgc.future_dated_payment_ccid = gcc7.code_combination_id
; select hz3.party_name,
hr.name,
hz1.party_name,
hz2.party_name,
ce.bank_account_name,
ce.bank_account_num,
ce.attribute1,
ce.attribute2,
ce.attribute3,
ce.attribute4,
ce.attribute5,
ce.attribute6,
ce.attribute7,
ce.attribute8,
gcc.concatenated_segments
from ce_bank_accounts ce,
gl_code_combinations_kfv gcc,
hz_parties hz1,
hz_parties hz2,
hz_parties hz3,
hr_operating_units hr
where ce.asset_code_combination_id = gcc.code_combination_id
and ce.bank_id = hz1.party_id
and ce.bank_branch_id = hz2.party_id
and ce.account_owner_party_id = hz3.party_id
and hr.default_legal_context_id = ce.account_owner_org_id
and hz1.status = 'A'
and hz2.status = 'A'
and hz3.status = 'A'
(转)Oracle EBS 有效银行账户取值 银行科目的更多相关文章
- Oracle EBS 有效银行账户取值
SELECT ba.bank_account_id, --银行账户key ftv.territory_short_name, --国家 ftv.territory_code, --国家简称 cb.ba ...
- Oracle EBS GL总账凭证取值
SELECT gh.je_header_id, gh.period_name, gh.default_effective_date, gh.je_source, gs.user_je_source_n ...
- Oracle EBS 用户职责人员取值
SELECT fu.user_name 用户名, fu.description 用户说明, fu.start_date 用户启用日期, fu.end_date 用户终止日期 --,fu.employe ...
- Oracle EBS AR应收核销取值
AR_RECEIVABLE_APPLICATIONS APP, AR_CASH_RECEIPTS CR, AR_PAYMENT_SCHEDULES PS_INV, HZ_CUST_ACCOUNTS C ...
- Oracle EBS INV 查询物料无值 ECO
查找物料的时候报错 没有输入值 解决方法: 针对FORM做trace 多查看几个生成的trace 搜索 MTL_SYSTEM_ITEMS_b 的信息 查看到最后面的语句(一般可直接查看) 看SQL 哪 ...
- Oracle EBS AR 收款调整取值
SELECT ct.trx_number ,adj.adjustment_number ,ad.amount_dr ,ad.amount_cr ,ad.source_table ,ad.source_ ...
- Oracle EBS AP 供应商API
--创建供应商地址上的电话号码 created by jenrry 20170419 DECLARE l_return_status VARCHAR2(1); l_msg_count NUMBER; ...
- Oracle EBS 银行账户API
创建银行 -- Create Bank DECLARE p_init_msg_list VARCHAR2(200); p_country_code VARCHAR2(200); p_bank_nam ...
- Oracle存储过程-自定义数据类型,集合,遍历取值
摘要 Oracle存储过程,自定义数据类型,集合,遍历取值 目录[-] 0.前言 1.Packages 2.Packages bodies 3.输出结果 0.前言 在Oracle的存储过程中,可能会遇 ...
随机推荐
- Java中在实例化一个类时,这个类中没有初始值的int类型成员变量i,i的值是不是0?
java中有两种类型一种是数值性,另一种是类变量数值性变量的初始值为0,类变量的初始化为null没做初始化成员变量int性变量是0, 在java中有这么一条规则,声明在方法中的变量在使用时必须要初始化 ...
- Anaconda基础(一)
目录 Conda常见命令 环境管理 包管理 conda管理 小技巧 Conda常见命令 环境管理 创建环境 conda create -n 环境名 包列表 进入环境 source activate 环 ...
- PeopleSoft如何查找jar包冲突
PeopleSoft要查找jar包冲突问题,不像maven可以打印出所有依赖,但既然是在JVM上运行,就可以启用JVM参数 路经:%ps_cfg_home%\appserv\Domain 文件名:ps ...
- 在Windows上安装Nexus 3.2.0-01
在Windows上安装Nexus 环境: Windows 7 apache-maven-3.3.9 JDK 1.8 下载Nexus: https://sonatype-download.globa ...
- 11. cookie_session_原生ajax_readyState的值_同源策略_跨域_jsonp的使用
1. cookie 浏览器存储技术.(服务器将少量数据交于浏览器存储管理) 作用: 存储数据, 解决 http 协议无状态问题 工作流程: 浏览器发送请求给服务器,请求登录 服务器返回响应给浏览器,此 ...
- [LeetCode] All Paths From Source to Target 从起点到目标点到所有路径
Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and re ...
- vue引入外部.css文件,webpack将其与.vue中的样式混合打包了,怎么办?
我使用vue-cli搭自己的博客,希望引入公共样式: // main.js import './assets/styles/common.css' 我本来是希望webpack打包后,能将这个样式独立打 ...
- mysql 日志类型
mysql有四种日志: 所有日志:general log 慢查询日志:slow log 二进制日志:binary log 错误日志:error log windows下在my.ini里配置,linux ...
- php 一行代码解决二维数组去重
array_unique($array, SORT_REGULAR);
- Windows 上编译 corefx 源码生成 Linux 上可用的 System.Data.SqlClient.dll
最近在排查一个奇怪的 EF Core 查询速度慢的问题,需要在 corefx 2.2.3 的 System.Data.SqlClient 源码中打点. github 上签出 corefx 的源代码,运 ...