Results for “po_document_funds_pvt”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PO_DOCUMENT_FUNDS_PVT is an internal Oracle Purchasing package that implements the funds check and encumbrance engine for purchasing documents in Oracle E-Business Suite Release 12.1.1 and 12.2.2. It is the private application programming interface responsible for reserving, adjusting, unreserving, and releasing budgetary funds against purchase requisitions, purchase orders, releases, and related commitments when Funds Checking is enabled for the operating unit. The package is declared with AUTHID CURRENT_USER and is compiled against APPS synonyms, so it executes with the privileges of the invoking user. It encapsulates the business rules that govern whether a purchasing document line or distribution consumes available budget, and it records every change in commitment status through the action history and encumbrance interface tables. Because the logic is centralized here, the same reserve and unreserve behavior is reused consistently by the purchasing forms, the workflow-backed approval and cancellation processes, and the concurrent programs that perform year-end and carry-forward processing. The package also exposes helper predicates that other modules use to determine the reservability or encumbrance state of a document before an action is attempted, which is the functional context for the IS_AGREEMENT_ENCUMBERED identifier associated with this package.
Key Procedures and Functions
The documented procedures and functions fall into four functional groups.
- Reservation and adjustment: CHECK_RESERVE and CHECK_ADJUST validate whether a reserve or adjust action may proceed; DO_RESERVE, DO_UNRESERVE, DO_ADJUST, and DO_REQ_SPLIT perform the actual encumbrance moves, including requisition splitting.
- Closure and reversal: DO_CANCEL, DO_REJECT, DO_RETURN, DO_FINAL_CLOSE, and UNDO_FINAL_CLOSE manage the release of funds when a document is cancelled, rejected, returned, or finally closed, and restore them when a final close is undone.
- Year-end and reinstatement: DO_CBC_YEAREND_RESERVE and DO_CBC_YEAREND_UNRESERVE handle carry-forward budget processing, while REINSTATE_PO_ENCUMBRANCE restores a previously released encumbrance.
- State and predicate utilities: IS_AGREEMENT_ENCUMBERED determines whether an agreement is currently encumbered; IS_RESERVABLE and IS_UNRESERVABLE evaluate whether document lines can be reserved or unreserved.
- Encumbrance global temporary table population: POPULATE_ENCUMBRANCE_GT, POPULATE_ENC_GT_ACTION_IDS, and POPULATE_ENC_GT_WITH_DRAFT populate the PO_ENCUMBRANCE_GT staging structure used to drive and report encumbrance actions, including draft distributions.
Tables Accessed
The package reads and writes the core purchasing and financials tables required to evaluate commitments. PO_HEADERS_ALL, PO_RELEASES_ALL, PO_LINES_ALL, and PO_LINE_LOCATIONS_ALL provide the document, line, and shipment context against which funds are checked. PO_DISTRIBUTIONS_ALL and PO_DISTRIBUTIONS_DRAFT_ALL supply the accounting distributions that carry the expenditure and encumbrance amounts, while PO_ACTION_HISTORY records each action code such as RESERVE, UNRESERVE, ADJUST, CANCEL, REJECT, RETURN, and the IGC year-end reserve and unreserve constants defined in the package. PO_ENCUMBRANCE_GT is the transient staging table populated for encumbrance processing, and PO_BC_PACKETS and GL_BC_PACKETS interface the resulting budgetary entries to General Ledger. PO_DOCUMENT_TYPES and FINANCIALS_SYSTEM_PARAMETERS control whether encumbrance is enabled and how document types behave. FND_NEW_MESSAGES and PO_ONLINE_REPORT_TEXT support messaging and reporting, and PO_HEADERS supplies non-ALL header detail.
Usage Notes
PO_DOCUMENT_FUNDS_PVT is a PVT-classification package and is not intended as a public, customer-facing API. It is normally invoked indirectly: the Purchasing forms, the approval and workflow processes, the Create Releases and document cancellation flows, and year-end carry-forward concurrent programs call it to reserve, adjust, or release funds. It is referenced by 25 other packages, indicating broad internal reuse across the purchasing and encumbrance stack. Customizations should avoid direct calls to the DO_* routines and should instead trigger encumbrance through supported purchasing APIs and workflows so that action history, encumbrance staging, and general ledger packets remain consistent. When diagnosing funds-checking issues, the predicate functions IS_AGREEMENT_ENCUMBERED, IS_RESERVABLE, and IS_UNRESERVABLE are the entry points most often inspected, since they reveal whether the system considers a document eligible for reserve or unreserve processing. Standard Oracle support conventions apply: the package is patched only by Oracle, and any extension should be isolated through supported interfaces rather than modified in place.