Search Results po_closeout_pvt
Overview
PO_CLOSEOUT_PVT is a private PL/SQL package in the APPS schema that encapsulates the core business logic supporting the Oracle Purchasing closeout process. Its primary purpose is to evaluate whether a purchasing document — a standard purchase order, blanket, contract, or global agreement — is eligible to be closed, and to execute the closure once eligibility is confirmed. Closeout is the process by which a buyer or the system formally finalizes a document so that no further receiving, invoicing, or modification activity is permitted against it. The package validates the outstanding quantities across receiving, invoicing, and payment activities, evaluates exceptions, manages the closeout status stored in the PO_CLOSEOUT_DETAILS tables, and supports both single-document and mass closeout scenarios. Because it is classified as a PVT (private) package, it is not intended to be called directly by external integrations; instead it is invoked by the public closeout APIs and concurrent programs that Oracle ships.
Key Procedures and Functions
The package exposes a broad set of internal routines that are organized around validation, eligibility, and status management:
- Validation routines — IS_DOC_FULLY_RECEIVED, IS_DOC_FULLY_INVOICED, and IS_DOC_FULLY_PAID determine whether the receipt, invoice, and payment cycles for a document are complete. CHECK_EXCEPTIONS identifies conditions that prevent closure, VALIDATE_DOCUMENT and VALIDATE_MANAGE_CLOSEOUT perform document-level validation for the manage closeout flow, and VALIDATE_MASS_CLOSEOUT and MASS_CLOSEOUT_VALIDATE_SET support batch validation across a set of documents. OPEN_MOD_EXISTS checks whether an open modification or change order prevents closure.
- Eligibility and retrieval functions — ELIGIBLE_DOCS_FOR_CLOSEOUT and GET_ELIGIBLE_DOC_NOTFN_BODY build the set of documents eligible for mass closeout and construct the notification message body. GET_CONTRACT and CHECK_CONTRACT_EXISTS retrieve and verify contract records associated with a document, while CREATE_CONTRACT, DELETE_CONTRACT, and STORE_VALIDATIONS manage the contract record lifecycle used in closeout.
- Status and task management — SET_CLOSEOUT_STATUS updates the closeout status flag on a document or its closeout detail record. CHKLIST_TASK_AVAILABLE and ACTIVATE_TASKS_LIST control the Oracle Approvals Management or task-list workflow steps tied to the closeout action. MASS_CLOSEOUT_SUBMIT submits the concurrent request that performs the mass closeout processing.
Tables Accessed
The package reads and writes across purchasing, payables, and contracts schemas. PO_HEADERS, PO_DISTRIBUTIONS_ALL, PO_DRAFTS, and PO_ACTION_HISTORY supply the document, distribution, draft, and action history data central to validation. PO_CLOSEOUT_DETAILS and PO_CLOSEOUT_DETAILS_S store the closeout detail rows and their sequence values, recording per-document closeout state. AP_INVOICES_ALL and AP_INVOICE_DISTRIBUTIONS_ALL provide the invoice and invoice distribution data needed to determine whether invoicing and payment are complete. OKC_DELIVERABLES and OKC_REP_CONTRACT_USAGES support the contracts integration used when closing agreements, while FND_ATTACHED_DOCUMENTS, FND_DOCUMENTS, and FND_LOBS handle attachments associated with closeout records. HR_ALL_ORGANIZATION_UNITS_TL and PO_DOC_STYLE_HEADERS provide organizational and document style context, and FND_PROFILE is queried for profile option values that control behavior.
Usage Notes
PO_CLOSEOUT_PVT is not a public API and should not be called directly by custom code. It is referenced by PO_CLM_DOCUMENT_CONTROL_PVT and PO_CLM_OKC_INTEG_PKG, and it calls itself recursively, indicating that the closeout framework is reused by the contracts management and Oracle Knowledge Center integration layers. In practice, the package is driven through the Purchasing Closeout window, the Manage Closeout flow, and the Mass Closeout concurrent program, all of which rely on its validation and eligibility logic. Developers extending closeout behavior should invoke the public closeout APIs or the documented concurrent programs rather than this private package, since its interface is subject to change between releases such as 12.1.1 and 12.2.2.
-
PACKAGE: APPS.PO_CLOSEOUT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_CLOSEOUT_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_CLOSEOUT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_CLOSEOUT_PVT, status:VALID,
-
TYPE: APPS.PO_MULTI_MOD_VAL_RESULTS_TYPE
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_MULTI_MOD_VAL_RESULTS_TYPE, status:VALID,
-
SYNONYM: APPS.PO_CLOSEOUT_DETAILS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_CLOSEOUT_DETAILS_S, status:VALID,
-
SYNONYM: APPS.PO_MULTI_MOD_VAL_RESULTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_MULTI_MOD_VAL_RESULTS, status:VALID,
-
SYNONYM: APPS.PO_MULTI_MOD_REQUESTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_MULTI_MOD_REQUESTS, status:VALID,
-
SYNONYM: APPS.PO_MULTI_MOD_VAL_RESULTS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_MULTI_MOD_VAL_RESULTS_S, status:VALID,
-
SYNONYM: APPS.OKC_REP_CONTRACT_USAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CONTRACT_USAGES, status:VALID,
-
PACKAGE BODY: APPS.PO_CLM_OKC_INTEG_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_CLM_OKC_INTEG_PKG, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR15
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR15, status:VALID,
-
SYNONYM: APPS.PO_CLOSEOUT_DETAILS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_CLOSEOUT_DETAILS, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR50
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR50, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_QA_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_QA_PVT, status:VALID,
-
PACKAGE: APPS.PO_MULTI_MOD_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_MULTI_MOD_PVT, status:VALID,
-
SYNONYM: APPS.PO_MULTI_MOD_DOCS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_MULTI_MOD_DOCS, status:VALID,
-
PACKAGE: APPS.OKC_IMP_RECORD_TYPES
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_IMP_RECORD_TYPES, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_TOTALS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DOCUMENT_TOTALS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_REP_CLOSEOUT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_REP_CLOSEOUT_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_CLM_DOCUMENT_CONTROL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_CLM_DOCUMENT_CONTROL_PVT, status:VALID,
-
PACKAGE: APPS.PO_DOC_STYLE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DOC_STYLE_PVT, status:VALID,
-
SYNONYM: APPS.OKC_DELIVERABLES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_DELIVERABLES, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_QA_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_QA_GRP, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR25
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR25, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_ACTION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DOCUMENT_ACTION_PVT, status:VALID,
-
PACKAGE: APPS.PO_CONTERMS_UTL_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_CONTERMS_UTL_GRP, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR4000
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR4000, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR240
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR240, status:VALID,
-
PACKAGE: APPS.PO_WF_DEBUG_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_WF_DEBUG_PKG, status:VALID,
-
SYNONYM: APPS.PO_DOC_STYLE_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DOC_STYLE_HEADERS, status:VALID,
-
SYNONYM: APPS.PO_DRAFTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DRAFTS, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR100
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR100, status:VALID,
-
SYNONYM: APPS.PO_ACTION_HISTORY
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_ACTION_HISTORY, status:VALID,
-
SYNONYM: APPS.FND_DOCUMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_DOCUMENTS, status:VALID,
-
TYPE: APPS.PO_TBL_DATE
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_DATE, status:VALID,
-
SYNONYM: APPS.FND_LOBS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_LOBS, status:VALID,
-
PACKAGE: APPS.PO_MOAC_UTILS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_MOAC_UTILS_PVT, status:VALID,
-
PACKAGE: APPS.PO_DEBUG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DEBUG, status:VALID,
-
TYPE: APPS.PO_TBL_NUMBER
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_NUMBER, status:VALID,
-
VIEW: APPS.PO_VENDOR_CONTACTS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_CONTACTS, object_name:PO_VENDOR_CONTACTS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.FND_ATTACHED_DOCUMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_ATTACHED_DOCUMENTS, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR30
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR30, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.PO_LOG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_LOG, status:VALID,
-
PACKAGE: APPS.WF_NOTIFICATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_NOTIFICATION, status:VALID,
-
SYNONYM: APPS.PO_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS, status:VALID,
-
APPS.PO_CLM_OKC_INTEG_PKG dependencies on PO_CLOSEOUT_PVT
12.2.2
-
APPS.PO_CLOSEOUT_PVT dependencies on PO_CLOSEOUT_PVT
12.2.2
-
APPS.PO_CLM_DOCUMENT_CONTROL_PVT dependencies on PO_CLOSEOUT_PVT
12.2.2
-
SYNONYM: APPS.AP_INVOICE_DISTRIBUTIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_DISTRIBUTIONS_ALL, status:VALID,