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 有效银行账户取值的更多相关文章

  1. (转)Oracle EBS 有效银行账户取值 银行科目

    SELECT ba.bank_account_id, --银行账户key ftv.territory_short_name, --国家 ftv.territory_code, --国家简称 cb.ba ...

  2. Oracle EBS GL总账凭证取值

    SELECT gh.je_header_id, gh.period_name, gh.default_effective_date, gh.je_source, gs.user_je_source_n ...

  3. Oracle EBS 用户职责人员取值

    SELECT fu.user_name 用户名, fu.description 用户说明, fu.start_date 用户启用日期, fu.end_date 用户终止日期 --,fu.employe ...

  4. Oracle EBS AR应收核销取值

    AR_RECEIVABLE_APPLICATIONS APP, AR_CASH_RECEIPTS CR, AR_PAYMENT_SCHEDULES PS_INV, HZ_CUST_ACCOUNTS C ...

  5. Oracle EBS INV 查询物料无值 ECO

    查找物料的时候报错 没有输入值 解决方法: 针对FORM做trace 多查看几个生成的trace 搜索 MTL_SYSTEM_ITEMS_b 的信息 查看到最后面的语句(一般可直接查看) 看SQL 哪 ...

  6. Oracle EBS AR 收款调整取值

    SELECT ct.trx_number ,adj.adjustment_number ,ad.amount_dr ,ad.amount_cr ,ad.source_table ,ad.source_ ...

  7. Oracle EBS AP银行显示不全

  8. Oracle EBS 银行账户API

     创建银行 -- Create Bank DECLARE p_init_msg_list VARCHAR2(200); p_country_code VARCHAR2(200); p_bank_nam ...

  9. Oracle存储过程-自定义数据类型,集合,遍历取值

    摘要 Oracle存储过程,自定义数据类型,集合,遍历取值 目录[-] 0.前言 1.Packages 2.Packages bodies 3.输出结果 0.前言 在Oracle的存储过程中,可能会遇 ...

随机推荐

  1. Img与background的区别

    今天做项目中,用background显示了二维码和一些文字,但显示到页面上时,二维码和图片都变得模糊了.于是将图片调整.放大,但在放大后,作为背景图片的它则显示不全,无奈之下用了backgroung- ...

  2. notepad++中设置python运行

    1. Notepad++ ->"运行"菜单->"运行"按钮 2. 在弹出的窗口内输入以下命令: cmd /k python "$(FULL ...

  3. Ubuntu11.10 带图形安装步骤详解

    不多说,直接上干货! 成功!  关于Ubuntu的网络设置.静态IP设置,见 Ubuntukylin-14.04-desktop( 不带分区)安装步骤详解 Ubuntukylin-14.04-desk ...

  4. SQL Function 自定义函数

    目录 产生背景(已经有了存储过程,为什么还要使用自定义函数) 发展历史 构成 使用方法 适用范围 注意事项 疑问   内容 产生背景(已经有了存储过程,为什么还要使用自定义函数) 与存储过程的区别(存 ...

  5. Spring4.x所有Maven依赖

    Spring4.x所有Maven依赖 定义Spring版本号 1 <properties> 2 <org.springframework.version>4.3.7.RELEA ...

  6. 在Bash中定制炫酷的命令提示符

    如果你使用的是Linux桌面(例如:Fedora或者Ubuntu)的话,在Terminal上使用Bash通常是必须地,但是默认的Bash提示符都很普通.本文将提供简单的Bash脚本(通过定制PS1)定 ...

  7. PTA (Advanced Level) 1024 Palindromic Number

    Palindromic Number A number that will be the same when it is written forwards or backwards is known ...

  8. Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published

    sometimes when importing a maven project in eclipse, i get the following error: Classpath entry org. ...

  9. Redis debugging guide---官方

    Redis debugging guide Redis is developed with a great stress on stability: we do our best with every ...

  10. 任务三十七:UI组件之浮出层

    任务三十七:UI组件之浮出层 面向人群: 有一定JavaScript基础 难度: 低 重要说明 百度前端技术学院的课程任务是由百度前端工程师专为对前端不同掌握程度的同学设计.我们尽力保证课程内容的质量 ...