Search Results ap_selected_invoices
Overview
APPS.AP_XML_INVOICE2_LEVEL_V is a reporting view in the Oracle E-Business Suite Payables module that exposes invoice-level payment information generated during a payment batch or check run. Its name indicates that it is part of the XML invoice publishing infrastructure, where "XML" refers to Oracle Payments / Payables XML output used to generate payment instructions, remittance advice, and check or electronic payment documents. The "LEVEL" construct typically denotes a nested, repeating row structure across check runs, checks, and invoices.
The view consolidates data from invoice selection criteria, the selected-invoice staging table, the selected-check staging table, and the master invoice table. It returns one row per payable invoice associated with a specific check run and selected check, filtered to invoices and checks flagged as OK to pay. In Oracle EBS 12.1.1 and 12.2.2, this view is used by concurrent programs, Oracle XML Publisher templates, and custom extensions that need a flattened, invoice-level projection of the payment batch contents.
Because it joins staging tables rather than only persistent invoice data, the view reflects the state of the payment batch as of the last selection and formatting process. It is not a historical ledger view; results change as payment batches are built, formatted, and confirmed.
Underlying Base Objects
The ETRM metadata documents four referenced base objects, all accessed through APPS synonyms:
- AP_INVOICES — the master Payables invoice table holding currency, voucher, tax, and type attributes.
- AP_INVOICE_SELECTION_CRITERIA — stores criteria and checkrun identifiers used when a payment batch is defined.
- AP_SELECTED_INVOICES — the staging table capturing invoices selected for payment, including amounts paid, discounts, and pay/print check identifiers.
- AP_SELECTED_INVOICE_CHECKS — the staging table for checks produced by a run, including checkrun name and the OK to pay flag.
The join keys link the three staging tables on CHECKRUN_NAME, tie AP_SELECTED_INVOICES.PAY_SELECTED_CHECK_ID and PRINT_SELECTED_CHECK_ID to AP_SELECTED_INVOICE_CHECKS.SELECTED_CHECK_ID, and connect AP_SELECTED_INVOICES.INVOICE_ID to AP_INVOICES.INVOICE_ID. Rows are restricted to OK_TO_PAY_FLAG values of 'Y' or 'F' on both the selected invoice and selected check records.
Key Columns
- INVOICE_NUM, INVOICE_ID, VOUCHER_NUM — identification of the invoice.
- INVOICE_AMOUNT, AMOUNT_PAID, AMOUNT_REMAINING, PROPOSED_PAYMENT_AMOUNT — monetary values describing the invoice and scheduled payment.
- INVOICE_CURRENCY_CODE, INVOICE_EXCHANGE_RATE — currency and conversion information.
- INVOICE_TYPE_LOOKUP_CODE, VAT_CODE, TAX_AMOUNT, WITHHOLDING_AMOUNT — classification and tax attributes.
- DISCOUNT_AMOUNT, DISCOUNT_AMOUNT_TAKEN, DISCOUNT_DATE, DUE_DATE — discount and due date terms.
- CHECKRUN_NAME, CHECKRUN_ID — the payment batch identifier.
- PAY_SELECTED_CHECK_ID, PRINT_SELECTED_CHECK_ID — the check identifiers used for payment and printing.
- PAYMENT_NUM, PAYMENT_PRIORITY — payment sequencing attributes.
- INVOICE_DESCRIPTION — free-text description carried onto payment documents.
Common Use Cases and Queries
This view is typically queried to reconcile the invoices included in a payment batch, to feed payment or remittance XML, or to build custom reports. A representative query follows:
- SELECT invoice_num, invoice_amount, amount_paid, amount_remaining, proposed_payment_amount, checkrun_name, payment_num FROM ap_xml_invoice2_level_v WHERE checkrun_name = :p_checkrun_name ORDER BY payment_num;
Additional scenarios include joining to AP_CHECKS_V for check-number detail, or filtering by invoice_date and due_date for aged disbursement reporting. Because the source includes only staged records for current batches, queries should be scoped by CHECKRUN_NAME or CHECKRUN_ID to avoid mixing results from concurrent processes.
-
VIEW: APPS.AP_XML_INVOICE2_LEVEL_V
12.2.2
-
VIEW: APPS.AP_XML_INVOICE2_LEVEL_V
12.1.1
-
APPS.AP_DBI_PKG SQL Statements
12.2.2
-
APPS.AP_DBI_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.AP_DBI_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_DBI_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_DBI_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_DBI_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_VENDORS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_VENDORS_PKG, status:VALID,
-
SYNONYM: APPS.AP_SELECTED_INVOICES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_SELECTED_INVOICES, status:VALID,
-
PACKAGE BODY: APPS.AP_VENDORS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_VENDORS_PKG, status:VALID,
-
PACKAGE BODY: APPS.FV_AP_CASH_POS_DTL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FV_AP_CASH_POS_DTL_PKG, status:VALID,
-
PACKAGE BODY: APPS.FV_AP_CASH_POS_DTL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FV_AP_CASH_POS_DTL_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_VOID_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_VOID_PKG, status:VALID,
-
SYNONYM: APPS.AP_SELECTED_INVOICES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SELECTED_INVOICES, status:VALID,
-
PACKAGE BODY: APPS.AP_INVOICES_UTILITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_INVOICES_UTILITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.FV_ECON_BENF_DISC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FV_ECON_BENF_DISC_PVT, status:VALID,
-
PACKAGE BODY: APPS.FV_ECON_BENF_DISC_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FV_ECON_BENF_DISC_PVT, status:VALID,
-
View: AP_XML_INVOICE2_LEVEL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_XML_INVOICE2_LEVEL_V, object_name:AP_XML_INVOICE2_LEVEL_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_XML_INVOICE2_LEVEL_V ,
-
PACKAGE BODY: APPS.AP_PAYMENT_UTIL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PAYMENT_UTIL_PKG, status:VALID,
-
PACKAGE BODY: APPS.FV_DUE_DATE_CALCULATION
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FV_DUE_DATE_CALCULATION, status:VALID,
-
PACKAGE BODY: APPS.AP_INTEREST_INVOICE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_INTEREST_INVOICE_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_INTEREST_INVOICE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_INTEREST_INVOICE_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_PAYMENT_UTIL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PAYMENT_UTIL_PKG, status:VALID,
-
View: AP_XML_INVOICE2_LEVEL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_XML_INVOICE2_LEVEL_V, object_name:AP_XML_INVOICE2_LEVEL_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_XML_INVOICE2_LEVEL_V ,
-
APPS.AP_PAYMENT_UTIL_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.JL_AR_AP_WITHHOLDING_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:JL_AR_AP_WITHHOLDING_PKG, status:VALID,
-
PACKAGE BODY: APPS.FV_DUE_DATE_CALCULATION
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FV_DUE_DATE_CALCULATION, status:VALID,
-
PACKAGE BODY: APPS.AP_INVOICES_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_INVOICES_UTILITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.JL_AR_AP_WITHHOLDING_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JL_AR_AP_WITHHOLDING_PKG, status:VALID,
-
APPS.JL_AR_AP_WITHHOLDING_PKG SQL Statements
12.1.1
-
VIEW: APPS.AP_XML_INVOICE2_LEVEL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_XML_INVOICE2_LEVEL_V, object_name:AP_XML_INVOICE2_LEVEL_V, status:VALID,
-
VIEW: APPS.AP_XML_INVOICE2_LEVEL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_XML_INVOICE2_LEVEL_V, object_name:AP_XML_INVOICE2_LEVEL_V, status:VALID,
-
PACKAGE BODY: APPS.AP_AUTOSELECT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_AUTOSELECT_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_VOID_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_VOID_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_PMT_CALLOUT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PMT_CALLOUT_PKG, status:VALID,
-
View: FV_ECS_ACH_VENDOR_V
12.1.1
product: FV - Federal Financials , description: Obtains the data required for the ECS ACH Vendor format , implementation_dba_data: Not implemented in this database ,
-
View: FV_ECS_PAYMENT_V
12.1.1
product: FV - Federal Financials , description: Contains information about payment batch records for ECS NCR payment format process , implementation_dba_data: Not implemented in this database ,
-
View: FV_ECS_PAYMENT_V
12.2.2
product: FV - Federal Financials , description: Contains information about payment batch records for ECS NCR payment format process , implementation_dba_data: Not implemented in this database ,
-
View: FV_ECS_ACH_VENDOR_V
12.2.2
product: FV - Federal Financials , description: Obtains the data required for the ECS ACH Vendor format , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.AP_AUTOSELECT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_AUTOSELECT_PKG, status:VALID,
-
APPS.AP_PAYMENT_UTIL_PKG SQL Statements
12.1.1
-
APPS.JL_AR_AP_WITHHOLDING_PKG SQL Statements
12.2.2
-
View: FV_ACH_CTX_VENDOR_V
12.2.2
product: FV - Federal Financials , description: ACH CTX Vendor format , implementation_dba_data: Not implemented in this database ,
-
View: FV_ACH_CTX_VENDOR_V
12.1.1
product: FV - Federal Financials , description: ACH CTX Vendor format , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.AP_DBI_PKG
12.1.1
-
APPS.FV_AP_CASH_POS_DTL_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_DBI_PKG
12.2.2
-
12.1.1 DBA Data
12.1.1
-
APPS.FV_AP_CASH_POS_DTL_PKG SQL Statements
12.1.1
-
VIEW: APPS.AP_INVOICES_UNION_PREPAYS_V
12.2.2
-
12.2.2 DBA Data
12.2.2