Supplier Bank and Pay Group:
-----------------------------------------
SELECT aps.vendor_name,
       apss.vendor_site_code,
       apss.pay_group_lookup_code,
       iebb.branch_number,
       ieba.bank_account_num,
       ieba.bank_account_name
  FROM apps.ap_suppliers aps,
       apps.ap_supplier_sites_all apss,
       apps.iby_ext_bank_accounts ieba,
       apps.iby_account_owners iao,
       apps.iby_ext_banks_v ieb,
       apps.iby_ext_bank_branches_v iebb
 WHERE aps.enabled_flag = 'Y'
   and aps.vendor_id = apss.vendor_id
   and apss.inactive_date is null
   and iao.account_owner_party_id = aps.party_id
   and ieba.ext_bank_account_id = iao.ext_bank_account_id
   and ieb.bank_party_id = iebb.bank_party_id
   and ieba.branch_id = iebb.branch_party_id
   and ieba.bank_id = ieb.bank_party_id;

Comments

Popular posts from this blog

AP Invoice Rejection - Errors

AP Invoice Rejections

GL Interface