Tuesday 4 December 2012

R12 Query to find supplier payment method




In R12 supplier payment method information no more exists in the ap_supplier_sites_all table.
Query to find the supplier payment method


SELECT   ieppm.payment_method_code
       FROM ap_supplier_sites_all assa,
            ap_suppliers sup,
            iby_external_payees_all iepa,
            iby_ext_party_pmt_mthds ieppm
      WHERE sup.vendor_id = assa.vendor_id
        AND assa.pay_site_flag = 'Y'
        AND assa.vendor_site_id = iepa.supplier_site_id
        AND iepa.ext_payee_id = ieppm.ext_pmt_party_id
        AND ((ieppm.inactive_date IS NULL) OR (ieppm.inactive_date > SYSDATE)
            )
        AND assa.vendor_site_id = :p_vendor_site_id
        AND ieppm.primary_flag = 'Y'
   ORDER BY sup.vendor_name, assa.vendor_site_code

11 comments:

  1. Thank you, it saved me 1 hour.

    ReplyDelete
  2. Nice Manas Da. Helped me today

    ReplyDelete
  3. Contrary to all the plaudits above this isn't great. The sql fails to select the max object version from iby_ext_party_pmt_mthds.
    It's also of copy of the same sql posted by many others perpetuating the issue above.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks!! It helped me today! Very useful..Saved my time!

    ReplyDelete
  6. I am newbie of this PHP technology, this post helps me to know the introductory of PHP, Thanks for posting such a nice post.
    Regards, god work
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete