Results for “terr_id”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
BIL_DIMV_TERR_HIER is a read-only dimension view owned by the APPS schema within the Oracle E-Business Suite Sales Intelligence product family (BIL). Its documented purpose is to expose the sales territory hierarchy in a flattened, denormalized form suitable for dimensional reporting, data warehousing extracts, and integration with territory-based analytics. The view is registered as VALID in ETRM for both 12.1.1 and 12.2.2, and its structure is deliberately minimal — three columns only — so that it can serve as a lightweight hierarchy dimension rather than a full territory master.
Because the view is defined with the WITH READ ONLY clause, no DML is permitted against it. Consumers must treat it purely as a query surface. Its consistent three-column shape across releases makes it stable for use in BI Publisher reports, Discoverer worksheets, OBIEE/Essbase dimensions, and custom concurrent program extracts.
Underlying Base Objects
The view text is a UNION ALL of two branches:
- JTF_TERR_DENORM — the primary source. This is the Territory Manager denormalized territory table, from which the view selects TERR_ID, PARENT_TERR_ID, and IMMEDIATE_PARENT_FLAG.
- FND_LOOKUPS — used to manufacture a synthetic root row. The lookup type is 'BIL_VALUE_TYPE' and the lookup code is '-999'. Both TERR_ID and PARENT_TERR_ID are coerced to numeric via TO_NUMBER, and IMMEDIATE_PARENT_FLAG is hard-coded to 'N'.
No additional base objects are documented in the ETRM metadata beyond these two. The denormalized table already stores the flattened ancestor relationships, which is why the view does not need to recursively walk a parent-child structure at query time.
Key Columns
- TERR_ID (NUMBER) — the territory identifier for the row being described. Every territory returned from JTF_TERR_DENORM appears as a TERR_ID, and the '-999' pseudo-row also appears as a TERR_ID.
- PARENT_TERR_ID (NUMBER) — the parent territory identifier associated with the row. Because the source is denormalized, a single TERR_ID will typically appear multiple times, once for each level of its ancestry, with a different PARENT_TERR_ID each time. The '-999' row points to itself, providing a self-referencing root anchor.
- IMMEDIATE_PARENT_FLAG (VARCHAR2) — indicates whether the PARENT_TERR_ID on this row is the immediate (direct) parent of TERR_ID. A value of 'Y' means the pair represents a direct parent-child link; any other value (including the 'N' emitted for the synthetic row) means the pair represents a more distant ancestor relationship.
The synthetic '-999 / -999 / N' row functions as a conventional "unknown" or "root" member for the hierarchy, allowing outer joins and level-based reporting to avoid orphaned territory rows.
Common Use Cases and Queries
Typical usage includes territory roll-up reporting, alignment to sales hierarchy dimensions, and reconstructing the immediate parent for a given territory. A direct-child lookup uses the IMMEDIATE_PARENT_FLAG filter:
SELECT TERR_ID, PARENT_TERR_ID FROM APPS.BIL_DIMV_TERR_HIER WHERE IMMEDIATE_PARENT_FLAG = 'Y' AND PARENT_TERR_ID = :p_territory_id;— returns the immediate children of a territory.SELECT TERR_ID, PARENT_TERR_ID FROM APPS.BIL_DIMV_TERR_HIER WHERE TERR_ID = :p_territory_id;— returns all ancestors of a territory (one row per level).SELECT DISTINCT PARENT_TERR_ID FROM APPS.BIL_DIMV_TERR_HIER WHERE PARENT_TERR_ID <> -999;— produces the distinct set of territories that act as parents anywhere in the hierarchy.
For building a full hierarchy extract for a data warehouse, a self-join on TERR_ID = PARENT_TERR_ID with the IMMEDIATE_PARENT_FLAG = 'Y' restriction yields the clean parent-child edge list, while the unfiltered view supplies closure-table style ancestry rows. Because the view is read-only and built on denormalized storage, queries are inexpensive relative to recursive CONNECT BY approaches over JTF_TERR_B, making it the preferred access path for territory hierarchy reporting in EBS 12.1.1 and 12.2.2.
-
View: BIL_DIMV_TERR_HIER 12.1.1
Sales territory hiearchy view
APPS.BIL_DIMV_TERR_HIER·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ JTF_TERR_DENORM·Explore BIL module →
-
Escalation Territories
APPS.JTY_ESCALATION_TERRITORIES_V·↳ JTF_TERR_ALL·↳ JTF_TERR_RSC_ACCESS_ALL·↳ JTF_TERR_RSC_ALL·Explore JTF module →
-
View: JTF_TERR_SRCH_ESCL_V 12.1.1
View for basic escalation territory search
APPS.JTF_TERR_SRCH_ESCL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ JTF_TERRITORY_RESOURCE_PVT·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
Escalation Territories
APPS.JTY_ESCALATION_TERRITORIES_V·↳ JTF_TERR_ALL·↳ JTF_TERR_RSC_ACCESS_ALL·↳ JTF_TERR_RSC_ALL·Explore JTF module →
-
Denormalized Territory tables for performance purposes
-
Denormalized Territory tables for performance purposes
-
View: JTF_TERR_SRCH_TEMP_V 12.1.1
View for template territory search
APPS.JTF_TERR_SRCH_TEMP_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
View: JTF_TERR_WINNERS_V 12.1.1
APPS.JTF_TERR_WINNERS_V·↳ JTF_TERR_DENORM_RULES·Explore JTF module →
-
View: JTF_TERR_SRCH_TEMP_V 12.2.2
View for template territory search
APPS.JTF_TERR_SRCH_TEMP_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
This view is used to show the qualifiers that a territory inherits from the territories above it in the territory hierarchy (if a hierarchy exists).
APPS.JTF_TERR_INHERITED_QUAL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_SEEDED_QUAL_USGS_V·Explore JTF module →
-
Associative (relationship) table to map between the territory and resource group tables
-
Associative (relationship) table to map between the territory and resource group tables
-
View for advanced template territory search
APPS.JTF_TERR_SRCH_ADV_TEMP_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
Stores the association between territories and the Oracle Application module(s) that use them.
-
View for advanced escalation territory search
APPS.JTF_TERR_SRCH_ADV_ESCL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERRITORY_RESOURCE_PVT·Explore JTF module →
-
This table stores changed territories.
-
View: JTF_TERR_WINNERS_V 12.2.2
APPS.JTF_TERR_WINNERS_V·↳ JTF_TERR_DENORM_RULES·Explore JTF module →
-
This table stores changed territories.
-
View for advanced escalation territory search
APPS.JTF_TERR_SRCH_ADV_ESCL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERRITORY_RESOURCE_PVT·Explore JTF module →
-
This shows the denormalised territory transactions horizontally.
APPS.JTF_TERR_TRANS_DENORM_V·↳ JTF_QUAL_TYPE_USGS·↳ JTF_TERR·↳ JTF_TERR_QTYPE_USGS·Explore JTF module →
-
View: JTF_TERR_SRCH_ESCL_V 12.2.2
View for basic escalation territory search
APPS.JTF_TERR_SRCH_ESCL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ JTF_TERRITORY_RESOURCE_PVT·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
View: JTF_TERR_SRCH_MAIN_V 12.2.2
View for basic territory search
APPS.JTF_TERR_SRCH_MAIN_V·↳ FND_ACCESS_CONTROL_UTIL·↳ JTF_TERRITORY_RESOURCE_PVT·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
View: JTF_EXCEPTIONS 12.2.2
Same as JTF_EXCEPTIONS_ALL
APPS.JTF_EXCEPTIONS·↳ JTF_EXCEPTIONS_ALL·Explore JTF module →
-
View: CSF_PLAN_TERRS_V 12.2.2
Base view of form block in CSFSEPLT form. Corresponds to the CSF_PLAN_TERRS table
APPS.CSF_PLAN_TERRS_V·↳ CSF_PLAN_TERRS·↳ JTF_RS_GROUPS_VL·↳ JTF_TERR_ALL·Explore CSF module →
-
Stores the transaction types that can be assigned to a territory.
-
APPS.JTF_TERR_SRCH_ADV_GEN_V·↳ JTF_SOURCES_ALL·↳ JTF_TERR·↳ JTF_TERR_TYPES·Explore JTF module →
-
View: JTF_EXCEPTIONS 12.1.1
Same as JTF_EXCEPTIONS_ALL
APPS.JTF_EXCEPTIONS·↳ JTF_EXCEPTIONS_ALL·Explore JTF module →
-
This view is used to show the qualifiers that a territory inherits from the territories above it in the territory hierarchy (if a hierarchy exists).
APPS.JTF_TERR_INHERITED_QUAL_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_SEEDED_QUAL_USGS_V·Explore JTF module →
-
Stores the association between territories and the Oracle Application module(s) that use them.
-
This shows the denormalised territory transactions horizontally.
APPS.JTF_TERR_TRANS_DENORM_V·↳ JTF_QUAL_TYPE_USGS·↳ JTF_TERR·↳ JTF_TERR_QTYPE_USGS·Explore JTF module →
-
Holds territory definitions
-
Hold territory assignment results.
-
APPS.JTF_TERR_SRCH_ADV_GEN_V·↳ JTF_SOURCES_ALL·↳ JTF_TERR·↳ JTF_TERR_TYPES·Explore JTF module →
-
Stores the exceptions to a territory. Not used.
-
This view shows the transactions that are assigned to a territory.
APPS.JTF_TERR_TRANSACTIONS_V·↳ FND_GLOBAL·↳ JTF_QUAL_TYPES·↳ JTF_QUAL_TYPE_USGS·Explore JTF module →
-
View for advanced template territory search
APPS.JTF_TERR_SRCH_ADV_TEMP_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERR_OVERVIEW_V·Explore JTF module →
-
Hold territory assignment results.
-
Stores the qualifiers that used to define a territory.
-
Stores the qualifiers that used to define a territory.
-
View: CSF_PLAN_TERRS_V 12.1.1
Base view of form block in CSFSEPLT form. Corresponds to the CSF_PLAN_TERRS table
APPS.CSF_PLAN_TERRS_V·↳ CSF_PLAN_TERRS·↳ JTF_RS_GROUPS_VL·↳ JTF_TERR_ALL·Explore CSF module →
-
View: CSR_RULES_VL 12.2.2
APPS.CSR_RULES_VL·↳ CSR_RULES_B·↳ CSR_RULES_TL·↳ WINDOW1532_COLL·Explore CSR module →
-
View for advanced territory search
APPS.JTF_TERR_SRCH_ADV_MAIN_V·↳ FND_ACCESS_CONTROL_UTIL·↳ FND_GLOBAL·↳ JTF_TERRITORY_RESOURCE_PVT·Explore JTF module →
-
Stores the transaction types that can be assigned to a territory.