Results for “ams_metrics_vl”

50+ results




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

Overview

AMS_METRICS_VL is a bilingual (VL) view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the AMS – Marketing product family. It exposes the details of metrics measures that can be associated with an activity, effectively serving as the reporting and integration layer over the underlying marketing metrics definition tables. In Oracle EBS 12.1.1 and 12.2.2, this view is reported as VALID in the ETRM repository.

The view's principal function is to join the transactional definition of a metric with its translated, language-specific descriptive text. It returns one row per metric for the session language, so that reports, concurrent programs, and API-driven integrations present metric names and descriptions in the user's own locale rather than in the base language. Because it is a VL (translated) view, it is the recommended access point for read-only queries against marketing metric definitions, in preference to querying the underlying _B and _TL tables directly.

Underlying Base Objects

The view is defined over two base objects, both referenced in the ETRM metadata as synonyms:

The join is performed on METRIC_ID, filtered by T.LANGUAGE = USERENV('LANG'), which restricts the result set to the current session language. The SELECT list draws almost all functional columns from the _B table and only the descriptive columns from the _TL table. The view also synthesizes a ROW_ID column from B.ROW_ID, providing a pseudo-row identifier for the metric definition.

Key Columns

Common Use Cases and Queries

Typical scenarios include listing all enabled metrics available to activities, retrieving a metric description in the user's language, and driving dynamic LOV or reporting queries in custom extensions.

Listing enabled metrics with translated text:

  • SELECT metric_id, metrics_name, description, metric_category, default_uom_code FROM ams_metrics_vl WHERE enabled_flag = 'Y' AND language-independent filtering is unnecessary ORDER BY metrics_name;

Retrieving a specific metric definition:

  • SELECT metric_id, metrics_name, description, formula_display, compute_using_function FROM ams_metrics_vl WHERE metric_id = :p_metric_id;

Filtering by category for reporting:

  • SELECT metric_category, metric_sub_category, metrics_name FROM ams_metrics_vl WHERE enabled_flag = 'Y' ORDER BY metric_category, metrics_name;

Because the LANGUAGE predicate is embedded in the view, no additional language filter is required; results automatically reflect the session language. For multi-language extraction, query AMS_METRICS_ALL_TL directly.