Results for “ozf_thresholds_all_vl”

28 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

OZF_THRESHOLDS_ALL_VL is a multilingual (VL) view owned by the APPS schema within the OZF – Trade Management product family in Oracle E-Business Suite 12.1.1 and 12.2.2. It presents threshold definitions used by Trade Management to govern accrual, settlement, and qualification logic applied against trade promotion activity. Thresholds establish the boundaries — expressed via calendars, period names, or explicit active dates — within which specific business rules take effect, and they are frequently referenced when evaluating promotional performance or calculating liabilities.

The view exposes a denormalized, translation-aware recordset combining the base threshold entity with its language-specific descriptive text. Because it is designated a VL view rather than a plain table view, it automatically filters translations by the session language through USERENV('LANG'), returning NAME and DESCRIPTION in the language of the connected user while preserving the operational attributes from the base table. This makes it the standard reporting and integration surface for threshold data in custom reports, concurrent programs, and external interfaces.

Underlying Base Objects

The view is defined over two documented base objects, both exposed through synonyms in the APPS schema:

  • OZF_THRESHOLDS_ALL_B — the base table holding the operational threshold attributes, including threshold ID, calendar, period ranges, active dates, owner, and enabled flag.
  • OZF_THRESHOLDS_ALL_TL — the translation table holding NAME, DESCRIPTION, LANGUAGE, and SOURCE_LANG for each threshold ID and organization context.

The join is performed on THRESHOLD_ID, with an ORG_ID match enforced through NVL(B.ORG_ID, -99) = NVL(T.ORG_ID, -99), ensuring that translated rows align to the correct organizational context even when ORG_ID is null. The T.LANGUAGE = USERENV('LANG') predicate restricts output to the current session's language, so users see a single row per threshold rather than one row per installed language.

Key Columns

The columns returned map directly to threshold configuration and audit metadata:

Common Use Cases and Queries

This view is typically used to list active thresholds for a given organization, to verify which calendar and periods a threshold spans, or to feed threshold data into custom Trade Management reports. A representative query follows:

  • SELECT THRESHOLD_ID, NAME, DESCRIPTION, THRESHOLD_CALENDAR, START_PERIOD_NAME, END_PERIOD_NAME, START_DATE_ACTIVE, END_DATE_ACTIVE, ENABLE_FLAG, ORG_ID FROM OZF_THRESHOLDS_ALL_VL WHERE ENABLE_FLAG = 'Y' AND ORG_ID = :p_org_id;
  • SELECT THRESHOLD_ID, NAME FROM OZF_THRESHOLDS_ALL_VL WHERE SYSDATE BETWEEN START_DATE_ACTIVE AND END_DATE_ACTIVE;
  • SELECT THRESHOLD_CALENDAR, COUNT(*) FROM OZF_THRESHOLDS_ALL_VL GROUP BY THRESHOLD_CALENDAR;

Because the view filters on the session language, callers must be aware that non-standard or missing translations can cause rows to be omitted; for diagnostic or cross-language retrieval, querying OZF_THRESHOLDS_ALL_B and OZF_THRESHOLDS_ALL_TL directly is advisable.