R12 Vendor Location tier payment Method sql

Source: Internet
Author: User

--r12 Vendor Location Tier payment Method sql:
SELECT Ipmv.payment_method_name
, Ipmv.payment_method_code
, ' N ' Primary_flag
, ' Y ' global
From Iby_applicable_pmt_mthds aipmv, IBY_PAYMENT_METHODS_VL ipmv
WHERE Aipmv.payment_method_code = Ipmv.payment_method_code
and Aipmv.payment_flow = ' disbursements '
and NVL (Ipmv.inactive_date, TRUNC (sysdate + 1)) > TRUNC (sysdate)
and aipmv.application_id = 200
and Aipmv.applicable_type_code = ' payee '
and Aipmv.applicable_value_to is NULL
And not EXISTS
(SELECT 1
From Iby_ext_party_pmt_mthds Iepp
, Iby_external_payees_all Iepa
WHERE Aipmv.payment_method_code = Iepp.payment_method_code
and Aipmv.payment_flow = Iepp.payment_flow
and iepp.payment_function = ' PAYABLES_DISB '
and iepp.ext_pmt_party_id = iepa.ext_payee_id
and iepa.org_id = &p_org_id
and iepa.supplier_site_id = &p_vendor_site_id)
UNION
SELECT Ipmv.payment_method_name
, Iepp.payment_method_code
, Iepp.primary_flag
, ' N ' global
From IBY_PAYMENT_METHODS_VL IPMV
, Iby_ext_party_pmt_mthds Iepp
, Iby_external_payees_all Iepa
WHERE Ipmv.payment_method_code = Iepp.payment_method_code (+)
and Iepp.payment_flow = ' disbursements '
and NVL (Ipmv.inactive_date, TRUNC (sysdate + 1)) > TRUNC (sysdate)
and iepp.payment_function = ' PAYABLES_DISB '
and iepp.ext_pmt_party_id = iepa.ext_payee_id
and iepa.org_id = &p_org_id
and iepa.supplier_site_id = &p_vendor_site_id

R12 Vendor Location tier payment Method sql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.