Search Results po_document_revision_grp
Overview
PO_DOCUMENT_REVISION_GRP is a server-side PL/SQL package owned by APPS and declared with AUTHID CURRENT_USER. It belongs to the Purchasing (PO) module and implements group-level Application Program Interfaces that manage revision control for purchasing documents. The package determines whether a document requires a new revision number by comparing the current state of a purchasing document against its most recently archived version. Its header comment identifies it as the home of line-level APIs supporting revision processing, with MassUpdate_Releases() documented as a primary entry point.
The central business purpose is to prevent unnecessary revision increments. When a purchasing document is archived, the archive retains the revision number that existed at archive time. If the live document still carries that same revision number, no net change requiring a new revision has occurred. If the numbers differ, the document has already been revised since archiving, and the routine exits. This logic safeguards revision integrity across the standard Purchasing document types (PO, PA, Standard, Planned, Blanket, Contract) and releases (Scheduled, Blanket).
Key Procedures and Functions
The ETRM metadata documents five procedures and functions, three of which are named in the excerpt: NAME, COMPARE, and CHECK_REV_DIFF. The user's search term, "check_rev_diff", maps directly to the CHECK_REV_DIFF procedure.
- CHECK_REV_DIFF — The procedure most closely associated with the package's revision-difference logic. It evaluates whether the live document differs from its archived counterpart to a degree that warrants a revision increment. It forms the decision point that drives revision numbering for the affected document types and subtypes.
- COMPARE — Performs the column-by-column comparison between live purchasing tables and their corresponding archive tables. The package documentation describes the comparison regime explicitly, indicating that specific tables are checked per document type, with the option to restrict comparison to a single table for performance.
- NAME — A helper routine, typically used to resolve or validate the document or revision name, supporting the identification of the document being evaluated.
- Check_New_Revision — Documented in the package source as returning the new revision number when an increment is required. It verifies whether the document's revision_num matches the latest archived version's revision_num (identified by LATEST_EXTERNAL_FLAG = 'Y').
- MassUpdate_Releases() — Listed in the package header as a key function/procedure, supporting bulk revision handling for releases.
Tables Accessed
The package reads both live and archive purchasing tables through APPS synonyms. Document headers and lines are examined via PO_HEADERS, PO_HEADERS_ALL, PO_HEADERS_ARCHIVE, PO_LINES, PO_LINES_ALL, and PO_LINES_ARCHIVE. Shipment and pricing data is checked through PO_LINE_LOCATIONS, while distribution data is read from PO_DISTRIBUTIONS, PO_DISTRIBUTIONS_ALL, PO_DISTRIBUTIONS_ARCHIVE, and PO_DISTRIBUTIONS_ARCHIVE_ALL. For releases, PO_RELEASES is compared against its archived form. Organizational context is derived from PO_GA_ORG_ASSIGNMENTS and PO_GA_ORG_ASSIGNMENTS_ARCHIVE, and system-level defaults come from FINANCIALS_SYSTEM_PARAMETERS and FINANCIALS_SYSTEM_PARAMS_ALL. The archive tables provide the baseline revision state; the live tables provide the current state; the comparison determines whether CHECK_REV_DIFF should signal a new revision.
Usage Notes
This package is a group (GRP) API typically invoked from the Purchasing forms, concurrent programs that perform mass release updates or archiving, and custom extensions built on the revision framework. Because the package comment explicitly instructs developers to keep the comparison logic synchronized with the archiving routine in /src/xit/porar.lpc, any customization or upgrade affecting revision logic must verify both locations. In EBS 12.1.1 and 12.2.2, the package remains under APPS with AUTHID CURRENT_USER, and it is referenced by four other packages, indicating it is a foundational dependency for revision-related processing across the purchasing schema.
-
PACKAGE: APPS.PO_DOCUMENT_REVISION_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_DOCUMENT_REVISION_GRP, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_REVISION_GRP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_REVISION_GRP, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_REVISION_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DOCUMENT_REVISION_GRP, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_REVISION_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_REVISION_GRP, status:VALID,
-
SYNONYM: APPS.PO_PRICE_DIFFERENTIALS_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_DIFFERENTIALS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_DISTRIBUTIONS_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_LINES_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_LINES_ARCHIVE, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_CANCEL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DOCUMENT_CANCEL_PVT, status:VALID,
-
SYNONYM: APPS.PO_GA_ORG_ASSIGNMENTS_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_GA_ORG_ASSIGNMENTS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_LINE_LOCATIONS_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_LINE_LOCATIONS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_DISTRIBUTIONS_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_PRICE_DIFFERENTIALS_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_DIFFERENTIALS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ARCHIVE, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_REVISION_GRP
12.1.1
-
SYNONYM: APPS.PO_GA_ORG_ASSIGNMENTS_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_GA_ORG_ASSIGNMENTS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_RELEASES_ARCHIVE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_LINES_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_LINES_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_RELEASES_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES_ARCHIVE, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_VERSION_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_VERSION_GRP, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_VERSION_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_VERSION_GRP, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ARCHIVE, status:VALID,
-
SYNONYM: APPS.PO_LINE_LOCATIONS_ARCHIVE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_LINE_LOCATIONS_ARCHIVE, status:VALID,
-
PACKAGE: APPS.PO_DOCUMENT_REVISION_GRP
12.2.2
-
PACKAGE: APPS.PO_GA_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_GA_PVT, status:VALID,
-
SYNONYM: APPS.PO_DISTRIBUTIONS_ARCHIVE_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS_ARCHIVE_ALL, status:VALID,
-
SYNONYM: APPS.PO_PRICE_DIFFERENTIALS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_DIFFERENTIALS, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_CANCEL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_CANCEL_PVT, status:VALID,
-
SYNONYM: APPS.PO_PRICE_DIFFERENTIALS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_DIFFERENTIALS, status:VALID,
-
SYNONYM: APPS.PO_LINE_LOCATIONS_ARCHIVE_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_LINE_LOCATIONS_ARCHIVE_ALL, status:VALID,
-
PACKAGE: APPS.PO_GA_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_GA_PVT, status:VALID,
-
SYNONYM: APPS.PO_GA_ORG_ASSIGNMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_GA_ORG_ASSIGNMENTS, status:VALID,
-
PACKAGE BODY: APPS.PO_DRAFTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DRAFTS_PVT, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR2000
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR2000, status:VALID,
-
SYNONYM: APPS.PO_GA_ORG_ASSIGNMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_GA_ORG_ASSIGNMENTS, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_CONTROL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_CONTROL_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_CONTROL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_CONTROL_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_UPDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_UPDATE_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_DOCUMENT_UPDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DOCUMENT_UPDATE_PVT, status:VALID,
-
PACKAGE BODY: APPS.PO_DRAFTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_DRAFTS_PVT, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR30
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR30, status:VALID,
-
SYNONYM: APPS.PO_RELEASES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES, status:VALID,
-
SYNONYM: APPS.PO_RELEASES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES, status:VALID,
-
VIEW: APPS.PO_ACCEPTANCES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_ACCEPTANCES_V, object_name:PO_ACCEPTANCES_V, status:VALID,
-
PACKAGE: APPS.PO_DEBUG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_DEBUG, status:VALID,
-
VIEW: APPS.PO_ACCEPTANCES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_ACCEPTANCES_V, object_name:PO_ACCEPTANCES_V, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.PO_DISTRIBUTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.PO_DISTRIBUTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS, status:VALID,
-
12.2.2 DBA Data
12.2.2