Search Results ap_invoices_u3




Overview

AP.AP_INVOICES_ALL is the master header table for Oracle Payables. Every invoice entered into the system — standard, prepayment, credit memo, debit memo, expense report, interest, or withholding-related — is persisted as a single row in this table. The table is the parent of invoice distributions, scheduled payments, holds, approval history, prepayment applications, and payment records, making it the central transactional object of the AP module and a mandatory junction into Procurement, Projects, Assets, and General Ledger accounting flows in both 12.1.1 and 12.2.2.

The table is owned by the AP schema, uses FND Design Data SQLAP.AP_INVOICES_ALL, and resides in the APPS_TS_TX_DATA tablespace with a PCT Free of 10. In 12.2.2 the documented physical schema carries 191 columns. Given its FK topology — numerous inbound and outbound relationships centered on the surrogate key INVOICE_ID — the heuristic Data Vault classification is hub. A dimensional model would therefore treat it as the invoice grain anchor, with satellites (approval, tax, and payment attributes) and links (supplier, batch, project, purchase order) hanging off it.

Key Information Stored

The primary key is the surrogate INVOICE_ID, enforced by unique index AP_INVOICES_U1. The second unique index, AP_INVOICES_U3, covers the business-key candidate (DOC_SEQUENCE_ID, DOC_SEQUENCE_VALUE) — this is the document sequence combination that guarantees legal sequential numbering for an invoice within a legal entity and document category. This is the index most users search for when investigating "ap_invoices_u3", typically to diagnose document sequence assignment, duplicate sequence values, or missing legal numbering on a transaction.

Key operational columns include:

Common Use Cases and Queries

Typical query patterns include locating an invoice by supplier reference, extracting approved invoices for payment batches, or auditing document sequence assignment. A useful diagnostic for the AP_INVOICES_U3 index is:

SELECT i.invoice_id, i.invoice_num, i.doc_sequence_id,
       i.doc_sequence_value, i.doc_category_code, i.legal_entity_id
FROM   ap_invoices_all i
WHERE  i.doc_sequence_id = :seq_id
ORDER BY i.doc_sequence_value;

To report invoices awaiting payment by supplier:

SELECT i.invoice_num, i.invoice_date, i.invoice_amount,
       i.amount_paid, i.payment_status_flag
FROM   ap_invoices_all i
WHERE  i.vendor_id = :vendor_id
AND    i.payment_status_flag <> 'Y';

Common reporting scenarios cover aging and hold analysis, withholding tax exposure, prepayment application, project expenditure linkage, and audit of legal invoice numbering under local regulations such as VAT and GST.

Related Objects