(转)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的存储过程中,可能会遇 ...
随机推荐
- Winfrom 动画实现
Winform 动画实现 实际上是调用的系统的 Win32 class Animation { // 从左到右打开窗口 public const Int32 AW_HOR_POSITIVE = 0x0 ...
- 【转】C# 串口操作系列(1) -- 入门篇,一个标准的,简陋的串口例子。
C# 串口操作系列(1) -- 入门篇,一个标准的,简陋的串口例子. 标签: c#objectnewlineexceptionbytestring 2010-05-17 01:10 117109人阅读 ...
- NEERC-2017
A. Archery Tournament 用线段树套set维护横坐标区间内的所有圆,查询时在$O(\log n)$个set中二分查找即可. 时间复杂度$O(n\log^2n)$. #include& ...
- SVN-您的主机中的软件中止了一个已建立的连接
关于这个问题,网络上有各种解决的办法,关闭防火墙,HTTP/HTTPS切换,改端口... ...但我都试了没有用.本来一直用的好好的,突然就出现了这个问题,而且在几分钟前都是正常的.下面来说说我都干了 ...
- (71)Wangdao.com第十一天_JavaScript 数学对象 Math
Math 对象 封装了数学相关的 属性和方法. 和其他对象不一样,Math 不是一个构造函数,所以不能 new 生成实例, 其所有属性和方法都必须在 Math 对象上调用. 静态属性 Math.PI ...
- spring boot 加载application配置文件
这就要注意了
- python基础3 条件判断 if嵌套
if单向判断: stonenumber=6#为宝石数量赋值 if stonenumber>=6: #条件:如果你拥有的宝石数量大于等于6个 print('你拥有了毁灭宇宙的力量') #结果:显示 ...
- struct与class的区别
C++中的struct是对C中struct的扩充,它已经不再只是一个包含不同数据类型的数据结构,因为其扩充了太多功能.总的来说,C++中struct和class极其相似,比如,struct能包含成员函 ...
- AWS deepracer
0.安装 坑很多,Ubuntu16.04上安python3,gazebo9,各种包,最后在python2下roslaunch,参见我爱豆的github: https://github.com/exit ...
- 包的初识和进阶&异常处理
包 包是一种通过使用‘.模块名’来组织python模块名称空间的方式. 1. 无论是import形式还是from...import形式,凡是在导入语句中(而不是在使用时)遇到带点的,都要第一时间提高警 ...