Results for “ap_invoices_interface”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

AP_INVOICES_INTERFACE is the Payables Open Interface staging table owned by the AP schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It serves as the primary inbound conduit for supplier invoice data entering Payables from external sources: legacy system conversions, feeder programs, EDI transmissions, spreadsheet uploads via SQL*Loader and external tables, and third-party applications. Records inserted here are read by the Payables Open Interface Import program, which validates each row and creates corresponding rows in AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, and downstream distribution tables. Rows that fail validation remain in the table with a STATUS of 'REJECTED' and a REQUEST_ID referencing the import run, enabling correction and re-submission.

The table is wide by design. The documented 12.2.2 schema carries 155 columns, reflecting the breadth of attributes required to describe a complete invoice header without referencing the production invoice tables during import. In Data Vault terms, the mined foreign-key structure suggests a hub-leaning classification: the table is anchored on a single surrogate key and holds descriptive attributes, but the absence of extensive outward foreign-key relationships on most descriptive columns means it is best modeled as a hub or staging entity rather than a pure satellite.

Key Information Stored

The primary key is INVOICE_ID, backed by the unique index AP_INVOICES_INTERFACE_U1 (INVOICE_ID). The unique index also serves as a business-key candidate, though in practice INVOICE_ID here is typically populated by sequence before import and is not the business invoice number. The substantive identifier is INVOICE_NUM, paired with the supplier attributes.

Common Use Cases and Queries

The dominant use case is populating the table from a feeder script or external file and then submitting Payables Open Interface Import with a Source and Group parameter that selects the intended batch. Reporting queries typically monitor import health. For example, counting staged rows by source and status:

  • SELECT source, status, COUNT(*) FROM ap.ap_invoices_interface GROUP BY source, status;
  • SELECT invoice_id, invoice_num, vendor_name, invoice_amount FROM ap.ap_invoices_interface WHERE status = 'REJECTED' AND request_id = :req_id;
  • SELECT a.invoice_num, b.column_name, b.error_message FROM ap_invoices_interface a, ap_interface_rejections b WHERE a.invoice_id = b.parent_id AND b.parent_table = 'AP_INVOICES_INTERFACE';

Other scenarios include pre-import data quality checks (missing vendor, zero amount, invalid currency), reconciliation of staged counts against created invoices via REQUEST_ID, and purging successfully processed rows. Because the table is a staging area, scripts should always scope deletes and updates by STATUS, GROUP_ID, or SOURCE to avoid disturbing batches pending import.

Related Objects

  • AP_EXPENSE_FEED_DISTS_ALL – references AP_INVOICES_INTERFACE via AP_EXPENSE_FEED_DISTS_ALL.INVOICE_ID; supplies invoice distribution lines for import. This is the documented child of the foreign-key relationship.
  • FV_LEGAL_ENTITIES – referenced by AP_INVOICES_INTERFACE.LEGAL_ENTITY_ID; resolves the legal entity for the invoice.
  • AP_INVOICES_ALL – target header table populated by Payables Open Interface Import.
  • AP_INVOICE_LINES_ALL – target line table created alongside the header during import.
  • AP_INVOICE_LINES_INTERFACE – companion staging table for invoice lines, keyed by the same invoice identifier.
  • AP_INTERFACE_REJECTIONS – captures validation errors keyed to the interface row and parent table.
  • Payables Open Interface Import – the concurrent program that reads this table and writes to AP_INVOICES_ALL.
  • AP_INVOICES_INTERFACE_S – sequence used to generate INVOICE_ID values prior to insert.