Search Results ams_terr_levels_all
Overview
AMS_TERR_LEVELS_ALL is a Marketing (AMS) module table within the Oracle E-Business Suite that stores the hierarchical levels corresponding to territory types maintained in the JTF schema. Territories in Oracle EBS are used by Territory Manager, Sales, Marketing, and Incentive Compensation to partition customers, prospects, and resources into logical groupings. A territory type — for example, a geography-based or industry-based classification — can be decomposed into one or more levels that define its internal hierarchy. AMS_TERR_LEVELS_ALL is the repository that binds each level to its owning territory type and describes its depth within that hierarchy.
From a data-modeling perspective, the supplied metadata classifies this object heuristically as a standalone entity. In Data Vault terms this is a modeling suggestion only: the table can be treated as a hub-like reference structure keyed on TERR_LEVEL_ID, with descriptive attributes (level depth, hierarchy identifier, territory identifiers) functioning as satellite attributes and foreign-key references to JTF_TERR_TYPES_ALL and FND_SECURITY_GROUPS acting as links to their respective hubs. Because the classification is heuristic and the object carries no downstream foreign keys in the mined relationship data, implementations should validate any dimensional or Data Vault treatment against the physical model before adopting it.
Key Information Stored
The primary key of the table is TERR_LEVEL_ID, enforced by the unique index AMS_TERR_LEVELS_ALL_U1 and the constraint AMS_TERR_LEVELS_ALL_PK. TERR_LEVEL_ID is the surrogate identifier for a territory level and is the column through which the table is joined from dependent territory structures. Although the metadata documents the unique index on TERR_LEVEL_ID as a business-key candidate, no additional natural key is supplied, meaning uniqueness of a level is defined only by the surrogate.
Among the thirty-five documented columns, the most operationally significant are:
- TERR_LEVEL_ID — surrogate primary key for each territory level row.
- TERR_TYPE_ID — foreign key to JTF_TERR_TYPES_ALL, identifying the territory type to which the level belongs.
- LEVEL_DEPTH — numeric position of the level within the territory hierarchy, distinguishing top-level from subordinate levels.
- TERRITORY_ID — reference to the territory instance associated with the level.
- PARENT_TERRITORY_ID — self-referencing pointer denoting the parent territory in the hierarchy.
- HEIRARCHY_ID — identifier of the hierarchy version or definition in which the level participates, enabling multiple coexisting hierarchies.
- ORG_ID — operating unit context, supporting multi-org data partitioning.
- SECURITY_GROUP_ID — foreign key to FND_SECURITY_GROUPS, controlling row-level security visibility.
- OBJECT_VERSION_NUMBER — optimistic locking column used by the AOL framework.
- ATTRIBUTE_CATEGORY and ATTRIBUTE1 through ATTRIBUTE15 — flexfield-style descriptive columns reserved for customer extensions.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard WHO audit columns.
- PROGRAM_ID, PROGRAM_APPLICATION_ID, PROGRAM_UPDATE_DATE, REQUEST_ID — concurrent program and request tracking columns.
Common Use Cases and Queries
Typical usage centers on resolving the level structure behind a territory type, reconstructing hierarchy paths, and validating level depth values during territory setup or migration. A common query enumerates levels for a given territory type joined to its JTF_TERR_TYPES_ALL definition:
- SELECT l.TERR_LEVEL_ID, l.TERR_TYPE_ID, l.LEVEL_DEPTH, l.TERRITORY_ID, l.PARENT_TERRITORY_ID FROM AMS.AMS_TERR_LEVELS_ALL l, JTF.JTF_TERR_TYPES_ALL t WHERE l.TERR_TYPE_ID = t.TERR_TYPE_ID;
- Filtering by ORG_ID and SECURITY_GROUP_ID to honor operating unit and security group boundaries in reporting extracts.
- Ordering by HEIRARCHY_ID and LEVEL_DEPTH to render the full hierarchy tree for a territory type.
- Self-joining TERRITORY_ID to PARENT_TERRITORY_ID to derive ancestor/descendant relationships for analytics or Incentive Compensation plan design.
Related Objects
The documented foreign keys anchor this table to two reference objects, and additional AMS/JTF territory objects depend on it indirectly:
- JTF_TERR_TYPES_ALL — joined via AMS_TERR_LEVELS_ALL.TERR_TYPE_ID = JTF_TERR_TYPES_ALL.TERR_TYPE_ID; defines the territory type each level belongs to.
- FND_SECURITY_GROUPS — joined via AMS_TERR_LEVELS_ALL.SECURITY_GROUP_ID = FND_SECURITY_GROUPS.SECURITY_GROUP_ID; enforces row-level security.
- JTF_TERRITORIES_ALL — the territory master referenced by TERRITORY_ID and PARENT_TERRITORY_ID.
- AMS_TERRITORIES_ALL / AMS_TERR_DENORM_ALL — denormalized territory structures that consume level definitions.
- JTF_TERR_RESOURCES / JTF_TERR_ASSIGNMENTS — resource-to-territory mappings built on the defined level structure.
- FND_TERRITORIES — the seeded geographic territory reference distinct from AMS hierarchies but often cross-referenced in reporting.
-
Table: AMS_TERR_LEVELS_ALL
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_TERR_LEVELS_ALL, object_name:AMS_TERR_LEVELS_ALL, status:VALID, product: AMS - Marketing , description: This table stores the levels that corrospond to territory types in JTF. , implementation_dba_data: AMS.AMS_TERR_LEVELS_ALL ,
-
Table: AMS_TERR_LEVELS_ALL
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_TERR_LEVELS_ALL, object_name:AMS_TERR_LEVELS_ALL, status:VALID, product: AMS - Marketing , description: This table stores the levels that corrospond to territory types in JTF. , implementation_dba_data: AMS.AMS_TERR_LEVELS_ALL ,
-
SYNONYM: APPS.AMS_TERR_LEVELS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_TERR_LEVELS_ALL, status:VALID,
-
SYNONYM: APPS.AMS_TERR_LEVELS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_TERR_LEVELS_ALL, status:VALID,
-
VIEW: APPS.AMS_TERR_VALUES_V
12.2.2
-
VIEW: APPS.AMS_TERR_HIER_V
12.1.1
-
VIEW: APPS.AMS_TERR_VALUES_V
12.1.1
-
VIEW: AMS.AMS_TERR_LEVELS_ALL#
12.2.2
owner:AMS, object_type:VIEW, object_name:AMS_TERR_LEVELS_ALL#, status:VALID,
-
VIEW: APPS.AMS_TERR_V
12.2.2
-
VIEW: APPS.AMS_TERR_HIER_V
12.2.2
-
VIEW: AMS.AMS_TERR_LEVELS_ALL#
12.2.2
-
VIEW: APPS.AMS_TERR_V
12.1.1
-
TABLE: AMS.AMS_TERR_LEVELS_ALL
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_TERR_LEVELS_ALL, object_name:AMS_TERR_LEVELS_ALL, status:VALID,
-
TABLE: AMS.AMS_TERR_LEVELS_ALL
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_TERR_LEVELS_ALL, object_name:AMS_TERR_LEVELS_ALL, status:VALID,
-
View: AMS_TERR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_V, object_name:AMS_TERR_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_V ,
-
View: AMS_TERR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_V, object_name:AMS_TERR_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_V ,
-
View: AMS_TERR_HIER_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_HIER_V, object_name:AMS_TERR_HIER_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_HIER_V ,
-
View: AMS_TERR_VALUES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_VALUES_V, object_name:AMS_TERR_VALUES_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_VALUES_V ,
-
View: AMS_TERR_HIER_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_HIER_V, object_name:AMS_TERR_HIER_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_HIER_V ,
-
View: AMS_TERR_VALUES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_VALUES_V, object_name:AMS_TERR_VALUES_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_TERR_VALUES_V ,
-
VIEW: APPS.AMS_TERR_VALUES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_VALUES_V, object_name:AMS_TERR_VALUES_V, status:VALID,
-
VIEW: APPS.AMS_TERR_HIER_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_HIER_V, object_name:AMS_TERR_HIER_V, status:VALID,
-
VIEW: APPS.AMS_TERR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_V, object_name:AMS_TERR_V, status:VALID,
-
VIEW: APPS.AMS_TERR_VALUES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_VALUES_V, object_name:AMS_TERR_VALUES_V, status:VALID,
-
VIEW: APPS.AMS_TERR_HIER_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_HIER_V, object_name:AMS_TERR_HIER_V, status:VALID,
-
VIEW: APPS.AMS_TERR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_TERR_V, object_name:AMS_TERR_V, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.OZF_TERR_LEVELS_PVT
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
PACKAGE: APPS.OZF_TERR_LEVELS_PVT
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - AMS Tables and Views
12.2.2
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - AMS Tables and Views
12.1.1
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - AMS Tables and Views
12.2.2
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - AMS Tables and Views
12.1.1
description: This table is used to store tracking data for web advertisement and offer type schedules ,