Search This Blog

Query to get invoice details in Oracle ebs R12

oracle ebs r12


select 

aps.vendor_name,

apss.vendor_site_code,

aia.invoice_num,     

DECODE(aia.PAYMENT_STATUS_FLAG,'N','UN-PAID','P','Partial Paid','Y','PAID') PAYMENT_STATUS_FLAG ,

aia.invoice_date,

aia.invoice_amount,

pha.segment1 po_number,

apt.name Term_name,     

aca.check_number,

aipa.amount payment_amount,

apsa.amount_remaining,

aipa.invoice_payment_type,

hou.name operating_unit

from apps.ap_invoices_all       aia,

ap_suppliers aps,

ap_supplier_sites_all apss,

po_headers_all pha,

ap_invoice_payments_all aipa,

ap_checks_all aca,

ap_payment_schedules_all apsa,

ap_terms apt,

hr_operating_units hou

where 1=1

and aia.vendor_id=aps.vendor_id

and aia.VENDOR_SITE_ID=APSS.VENDOR_SITE_ID

AND aps.vendor_id=apss.VENDOR_ID

and aia.po_header_id=pha.po_header_id(+)

and aipa.invoice_id=aia.invoice_id

and aca.check_id=aipa.check_id

and apsa.invoice_id=aia.invoice_id

and apt.term_id=aia.terms_id

 and hou.organization_id=aia.org_id

--and aia.ORG_ID=:P_ORG_ID;

invoice detail query in oracle ebs R12

 

oracle ebs r12

select ap.invoice_num Invoice_num,ap.invoice_date Invoice_date,ap.invoice_currency_code Invoice_currency,ap.invoice_amount invoice_amount,aid.amount Amount,aid.accounting_date Gl_date,pv.vendor_name Supplier,pvs.vendor_site_code Site_name,at.name Payment_terms,ap.terms_date Term_date,alc.meaning Invoice_type,alc.lookup_code,alc1.meaning Invoice_distribution_type,alc2.meaning Payment_method,gcc.segment1'.'gcc.segment2'.'gcc.segment3'.'gcc.segment4'.'gcc.segment5 Account

from ap_invoices_all ap,

ap_invoice_distributions_all aid,

po_vendors pv,

po_vendor_sites_all pvs,

fnd_lookup_values alc,

fnd_lookup_values alc1,

fnd_lookup_values alc2,

ap_terms at,

gl_code_combinations gcc

where alc.lookup_type='INVOICE TYPE'

and alc.lookup_code=ap.INVOICE_TYPE_LOOKUP_CODE

and alc1.lookup_type='INVOICE DISTRIBUTION TYPE'

and alc1.lookup_code=aid.LINE_TYPE_LOOKUP_CODE

and alc2.lookup_type='PAYMENT METHOD'

and alc2.lookup_code=ap.PAYMENT_METHOD_LOOKUP_CODE

and ap.invoice_id=aid.invoice_id

and ap.org_id=:P_ORG_ID

and ap.vendor_id = pv.vendor_id

and gcc.code_combination_id=aid.DIST_CODE_COMBINATION_ID

and pv.vendor_id=pvs.vendor_id

and ap.vendor_site_id=pvs.vendor_site_id

AR Receipt Final Query

Query for  AR Receipts


oracle apps r12
PURPOSE: THE VIEW AR_CASH_RECEIPTS_V IS USED IN THE RECEIPTS GATEWAY AS THE BASETABLE FOR THE RECEIPTS FORM




API to create and update sale order price list in oracle apps

API to create and update sale order price list in oracle apps

oracle apps r12


In this post , we are going to write a PLSQL code and oracle API to Create and update sale order price list in oracle apps. Using this Below script you are Able to Create and Update Sale Orders Prices List in Oracle Apps.

After this you need to create one custom table


This table will store all information of Sale order item and which price list will be assigned and what rate will be provided to this item. So upload all the price list data in this staging table.

Then you need to create this final procedure to load the price list data from staging table to oracle standard price list base tables.

After this just execute this above procedure and all the data will be uploaded in Oracle.