Monday, April 26, 2010

How payment information is stored in R12? ( Query to find payments in R12)

We all know that, In R12 payment related information is moved from Account Payables and stored in modules named “ORACLE PAYMENTS” and “Cash Management”. Today I tried to frame a query which starts from AP_INVOICES_ALL and finds its payment information in various tables.

Below query is tested in R12.1.1 instance.
SELECT invh.invoice_id
      ,hzb.party_id   bank_id
      ,hzb.party_name bank_name
      ,hzbb.party_id  bank_branch_id
      ,hzbb.party_name bank_branch_name
      ,iby_docs_payable_all idpa
      ,iby_payments_all ip
      ,IBY_USED_PAYMENT_DOCS iupd      
      ,iby_ext_bank_accounts ieba
      ,hz_parties hzb
      ,hz_parties hzbb
      ,ce_payment_documents cpd
WHERE 1 = 1
AND    idpa.calling_app_doc_ref_number = invh.invoice_num
AND    idpa.calling_app_doc_unique_ref2= invh.invoice_id
AND    idpa.payment_id               = ip.payment_id
AND    ip.paper_document_number      = iupd.used_document_number
AND    ip.external_bank_account_id   = ieba.ext_bank_account_id
AND    ieba.bank_id                  = hzb.party_id
AND    ieba.branch_id                = hzbb.party_id
AND    iupd.payment_document_id      = cpd.payment_document_id
AND    invh.invoice_id               = '&invoice_id' ;

2 Responses to “How payment information is stored in R12? ( Query to find payments in R12)”

tike mik said...
August 16, 2021 at 2:53 AM

Include all of the relevant information regarding your small business in your website's directory description. This should include your business' name, location, telephone number, contact information and possibly reviews, business hours and anything else that is relevant. Add in photos, maps or other interactive features if the directory lets you. NZ invoice template

tike mik said...
November 9, 2021 at 6:00 AM

To some extent upgrading programs, that may include creating a new and fresher look, is a lot like an insurance policy against slipping revenues, and do not necessarily relate to any incremental growth per se. slot online terpercaya, judi slot online

Post a Comment


The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.