Search Results ai_invoice_currency_code
Overview
AP_PA_HEADER_REF_V is a Payables (AP) reporting view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It is a denormalized, header-level projection that joins invoice header data from AP_INVOICES_ALL to supplier and supplier site information and to the Trading Community Architecture (TCA) party model (HZ_PARTIES and HZ_PARTY_SITES). Its purpose is to expose a single flattened row per Payables invoice header, enriched with vendor, supplier site, party, and party site attributes that would otherwise require multiple joins.
The view is commonly consumed by Oracle Projects and related subledgers (the "PA" prefix in the name suggests Payables-to-Projects integration flows) as well as by custom reports, interfaces, and data extracts that need invoice reference information without traversing the full AP schema. It is a read-only object and carries no incremental logic; each execution reflects the current state of the underlying tables.
Underlying Base Objects
The view is defined over five documented base objects in the APPS schema, all referenced as synonyms in the ETRM metadata for 12.2.2:
- AP_INVOICES_ALL — the primary invoice header table (aliased AI), supplying invoice number, type, currency, dates, description, and vendor/party identifiers.
- AP_SUPPLIERS — the supplier master (aliased APS), supplying VENDOR_NAME.
- AP_SUPPLIER_SITES_ALL — supplier site definitions (aliased APSS), supplying VENDOR_SITE_CODE.
- HZ_PARTIES — the TCA party registry, correlated by PARTY_ID to return PARTY_NAME.
- HZ_PARTY_SITES — TCA party sites, correlated by PARTY_SITE_ID to return PARTY_SITE_NAME.
The joins are inner joins driven from AP_INVOICES_ALL to AP_SUPPLIERS and AP_SUPPLIER_SITES_ALL on VENDOR_ID/VENDOR_SITE_ID. The TCA lookups for party and party site names are implemented as scalar subqueries rather than joins, so an invoice header is only excluded if no matching supplier or supplier site row exists.
Key Columns
- AI_INVOICE_ID — the invoice header primary key (AP_INVOICES_ALL.INVOICE_ID).
- INV_TRANSACTION_NUMBER — the invoice number (INVOICE_NUM), used as the human-readable transaction reference.
- AI_INVOICE_TYPE_LOOKUP_CODE — invoice type lookup (e.g., STANDARD, CREDIT, PREPAYMENT, DEBIT MEMO).
- AI_INVOICE_CURRENCY_CODE — the invoice currency.
- AI_INVOICE_DATE — the invoice date, exposed as AI_INVOICE_DATE; this is the column encountered in searches for invoice date on this view (for example, "ai_invoice_date" as a column alias or predicate reference).
- AI_CANCELLED_DATE — date the invoice was cancelled, where applicable.
- AI_DESCRIPTION — free-text invoice description.
- AI_VENDOR_ID / POV_VENDOR_NAME — supplier identifier and supplier name.
- AI_VENDOR_SITE_ID / POS_VENDOR_SITE_CODE — supplier site identifier and site code.
- AI_PARTY_ID / AI_PARTY_NAME — TCA party identifier and party name resolved from HZ_PARTIES.
- AI_PARTY_SITE_ID / AI_PARTY_SITE_NAME — TCA party site identifier and name resolved from HZ_PARTY_SITES.
Common Use Cases and Queries
Typical uses include invoice reference extracts for Projects costing, vendor/party reconciliation reports, and integration payloads that require both AP supplier naming and TCA party naming. Because the view is header-level and excludes invoice lines and distributions, it is suitable for lightweight lookups rather than for amount-level reporting.
A representative query filtering by invoice date is:
SELECT ai_invoice_id, inv_transaction_number, ai_invoice_date, pov_vendor_name, pos_vendor_site_code, ai_party_name FROM apps.ap_pa_header_ref_v WHERE ai_invoice_date >= :p_from_date AND ai_invoice_date < :p_to_date + 1 ORDER BY ai_invoice_date, inv_transaction_number;SELECT inv_transaction_number, ai_invoice_date, pov_vendor_name FROM apps.ap_pa_header_ref_v WHERE ai_party_id = :p_party_id;
Predicates should reference the exposed column names (for example, AI_INVOICE_DATE) rather than the underlying AP_INVOICES_ALL columns, and date range filtering should be sargable to allow effective use of indexes on the base invoice date column. As with all APPS views, querying requires the appropriate Payables and TCA read privileges, and any extract used for reconciliation should account for cancelled invoices via AI_CANCELLED_DATE.
-
View: AP_PA_HEADER_REF_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_PA_HEADER_REF_V, object_name:AP_PA_HEADER_REF_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_PA_HEADER_REF_V ,
-
View: AP_PA_HEADER_REF_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_PA_HEADER_REF_V, object_name:AP_PA_HEADER_REF_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_PA_HEADER_REF_V ,
-
VIEW: APPS.AP_PA_HEADER_REF_V
12.1.1
-
VIEW: APPS.AP_PA_HEADER_REF_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_PA_HEADER_REF_V, object_name:AP_PA_HEADER_REF_V, status:VALID,
-
VIEW: APPS.AP_PA_HEADER_REF_V
12.2.2
-
VIEW: APPS.AP_PA_HEADER_REF_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_PA_HEADER_REF_V, object_name:AP_PA_HEADER_REF_V, status:VALID,
-
VIEW: APPS.PA_XLA_BC_PKT_AP_DETAIL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_XLA_BC_PKT_AP_DETAIL_V, object_name:PA_XLA_BC_PKT_AP_DETAIL_V, status:VALID,
-
VIEW: APPS.PA_XLA_BC_PKT_AP_DETAIL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_XLA_BC_PKT_AP_DETAIL_V, object_name:PA_XLA_BC_PKT_AP_DETAIL_V, status:VALID,
-
View: PA_XLA_BC_PKT_AP_DETAIL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_XLA_BC_PKT_AP_DETAIL_V, object_name:PA_XLA_BC_PKT_AP_DETAIL_V, status:VALID, product: PA - Projects , implementation_dba_data: APPS.PA_XLA_BC_PKT_AP_DETAIL_V ,
-
View: PA_XLA_BC_PKT_AP_DETAIL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_XLA_BC_PKT_AP_DETAIL_V, object_name:PA_XLA_BC_PKT_AP_DETAIL_V, status:VALID, product: PA - Projects , implementation_dba_data: APPS.PA_XLA_BC_PKT_AP_DETAIL_V ,
-
VIEW: APPS.AP_INVOICE_EXTRACT_HEADER_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_EXTRACT_HEADER_V, object_name:AP_INVOICE_EXTRACT_HEADER_V, status:VALID,
-
VIEW: APPS.AP_PAYMENT_EXTRACT_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.AP_PAYMENT_EXTRACT_DETAILS_V SQLAP.AP_PAYMENT_EXTRACT_DETAILS_V, object_name:AP_PAYMENT_EXTRACT_DETAILS_V, status:VALID,
-
VIEW: APPS.AP_PAYMENT_EXTRACT_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.AP_PAYMENT_EXTRACT_DETAILS_V SQLAP.AP_PAYMENT_EXTRACT_DETAILS_V, object_name:AP_PAYMENT_EXTRACT_DETAILS_V, status:VALID,
-
VIEW: APPS.AP_INVOICE_EXTRACT_HEADER_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_EXTRACT_HEADER_V, object_name:AP_INVOICE_EXTRACT_HEADER_V, status:VALID,
-
VIEW: APPS.PA_XLA_BC_PKT_AP_DETAIL_V
12.1.1
-
VIEW: APPS.PA_XLA_BC_PKT_AP_DETAIL_V
12.2.2
-
APPS.XLA_00200_AAD_S_000010_BC_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000012_BC_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000006_BC_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000006_BC_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000010_BC_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000012_BC_PKG SQL Statements
12.1.1
-
VIEW: APPS.AP_INVOICE_EXTRACT_HEADER_V
12.2.2
-
APPS.XLA_00200_AAD_S_000006_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000006_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000010_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000010_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000012_PKG SQL Statements
12.1.1
-
VIEW: APPS.AP_INVOICE_EXTRACT_HEADER_V
12.1.1
-
View: AP_INVOICE_EXTRACT_HEADER_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_EXTRACT_HEADER_V, object_name:AP_INVOICE_EXTRACT_HEADER_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_EXTRACT_HEADER_V ,
-
APPS.XLA_00200_AAD_S_000020_PKG SQL Statements
12.1.1
-
View: AP_INVOICE_EXTRACT_HEADER_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_EXTRACT_HEADER_V, object_name:AP_INVOICE_EXTRACT_HEADER_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_EXTRACT_HEADER_V ,
-
APPS.XLA_00200_AAD_S_000012_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000020_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000002_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000002_PKG SQL Statements
12.2.2
-
APPS.XLA_00200_AAD_S_000010_PKG dependencies on XLA_EVENTS_GT
12.1.1
-
APPS.XLA_00200_AAD_S_000010_PKG dependencies on XLA_EVENTS_GT
12.2.2
-
APPS.XLA_00200_AAD_S_000011_PKG SQL Statements
12.1.1
-
APPS.XLA_00200_AAD_S_000011_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000010_BC_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000006_BC_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000010_BC_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000006_BC_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000012_BC_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000012_BC_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000010_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000010_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000020_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_00200_AAD_S_000012_PKG
12.2.2