Oracle Applications - Query To Get Payment Method For Supplier and Supplier Sites
Oracle Applications - Query To Get Payment Method For Supplier and Supplier Sites
More
This table holds any payment method that has been the default for the site. The current default
will have IBY_EXT_PARTY_PMT_MTHDS.Primary_Flag = 'Y'.
You could use these queries to see the rows for a given supplier site:
This one will show the default payment method (if any) at the Site level:
SELECT SUP.vendor_name SUPPLIER,
SITE.vendor_site_code SITE,
SITE.vendor_site_id,
SITE.org_id,
IBEPPM.payment_method_code
FROM ap_suppliers SUP,
iby_external_payees_all IBEP,
iby_ext_party_pmt_mthds IBEPPM,
ap_supplier_sites_all SITE
WHERE SUP.party_id = IBEP.payee_party_id
AND IBEPPM.ext_pmt_party_id = IBEP.ext_payee_id
AND SITE.vendor_id = SUP.vendor_id
AND IBEP.supplier_site_id = SITE.vendor_site_id
AND IBEPPM.primary_flag = 'Y'
AND SUP.vendor_name = '<Supplier Name>'
ORDER BY SUPPLIER, SITE;
This one will show the default payment method (if any) at the Supplier level:
SELECT SUP.vendor_name SUPPLIER, IBEPPM.payment_method_code
FROM ap_suppliers SUP,
iby_external_payees_all IBEP,
iby_ext_party_pmt_mthds IBEPPM
WHERE SUP.party_id = IBEP.payee_party_id
AND IBEPPM.ext_pmt_party_id = IBEP.ext_payee_id
AND IBEP.supplier_site_id IS NULL
AND SUP.vendor_name = '<Supplier Name>';
This will show all Payees associated with a given supplier. The payee associated with a Supplier site will have a value for Supplier_Site_ID
SELECT SUP.vendor_name, PAYEE.*
FROM iby_external_payees_all PAYEE, ap_suppliers SUP
WHERE PAYEE.payee_party_id = SUP.party_id
1 comment:
Unknown said...
Good
oracleapps88.blogspot.com/2017/12/query-to-get-payment-method-for.html 1/3
1/11/2021 Oracle Applications: Query To Get Payment Method for Supplier and Supplier Sites
April 19, 2019 at 11:28 AM
Post a Comment
oracleapps88.blogspot.com/2017/12/query-to-get-payment-method-for.html 2/3
1/11/2021 Oracle Applications: Query To Get Payment Method for Supplier and Supplier Sites
Email : [email protected]. Picture Window theme. Theme images by konradlew. Powered by Blogger.
oracleapps88.blogspot.com/2017/12/query-to-get-payment-method-for.html 3/3