Search Results okl_ext_pay_invs_all_b




Overview

OKL_EXT_PAY_INVS_ALL_B is a core transactional table within the Oracle E-Business Suite Leasing and Finance Management (OKL) module. Per the ETRM metadata, it stores the header information about invoices exported to Oracle Payables (AP). The table acts as the staging and control repository for leasing-generated invoices that must be transferred into the AP subsystem for payment processing. Each row represents one invoice header, carrying the vendor, amount, currency, terms, and status details required to create and reconcile a corresponding AP invoice.

The table resides in the OKL schema and is marked VALID across EBS 12.1.1 and 12.2.2. Its primary key, OKL_EXT_PAY_INVS_ALL_B_PK, is defined on the ID column, and a unique index OKL_EXT_PAY_INVS_ALL_B_U1 also enforces uniqueness on ID. Based on the heuristic Data Vault classification derived from its foreign-key structure, the table is hub-leaning. This suggests a modeling approach where OKL_EXT_PAY_INVS_ALL_B functions as a central hub of invoice-export business keys, with descriptive attributes that could be separated into satellite structures and relationships modeled as links.

Key Information Stored

The table contains 54 documented columns. The most significant are summarized below, distinguishing the surrogate key from business-key candidates.

Common Use Cases and Queries

Typical scenarios include monitoring invoice exports, reconciling OKL invoices with AP, and auditing failed or pending transfers. A representative query retrieving invoices awaiting AP creation:

SELECT x.INVOICE_NUM, x.INVOICE_AMOUNT, x.INVOICE_CURRENCY_CODE, x.TRX_STATUS_CODE, x.VENDOR_ID FROM OKL.OKL_EXT_PAY_INVS_ALL_B x WHERE x.PAYABLES_INVOICE_ID IS NULL AND x.ORG_ID = :p_org_id;

Reporting by legal entity joins FV_LEGAL_ENTITIES on LEGAL_ENTITY_ID. Reconciliation reports join OKL_CNSLD_AP_INVS_ALL on CNSLD_AP_INV_ID to trace consolidated AP postings. Concurrent program monitoring uses REQUEST_ID and PROGRAM_ID to group results by export run.

Related Objects

  • OKL_XTL_PAY_INVS_ALL_B — Child/extension table referencing this table via XPI_ID_DETAILS, holding detail-level export data.
  • OKL_CNSLD_AP_INVS_ALL — Referenced through CNSLD_AP_INV_ID; consolidated AP invoice records.
  • FV_LEGAL_ENTITIES — Referenced through LEGAL_ENTITY_ID; legal entity definitions.
  • Oracle Payables invoice tables (AP_INVOICES_ALL) — Populated upon successful export, reconciled via PAYABLES_INVOICE_ID.
  • OKL invoice and vendor master objects — Provide the source INVOICE_ID and VENDOR_ID context referenced during export.