Search Results ozf_reason_codes_vl




Overview

OZF_REASON_CODES_VL is a validation view in the Oracle E-Business Suite Trade Management (OZF) module, owned by the APPS schema. In ETRM 12.2.2 documented metadata, the view is explicitly flagged as obsoleted. It was originally introduced to expose the translated, language-specific reason code records used throughout Trade Management, including promotions, claims, deductions, and trade-related transactions. Because it carries the "_VL" suffix, the view follows the standard Oracle EBS multilingual convention: it joins a translated (TL) table with a base (B) table and returns only the rows whose LANGUAGE matches the session language (USERENV('LANG')), while enforcing Multi-Org visibility.

From a reporting and integration standpoint, OZF_REASON_CODES_VL delivered a single, denormalized result set combining operational attributes (reason code, reason type, active dates, descriptive flexfield columns) with the language-specific NAME and DESCRIPTION. External interfaces and custom reports could query this view without needing to write their own TL/B join or apply multi-org predicates manually. Because the object is marked obsoleted in the ETRM documentation, new development should not depend on it; existing implementations should confirm behavior on the target patch level.

Underlying Base Objects

Per the ETRM 12.2.2 metadata, the view is defined over two referenced base objects:

  • OZF_REASON_CODES (SYNONYM) — the base/synonym layer corresponding to the operational reason code data.
  • OZF_REASON_CODES_ALL_TL (SYNONYM) — the translation table holding language-specific NAME and DESCRIPTION, along with LANGUAGE and SOURCE_LANG.

The documented view text references OZF_REASON_CODES_ALL_TL (aliased T) and OZF_REASON_CODES_ALL_B (aliased B). The join condition is B.REASON_CODE_ID = T.REASON_CODE_ID, combined with an org match: NVL(T.ORG_ID,-99) = NVL(B.ORG_ID,-99). The view additionally restricts rows using the multi-org CLIENT_INFO-based predicate that compares NVL(ORG_ID, -99) against the value parsed from USERENV('CLIENT_INFO'), and finally filters T.LANGUAGE = USERENV('LANG'). The ROW_ID column is derived from B.ROWID.

Key Columns

The view exposes the union of base attributes plus translation attributes. Significant columns include:

  • ROW_ID — the ROWID of the base (_B) row; useful for row identification and locking references.
  • REASON_CODE_ID — primary key linking base and translation rows.
  • REASON_CODE — the business-visible reason code value.
  • REASON_TYPE_ID — foreign key to the reason type/grouping.
  • START_DATE_ACTIVE / END_DATE_ACTIVE — effective date range controlling usability.
  • ORG_ID — the operating unit context, central to multi-org filtering.
  • NAME / DESCRIPTION — language-specific display text sourced from the TL table.
  • LANGUAGE / SOURCE_LANG — translation language and original source language.
  • OBJECT_VERSION_NUMBER — optimistic locking (OLTP) version token.
  • ATTRIBUTE_CATEGORY and ATTRIBUTE1–15 — descriptive flexfield segments.
  • Audit columnsLAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN.

Common Use Cases and Queries

Typical historical uses include reporting active reason codes by operating unit, looking up reason code descriptions for user-facing reports, and validating interface payloads. A representative query filtering active codes for the current org is shown below; note that because the view applies multi-org and language predicates internally, the caller does not repeat those filters.

  • Report of active reason codes: SELECT reason_code_id, reason_code, name FROM ozf_reason_codes_vl WHERE SYSDATE BETWEEN start_date_active AND NVL(end_date_active, SYSDATE + 1);
  • Join to reason types for descriptive reporting by category.
  • Lookup source for integration staging tables requiring translated reason descriptions.
  • Data-extraction queries for migration or reconciliation, keyed on ORG_ID and REASON_CODE_ID.

Because the object is documented as obsoleted, Oracle support may not accept new defects against it. Consumers should verify whether a supported replacement object or newer Trade Management API exists before building any new dependency on OZF_REASON_CODES_VL.