Pages

OracleEBSpro is purely for knowledge sharing and learning purpose, with the main focus on Oracle E-Business Suite Product and other related Oracle Technologies.

I'm NOT responsible for any damages in whatever form caused by the usage of the content of this blog.

I share my Oracle knowledge through this blog. All my posts in this blog are based on my experience, reading oracle websites, books, forums and other blogs. I invite people to read and suggest ways to improve this blog.


Tuesday, April 9, 2013

R12 - Query joining the Main Account Payables Invoice Tables with their important columns listed.


select aia.invoice_id,
       aia.invoice_num,
       aia.invoice_date,
       aia.invoice_amount,
       aial.line_number,
       fit.description               line_type,
       aial.amount                   line_amount,
       aial.po_header_id,
       aial.po_line_id,
       aial.po_line_location_id,
       aial.po_distribution_id,
       aial.po_release_id,
       aida.distribution_line_number,
       aida.line_type_lookup_code,
       aida.dist_code_combination_id,
       aida.amount                   distribution_amount
  from ap_invoices_all              aia,
       ap_invoice_lines_all         aial,
       fnd_lookup_values            fit,
       ap_invoice_distributions_all aida
 WHERE 1 = 1
   AND aia.invoice_id = aial.invoice_id
   AND aial.invoice_id = aida.invoice_id
   AND aial.line_number = aida.invoice_line_number
   AND aial.line_type_lookup_code = fit.lookup_code
   AND fit.lookup_type = 'INVOICE LINE TYPE'
   AND aia.invoice_date > sysdate - 200
--AND aia.creation_date >= trunc(sysdate)-50;
--AND aia.invoice_id = 211305
 order by aial.line_number;

2 comments:


  1. Regards
    Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
    Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at sridevikoduru@oracleappstechnical.com | +91 - 9581017828.

    ReplyDelete
    Replies
    1. Hi Sridevi,

      kindly request to you,I want to real time videos....if is there possible to send me

      Delete