Search Results amt_closed




Overview

PO.PO_ENCUMBRANCE_GT is a global temporary table in the Purchasing (PO) schema of Oracle E-Business Suite, present in both the 12.1.1 and 12.2.2 releases. It serves as a transient staging and processing structure used by the encumbrance accounting engine to accumulate, evaluate, and post purchasing commitment entries to General Ledger. Because it is defined with a data duration of SYS$TRANSACTION, the rows it holds are private to the session that inserted them and are automatically purged at the conclusion of the transaction. This design allows concurrent users to run encumbrance processing, funds checking, or period-end commitment adjustment routines simultaneously without contention or cross-session visibility of partially processed data.

From a dimensional modeling perspective, the table exhibits the characteristics of a standalone or transient staging structure rather than a durable entity; there are no enforceable foreign keys to persistent transactional tables in a way that would anchor it as a hub, link, or satellite. It should therefore be treated as an operational work table whose contents mirror a projection of purchasing activity at a specific point in the encumbrance generation cycle, rather than as a source of record.

Key Information Stored

The table carries 117 documented columns, but only a subset are central to its function. Its columns fall into document identifiers, accounting identifiers, monetary and quantity measures, and processing flags.

Four non-unique indexes are documented — PO_ENCUMBRANCE_GT_N1 on DISTRIBUTION_ID, N2 on SEQUENCE_NUM, N3 on ORIGIN_SEQUENCE_NUM, N4 on REFERENCE15, and N5 on REQ_DISTRIBUTION_ID — supporting retrieval by distribution, request sequencing, and requisition cross-reference. No unique index or declared primary key is documented, consistent with its role as a temporary accumulator.

Common Use Cases and Queries

The dominant use case is the encumbrance accounting process, which inserts purchasing distributions into the table, computes commitment amounts, and then drives GL journal creation. A frequent requirement is to inspect open commitment balances before period close:

  • Query open amount by PO distribution: SELECT header_id, distribution_id, amt_open, amt_ordered, amt_closed FROM po_encumbrance_gt WHERE amt_open <> 0;
  • Trace GL posting failures: SELECT distribution_id, gl_status_code, gl_result_code, result_text FROM po_encumbrance_gt WHERE gl_status_code = 'E';
  • Reconcile entered versus accounted amounts: SELECT currency_code, SUM(entered_dr - entered_cr), SUM(accounted_dr - accounted_cr) FROM po_encumbrance_gt GROUP BY currency_code;
  • Cross-reference a requisition to its encumbrance: SELECT * FROM po_encumbrance_gt WHERE req_distribution_id = :dist_id;

Because rows vanish at transaction end, queries are typically embedded inside the concurrent program or run immediately after the initiating session commits.

Related Objects

The documented foreign key relationships identify the most significant dependencies:

The table is populated and consumed by the Purchase Order Encumbrance and Funds Checker concurrent programs rather than by a published PL/SQL API, and it should be regarded strictly as internal to the encumbrance subsystem.