Results for “okx_po_headers_v”

6 results




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

Overview

OKX_PO_HEADERS_V is a Contracts Integration view in Oracle E-Business Suite that presents purchasing document header information in a normalized, integration-friendly column layout. It is shipped under the OKX product family, which supports the exchange of contract and sourcing data between Oracle Purchasing and external or downstream systems. Functionally, the view exposes the header-level attributes of purchase orders, blanket purchase agreements, and contracts recorded in Oracle Purchasing, projecting them under logical names such as ID1, NAME, and DESCRIPTION rather than the raw column names used in the underlying table.

In reporting and integration contexts, this view acts as a single-source abstraction over PO_HEADERS_ALL. Rather than querying the base table directly, external interfaces, contract repositories, and custom reports can consume a stable set of header attributes. The view is documented in ETRM as "Not implemented in this database," meaning it is defined and shipped as part of the OKX schema objects but not necessarily instantiated in every environment; its availability depends on whether the Contracts Integration components have been installed.

Underlying Base Objects

The view is defined exclusively over a single base table, PO_HEADERS_ALL, aliased as POH. No other base tables or views are documented as referenced objects. Every column projected by OKX_PO_HEADERS_V originates directly from PO_HEADERS_ALL, which is the master header table for purchasing documents in Oracle Purchasing. Because there is a one-to-one mapping between rows in the view and rows in PO_HEADERS_ALL, the view does not perform joins, aggregation, or filtering — it is a purely column-renaming projection. This is significant for performance, as queries against the view benefit from the same indexing and partitioning characteristics as the base table, subject to any predicates applied to ORG_ID or STATUS_LOOKUP_CODE.

Key Columns

The view renames several base columns to integration-standard aliases and retains others verbatim. Notable columns include:

Common Use Cases and Queries

Typical usage includes extracting active contracts for interface loading, auditing freight terms assignments, and feeding purchasing document data into custom reports or third-party systems. A representative query filtering by freight terms is shown below.

  • Freight terms audit:
    SELECT ID1, NAME, ORG_ID, VENDOR_ID,
           FREIGHT_TERMS_LOOKUP_CODE, STATUS_LOOKUP_CODE
    FROM   OKX_PO_HEADERS_V
    WHERE  FREIGHT_TERMS_LOOKUP_CODE IS NOT NULL
    AND    ORG_ID = :p_org_id;
  • Active agreements by supplier:
    SELECT NAME, START_DATE_ACTIVE, END_DATE_ACTIVE
    FROM   OKX_PO_HEADERS_V
    WHERE  VENDOR_ID = :p_vendor_id
    AND    ENABLED_FLAG = 'Y'
    AND    TYPE_LOOKUP_CODE = 'BLANKET';
  • Approved document extract for integration:
    SELECT ID1, NAME, DESCRIPTION, AGENT_ID, CURRENCY_CODE
    FROM   OKX_PO_HEADERS_V
    WHERE  AUTHORIZATION_STATUS = 'APPROVED'
    AND    CANCEL_FLAG = 'N';

Because the view is a direct projection of PO_HEADERS_ALL, developers should confirm that the object exists in the target environment before referencing it, as the ETRM metadata records it as not implemented in every database.