Search Results stat_amount




Overview

PSB_AE_LINES is a reporting and integration view in the Public Sector Budgeting (PSB) module of Oracle E-Business Suite, applicable to releases 12.1.1 and 12.2.2. It exposes the accounting entry line information used to move budgeting transactions from the PSB subledger into the Oracle General Ledger interface. The view is the secure, operating-unit-filtered representation of the underlying accounting entry lines and is the object most commonly referenced in PSB-to-GL reconciliation, extract programs, and custom reports.

The view is not a physical table and stores no data of its own. It is defined as a query over PSB_AE_LINES_ALL, returning the current row set for the querying session based on the operating unit recorded in the client environment. Per the ETRM metadata, the object is marked “Not implemented in this database” when the PSB product is not installed or the underlying table does not exist, so dependencies should be confirmed before use.

Underlying Base Objects

The only documented base object is PSB_AE_LINES_ALL. The view applies the standard Oracle multi-organization security predicate, resolving the operating unit from USERENV('CLIENT_INFO') and matching it against ORG_ID. Rows whose ORG_ID cannot be resolved are compared against the sentinel value -99, effectively excluding them from the result set. No other base objects are documented in the ETRM metadata, and the view does not itself join to headers or code combinations; those relationships are established through the AE_HEADER_ID and CODE_COMBINATION_ID keys rather than through the view definition.

Key Columns

Common Use Cases and Queries

PSB administrators use the view to verify that budget accounting entries have been generated correctly, to identify entries that failed to transfer to General Ledger, and to reconcile PSB balances against GL balances by code combination and period. It is also used to trace a specific line back to its originating document via SOURCE_TABLE and SOURCE_ID.

Retrieve a line by its primary key:

  • SELECT ae_line_id, ae_header_id, ae_line_number, code_combination_id, accounted_dr, accounted_cr FROM psb_ae_lines WHERE ae_line_id = :p_line_id;

Locate lines with transfer or accounting errors:

  • SELECT ae_line_id, ae_header_id, accounting_error_code, gl_transfer_error_code FROM psb_ae_lines WHERE gl_transfer_error_code IS NOT NULL OR accounting_error_code IS NOT NULL;

Reconcile debits and credits for an operating unit:

  • SELECT code_combination_id, currency_code, SUM(accounted_dr), SUM(accounted_cr) FROM psb_ae_lines WHERE org_id = :p_org_id GROUP BY code_combination_id, currency_code;

Because the view enforces operating unit security through USERENV, sessions that do not initialize the client environment correctly may return no rows. When full cross-operating-unit visibility is required, query PSB_AE_LINES_ALL directly with appropriately restricted privileges.