Results for “process_level_value_per_row”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
MSD_TRANSLATE_LEVEL_VALUES is an APPS-owned PL/SQL package body in Oracle E-Business Suite, classified under the ETRM taxonomy as OTHER. It belongs to the Oracle Advanced Supply Chain Planning (ASCP) / Demand Planning schema family (the MSD prefix), and its header comment indicates a last revision in 2006, meaning the package has been carried forward essentially unchanged into EBS 12.1.1 and 12.2.2. The package exists to translate, back up, and clean up planning "level values" — the hierarchical dimension members that Demand Planning and ASCP use to slice demand, forecasts, and item attributes across planning levels. When a user or concurrent process changes the structure of a planning level (for example by adding, removing, or re-parenting a level value, or by associating a level with a different organization), the existing level value rows and their parent-child associations must be preserved, recalculated, and synchronized with demand plan data. MSD_TRANSLATE_LEVEL_VALUES performs this structural maintenance, keeping MSD_LEVEL_VALUES, MSD_LEVEL_ASSOCIATIONS, and the related staging tables consistent with the live planning hierarchy. In practice it acts as an internal utility called by higher-level planning engine code rather than a user-facing API.
Key Procedures and Functions
- TRANSLATE_LEVEL_PARENT_VALUES — The core translation routine. It walks the planning level hierarchy and rewrites or re-derives the parent value references for level values, so that after a structural change each child level value still points at the correct parent member.
- BACKUP_LEVEL_VALUES — Creates a preserved copy of the current level value rows (via the MSD_ST_LEVEL_VALUES staging table) before translation occurs, providing a rollback/audit point.
- BACKUP_LEVEL_ASSOCIATIONS — Performs the equivalent preservation for level-to-organization associations, copying rows into MSD_ST_LEVEL_ASSOCIATIONS and MSD_ST_LEVEL_ORG_ASSCNS before they are modified.
- CLEAN_DELETED_LEVEL_VALUES — Removes obsolete or orphaned level value records, typically those recorded in MSD_DELETED_LEVEL_VALUES, so that stale hierarchy members do not continue to influence planning calculations.
The package body also contains private helper routines (log_debug, LOG_MESSAGE, ins) and additional internal procedures such as CREATE_ITEM_LIST_PRICE, DELETED_ITEM_LIST_PRICE, UPDATE_ITEM_LIST_PRICE, PROCESS_LEVEL_VALUE_PER_ROW, PROCESS_LEVEL_ASSOCIATION, and PROCESS_TOP_LEVEL_VALUES. These support item list price maintenance and row-by-row/association processing during the translation cycle.
Tables Accessed
The package reads and writes a tightly related set of MSD tables through APPS synonyms. Core hierarchy tables are MSD_LEVELS, MSD_LEVEL_VALUES, MSD_LEVEL_ASSOCIATIONS, and MSD_LEVEL_ORG_ASSCNS, which together define planning levels, their members, parent-child links, and organization assignments. Staging/mirror copies — MSD_ST_LEVEL_VALUES, MSD_ST_LEVEL_ASSOCIATIONS, MSD_ST_LEVEL_ORG_ASSCNS, and MSD_ST_ORG_CALENDARS — hold pre-change snapshots for backup and comparison. MSD_DELETED_LEVEL_VALUES tracks rows slated for the cleanup routine, while MSD_ITEM_LIST_PRICE and MSD_ST_ITEM_LIST_PRICE are touched when list prices must be re-derived for translated members. MSD_DEMAND_PLANS and MSD_DP_PARAMETERS_DS supply the demand plan and parameter context governing which levels are processed, MSD_ORG_CALENDARS provides organization calendar data, and DUAL is used for simple single-row queries.
Usage Notes
This package is not exposed to end users through a standalone form or concurrent program. It is invoked internally by ASCP and Demand Planning engine processes — notably during level maintenance and demand plan regeneration — and is referenced by two other packages in the APPS schema, which call its backup, translate, and cleanup procedures in sequence: back up, translate parent values, then clean deleted rows. The requested search term "a_attribute1" corresponds to the generic a IN VARCHAR2 parameter used by the package's logging helper and other internal routines; it is not a public API argument. Customizations should avoid direct calls to this package body, as its procedures depend on the internal sequencing and staging tables managed by the calling planning engine.