Results for “jtf_terr_esc_root”

4 results




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

Overview

APPS.JTF_TERR_ESCALATIONS_NAV is a reporting and navigation view within the Oracle E-Business Suite Territory Management (ETRM) module. It exposes a hierarchical, tree-structured representation of territories flagged as escalation territories, together with the sources and node types that govern how those territories are rendered in the Territory Manager navigation tree. The view is built against the root key JTF_TERR_ESC_ROOT, which is the anchor used by JTF_NAV_NODE_TYPES_V to describe the escalation branch of the navigation hierarchy.

Because the view returns pre-computed node metadata such as NODE_TYPE, NODE_KEY, ICON_NAME, LEAF_FLAG, PARENT_NODE_TYPE, and PARENT_NODE_KEY, it functions as a ready-made data source for tree-rendering components and personalizations rather than as a transactional table. Its practical role is to answer the question of which territories participate in the escalation hierarchy, how they are nested, and which of them are leaf nodes (that is, territories that are not themselves the escalation parent of any other territory). In Oracle EBS 12.1.1 and 12.2.2 this object is deployed under the APPS schema and is typically referenced by forms, OAF pages, and custom concurrent programs that render the escalation navigation tree.

Underlying Base Objects

The view is defined as a three-way UNION ALL of SELECT statements over the following documented base objects: JTF_NAV_NODE_TYPES_V (VIEW), JTF_SOURCES (VIEW), JTF_TERR (SYNONYM, resolving to the territory definition table JTF_TERR_B/JTF_TERR_TL), and JTF_TERR_USGS (SYNONYM, the territory usage/assignment table). The package FND_GLOBAL is referenced for session context such as ORG_ID and user identity.

Each UNION branch maps to a distinct level of the navigation tree:

  • Source branch — joins JTF_NAV_NODE_TYPES_V, JTF_SOURCES, and JTF_TERR filtered on T.TERR_ID = 1 to produce the top-level SOURCE nodes.
  • Escalation branch — joins JTF_TERR to itself via jtall.terr_id = jtall2.escalation_territory_id(+) and to JTF_TERR_USGS/JTF_SOURCES, restricted to escalation_territory_flag = 'Y', producing ESCALATION nodes.
  • Territory branch — produces TERRITORY nodes where escalation_territory_id IS NOT NULL, using DECODE on escalation_territory_flag to reclassify rows as ESCALATION where appropriate.

The outer joins (jtall2.escalation_territory_id(+)) are essential: the count of child escalations determines the LEAF_FLAG, so the join must be preserved to correctly label leaf nodes.

Key Columns

  • LABEL — display name of the node; sourced from JTF_SOURCES.MEANING for source nodes and JTF_TERR.NAME for territory/escalation nodes.
  • NODE_TYPE — the node category: SOURCE, ESCALATION, or TERRITORY.
  • NODE_KEY — the unique key for the node, built as a quoted string ('"' || terr_id || '"' or the corresponding source_id).
  • ICON_NAME — icon associated with the node type in the navigation tree.
  • LEAF_FLAG — Y when the territory has no child escalation territory, otherwise N.
  • PARENT_NODE_TYPE / PARENT_NODE_KEY — pointer to the parent node, enabling the tree to be reconstructed without additional queries.
  • escalation_territory_id — the self-referencing key that drives the hierarchy; the term the user searched on.

Common Use Cases and Queries

Typical scenarios include populating a navigation tree in a custom OAF page, validating escalation hierarchy configuration before a Territory Manager release, and reporting on territories that act as escalation parents.

SELECT label, node_type, node_key, leaf_flag
FROM   apps.jtf_terr_escalations_nav
WHERE  node_type = 'ESCALATION'
ORDER  BY label;

To find only leaf territories (those with no child escalations):

SELECT label, parent_node_key
FROM   apps.jtf_terr_escalations_nav
WHERE  leaf_flag = 'Y'
  AND  node_type IN ('ESCALATION','TERRITORY');

To walk the hierarchy from a known parent:

SELECT label, node_key, node_type
FROM   apps.jtf_terr_escalations_nav
WHERE  parent_node_key = '"' || :territory_id || '"';

Because the view returns all three node levels in a single row set, it is well suited to recursive or hierarchical rendering logic, and it avoids the need for the calling application to join JTF_TERR to itself to resolve escalation_territory_id relationships.