Results for “parent_segment_id”

2 results




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

Overview

AR_LOCATION_VALUES is a read-only view owned by the APPS schema and registered under the FND – Application Object Library product. Despite the "AR" prefix, which reflects the historical association with the Receivables location key flexfield, the object is catalogued under FND because its definition depends on Application Object Library flexfield metadata tables. The view is marked VALID and is present in both Oracle EBS 12.1.1 and 12.2.2. Its underlying base objects are unchanged between the two releases, which makes it a stable query surface for reporting.

Functionally, the view presents the value set of a location key flexfield. Each row describes one geography record that participates in a parent-child relationship structure and that satisfies the segment attribute configuration for the RLOC flexfield. It is used primarily for validation and lookup within location flexfield definitions rather than as a module-specific transactional object.

Underlying Base Objects

AR_LOCATION_VALUES is defined over four synonym-referenced base objects:

Joins are constrained to application_id = 222 and ID_FLEX_CODE = 'RLOC', so only Receivables location flexfield segments qualify. Geography records are further restricted to GEOGRAPHY_USE = 'MASTER_REF' and RELATIONSHIP_TYPE = 'MASTER_REF'.

Key Columns

PROGRAM_UPDATE_DATE is exposed as a literal NULL and carries no data.

Common Use Cases and Queries

The view is typically queried to validate geography values, to build reporting extracts of the location hierarchy, or to reconcile geography data against flexfield configuration. A representative query retrieves the enabled hierarchy for a structure:

  • SELECT location_segment_id, location_segment_value, location_segment_qualifier FROM ar_location_values WHERE location_structure_id = :structure_id ORDER BY parent_segment_id NULLS FIRST;
  • SELECT child.location_segment_value, parent.location_segment_value parent_value FROM ar_location_values child, ar_location_values parent WHERE child.parent_segment_id = parent.location_segment_id;
  • SELECT country_code, COUNT(*) FROM ar_location_values GROUP BY country_code;

Because the definition relies on HZ tables, queries return one row per enabled geography segment; joins to top-level geographies must account for the MASTER_REF restrictions applied internally.