Search Results po_price_adj_draft_pkg
Overview
The APPS.PO_PRICE_ADJ_DRAFT_PKG package body is a core Oracle E-Business Suite purchasing component that manages draft (uncommitted) price adjustment records before they are synchronized into the transactional purchasing tables. It operates in the Oracle Purchasing module and supports the draft-edit workflow that allows buyers to stage, modify, and version price adjustment definitions without immediately affecting active purchase orders, releases, and quotations. The package is owned by the APPS schema and carries a VALID status in both EBS 12.1.1 and 12.2.2. Its documented API classification is OTHER, meaning it is an internal utility package rather than a published public API; it is called by other Purchasing programs rather than exposed directly to external integrations.
Key Procedures and Functions
ETRM documents seven subprograms in this package body, of which the following are named in the metadata excerpt:
- DELETE_ROWS — Removes price adjustment draft rows, typically invoked when a draft is discarded or superseded, keeping the draft tables consistent with the current editing session.
- SYNC_DRAFT_FROM_TXN — Copies the current transactional price adjustment data into the draft tables, establishing the baseline a user then edits. This is the mechanism that seeds a draft from the committed transaction.
- MERGE_CHANGES — Reconciles and applies the edits captured in the draft tables, merging changed rows so that the draft reflects the intended end state before commit processing.
- LOCK_DRAFT_RECORD — Acquires a lock on the draft row to prevent concurrent modification by another session, enforcing serialized editing.
- LOCK_TRANSACTION_RECORD — Acquires a lock on the underlying transactional record, protecting it from simultaneous update while draft changes are pending.
Two additional subprograms are counted in the documented total of seven but not individually named in the excerpt; their behavior is inferred from the package's overall draft-management role. No parameter lists are asserted, consistent with the documented scope.
Tables Accessed
The package reads and writes the following APPS tables, accessed through synonyms:
- PO_PRICE_ADJUSTMENTS — the transactional (committed) price adjustment header records.
- PO_PRICE_ADJUSTMENTS_DRAFT — the draft counterpart that holds staged edits.
- PO_PRICE_ADJ_ATTRIBS — transactional attribute lines belonging to each price adjustment.
- PO_PRICE_ADJ_ATTRIBS_DRAFT — draft attribute lines mirroring the transactional attributes.
- DBMS_SQL and PLITBLM — dynamic SQL and PL/SQL table utilities used for generic row processing.
Supporting dependencies include PO_LOG, PO_MESSAGE_S, FND_API, PO_PRICE_ADJ_DRAFT_PVT, PO_TBL_NUMBER, and PO_TBL_VARCHAR1, indicating the package uses the standard EBS logging, message, and API error-handling infrastructure together with private helper logic in PO_PRICE_ADJ_DRAFT_PVT.
Usage Notes
PO_PRICE_ADJ_DRAFT_PKG is an internal implementation package and is not intended for direct customer invocation. It is referenced by four other packages and is not referenced by any standalone database object, confirming that its consumers are sibling Purchasing packages. It is typically driven by the Price Adjustment and Purchasing forms and by concurrent programs that manage draft price adjustments, where the sequence is normally: lock the relevant records, seed the draft from the transaction, allow edits, merge changes, then delete obsolete draft rows. Because the package relies on PO_MESSAGE_S and PO_LOG, errors surface through the standard EBS message stack rather than raw exceptions. Customizations should call the higher-level PO_PRICE_ADJ_DRAFT_PVT or public Purchasing APIs rather than this body directly, as its signature and internal sequence are subject to change across patch levels.
-
PACKAGE BODY: APPS.PO_PRICE_ADJ_DRAFT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_PRICE_ADJ_DRAFT_PKG, status:VALID,
-
PACKAGE: APPS.PO_PRICE_ADJ_DRAFT_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_PRICE_ADJ_DRAFT_PKG, status:VALID,
-
PACKAGE: APPS.PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
SYNONYM: APPS.PO_PRICE_ADJUSTMENTS_DRAFT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_ADJUSTMENTS_DRAFT, status:VALID,
-
SYNONYM: APPS.PO_PRICE_ADJ_ATTRIBS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_ADJ_ATTRIBS, status:VALID,
-
PACKAGE: APPS.PO_PRICE_ADJ_DRAFT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_PRICE_ADJ_DRAFT_PVT, status:VALID,
-
SYNONYM: APPS.PO_PRICE_ADJ_ATTRIBS_DRAFT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_ADJ_ATTRIBS_DRAFT, status:VALID,
-
PACKAGE BODY: APPS.PO_PRICE_ADJUSTMENTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_PRICE_ADJUSTMENTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.PO_PRICE_ADJ_DRAFT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_PRICE_ADJ_DRAFT_PVT, status:VALID,
-
SYNONYM: APPS.PO_PRICE_ADJUSTMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_PRICE_ADJUSTMENTS, status:VALID,
-
PACKAGE BODY: APPS.PO_MOD_CONTROL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_MOD_CONTROL_PVT, status:VALID,
-
TYPE: APPS.PO_TBL_VARCHAR1
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_VARCHAR1, 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_NUMBER
12.2.2
owner:APPS, object_type:TYPE, object_name:PO_TBL_NUMBER, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
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 BODY: APPS.PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
APPS.PO_DRAFTS_PVT dependencies on PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
APPS.PO_MOD_CONTROL_PVT dependencies on PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
APPS.PO_PRICE_ADJUSTMENTS_PKG dependencies on PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
APPS.PO_PRICE_ADJ_DRAFT_PVT dependencies on PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
APPS.PO_PRICE_ADJ_DRAFT_PKG dependencies on PO_PRICE_ADJ_DRAFT_PKG
12.2.2
-
PACKAGE: APPS.PO_MESSAGE_S
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_MESSAGE_S, status:VALID,
-
APPS.PO_PRICE_ADJ_DRAFT_PKG dependencies on PO_LOG
12.2.2
-
SYNONYM: PUBLIC.DBMS_SQL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_SQL, status:VALID,
-
SYNONYM: PUBLIC.PLITBLM
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:PLITBLM, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.FND_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,