Search Results in_open_gl_period




Overview

APPS.PO_DOCUMENT_CONTROL_PVT is a private PL/SQL package within the Oracle Purchasing module of Oracle E-Business Suite, present in both 12.1.1 and 12.2.2. It implements the core document control engine that governs the allowable actions a user may perform against a purchasing document at any point in its lifecycle. In Oracle Purchasing, "document control" covers operations such as approving, cancelling, closing, finally closing, freezing, holding, printing, returning, and reopening a document. Which of these actions are permitted depends on the document's type, status, approval history, and encumbrance conditions, and PO_DOCUMENT_CONTROL_PVT centralises the logic that resolves those rules.

The package is classified as a PVT (private) API. It is not intended for direct invocation by external or customer-written code; the public entry point is PO_DOCUMENT_CONTROL_PUB, which is the documented API wrapper. PO_DOCUMENT_CONTROL_PVT supplies the internal validation, action-resolution, date-handling, and workflow-stopping logic that the public layer and several sibling packages depend upon.

Key Procedures and Functions

The package exposes twenty-four documented procedures and functions. Their responsibilities group as follows:

Tables Accessed

The package reads and writes several core Purchasing and shared tables. PO_DOCUMENT_TYPES and PO_DOCUMENT_TYPES_ALL_B supply document type attributes that influence which actions are permitted. PO_HEADERS, PO_HEADERS_ALL, PO_HEADERS_ARCHIVE, and PO_HEADERS_ARCHIVE_ALL provide header status and detail, including archival copies. PO_LINES, PO_LINES_ALL, and PO_LINES_ARCHIVE supply line data, while PO_LINE_LOCATIONS and PO_LINE_LOCATIONS_ALL provide shipment scheduling and quantity information. PO_DISTRIBUTIONS_ALL is accessed to evaluate encumbrance state via the unencumbered-shipment checks. FINANCIALS_SYSTEM_PARAMETERS and FND_PROFILE_OPTION_VALUES supply system setup and profile option values, and GL_PERIOD_STATUSES is queried to confirm open period status. The package also uses the APPS synonym types PO_TBL_VARCHAR30 and PO_TBL_VARCHAR2000 for its PL/SQL collection parameters.

Usage Notes

PO_DOCUMENT_CONTROL_PVT is invoked indirectly. Its primary caller is PO_DOCUMENT_CONTROL_PUB, the supported control API, and it is referenced by PO_CONTROL_ACTION_VALIDATIONS, PO_DOCUMENT_CANCEL_PVT, PO_DOCUMENT_CONTROL_GRP, PO_MODIFY_REQUISITION_PVT, and PO_MOD_CONTROL_PVT. The Purchasing forms and related concurrent programs ultimately reach this package through those callers when a user approves, cancels, closes, or otherwise acts on a document. Customisations should target PO_DOCUMENT_CONTROL_PUB rather than this private package, since Oracle may change private package signatures between releases without notice.