Search Results ap_invoice_selection_criteria
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: AP_XML_BATCHLEVEL2_V
12.1.1
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
View: AP_XML_BATCHLEVEL2_V
12.2.2
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.AP_XML_INVOICE2_LEVEL_V
12.1.1
-
SYNONYM: APPS.AP_INVOICE_SELECTION_CRITERIA
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_SELECTION_CRITERIA, status:VALID,
-
PACKAGE BODY: APPS.FV_THIRD_PARTY_REMIT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FV_THIRD_PARTY_REMIT_PKG, status:VALID,
-
View: AP_XML_BATCHLEVEL_V
12.1.1
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
View: AP_XML_PAYMENTLEVEL_V
12.2.2
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
APPS.FV_THIRD_PARTY_REMIT_PKG SQL Statements
12.2.2
-
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_APXPCVAL_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_APXPCVAL_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_APXPCVAL_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_APXPCVAL_XMLP_PKG, status:VALID,
-
APPS.FV_THIRD_PARTY_REMIT_PKG SQL Statements
12.1.1
-
View: AP_XML_PAYMENTACCOUNTLEVEL_V
12.2.2
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.AP_PBATCH_SET_LINES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PBATCH_SET_LINES_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_PBATCH_SET_LINES_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PBATCH_SET_LINES_PKG, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_SELECTION_CRITERIA
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_SELECTION_CRITERIA, status:VALID,
-
View: AP_XML_PAYMENTACCOUNTLEVEL_V
12.1.1
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
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,
-
PACKAGE BODY: APPS.FV_THIRD_PARTY_REMIT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FV_THIRD_PARTY_REMIT_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_RECEIPT_VAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_RECEIPT_VAL_PVT, status:VALID,
-
View: AP_XML_PAYMENTLEVEL_V
12.1.1
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.AP_AUTO_PAYMENT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_AUTO_PAYMENT_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 ,
-
PACKAGE BODY: APPS.AP_AUTO_PAYMENT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_AUTO_PAYMENT_PKG, 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 ,
-
View: AP_XML_BATCHLEVEL_V
12.2.2
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.FV_DUE_DATE_CALCULATION
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FV_DUE_DATE_CALCULATION, status:VALID,
-
View: AP_XML_PAYMENTLINE2_LEVEL_V
12.1.1
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.ARP_PROCESS_RCTS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_PROCESS_RCTS, status:VALID,
-
PACKAGE BODY: APPS.ARP_PROCESS_RCTS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_PROCESS_RCTS, status:VALID,
-
View: JE_NL_EFT_BATCHES_V
12.1.1
product: JE - European Localizations , implementation_dba_data: Not implemented in this database ,
-
View: JE_NL_EFT_BATCHES_V
12.2.2
product: JE - European Localizations , implementation_dba_data: Not implemented in this database ,
-
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.AR_RECEIPT_VAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_RECEIPT_VAL_PVT, status:VALID,
-
PACKAGE BODY: APPS.AP_PURGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PURGE_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_RECEIPT_LIB_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_RECEIPT_LIB_PVT, status:VALID,
-
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.AR_RECEIPT_LIB_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_RECEIPT_LIB_PVT, status:VALID,
-
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_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: AP_XML_PAYMENTLINE2_LEVEL_V
12.2.2
product: AP - Payables , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.AP_PURGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PURGE_PKG, status:VALID,
-
APPS.AP_PBATCH_SET_LINES_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 ,
-
APPS.AP_PBATCH_SET_LINES_PKG SQL Statements
12.1.1
-
12.2.2 DBA Data
12.2.2
-
VIEW: AP.AP_INV_SELECTION_CRITERIA_ALL#
12.2.2
owner:AP, object_type:VIEW, object_name:AP_INV_SELECTION_CRITERIA_ALL#, status:VALID,