Search Results get_dim_for_level




Overview

APPS.BSC_AW_MD_API is a PL/SQL package in the Oracle E-Business Suite Balanced Scorecard (BSC) module that manages the metadata definitions and lifecycle of OLAP objects — dimensions, levels, calendars, and KPIs — for the Oracle OLAP Analytic Workspace (AW). In Oracle EBS 12.1.1 and 12.2.2, the Balanced Scorecard application relies on analytic workspaces as its physical data storage layer; this package exposes a programmatic API through which callers create, query, mark for recreation, and drop the OLAP representations of scorecard metadata.

The package is classified as an API and is owned by APPS. It maintains session-level cached collections of OLAP object and object-relation descriptors, populated from its internal work tables, to avoid repeated catalog lookups during large metadata build operations. Runtime diagnostics are controlled through a debug flag and a statement buffer used to externalize generated DDL.

Key Procedures and Functions

Tables Accessed

  • BSC_OLAP_OBJECT — Stores the persisted OLAP object definitions and is queried and maintained whenever dimensions, levels, KPIs, or calendars are created, read, or dropped.
  • BSC_OLAP_OBJECT_RELATION — Captures parent/child and other structural relationships between OLAP objects; used by the relation cache and by the parent/child traversal routines.
  • DBMS_SQL — The built-in package used for dynamic SQL generation of OLAP DDL and for the varchar2_table structures returned by several getter procedures.
  • PLITBLM — An internal APPS synonym used in support of PL/SQL collection processing.

Usage Notes

BSC_AW_MD_API is invoked as a backend metadata engine rather than from a user-facing form. The standard call pattern is: confirm a dimension does not yet exist with IS_DIM_PRESENT, then call CREATE_DIM_OBJECTS with a populated dimension record, subsequently creating KPIs and calendars through CREATE_KPI and CREATE_CALENDAR. When scorecard metadata changes, MARK_KPI_RECREATE schedules dependent KPIs for rebuild, and DROP_DIM or DROP_KPI clears obsolete definitions.

The package is referenced by thirteen other packages, so changes to its signatures must be treated as interface changes. Because it executes OLAP DDL against the analytic workspace, calls should be issued with the APPS schema and appropriate OLAP privileges, and typically originate from concurrent programs, metadata refresh APIs, or the Balanced Scorecard setup flows rather than from ad hoc custom code. Developers enabling diagnostics should set the module-level debug flag and inspect the statement buffer, which retains the last generated statement and is useful when troubleshooting creation or drop failures.