Search Results jtf_terr_types_all




Overview

The JTF_TERR_TYPES_ALL table is a core master data table within the Oracle E-Business Suite CRM Foundation (JTF) module, specifically for the Territory Management functionality. It serves as the central repository for defining the different classifications or categories of territories that an organization can establish. In essence, it stores the territory type definition, providing a framework for structuring the territory hierarchy. Each record in this table represents a distinct type of territory, such as "Sales Region," "Service Area," "Marketing Zone," or "Geographic District," allowing for flexible and multi-dimensional territory modeling. This table is fundamental to the application's ability to segment markets, assign resources, and manage coverage rules based on organizational needs.

Key Information Stored

The primary column in the table is the TERR_TYPE_ID, which serves as the unique identifier for each territory type and is the table's primary key (JTF_TERR_TYPES_ALL_PK). While the provided metadata does not list all columns, standard implementation columns such as CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, and LAST_UPDATE_LOGIN are invariably present, supporting audit trails and multi-org security through the _ALL suffix. The table likely includes columns for the territory type name (e.g., NAME), a description (DESCRIPTION), and status control (e.g., ACTIVE_FLAG or START_DATE_ACTIVE/END_DATE_ACTIVE). These attributes define the purpose and validity of each territory type within the system.

Common Use Cases and Queries

This table is primarily referenced during the setup and administration of territories, as well as in reporting to analyze territory structures. A common operational use case is querying all active territory types available for creating a new territory record. For reporting, one might join this table to the JTF_TERR_ALL table to produce a list of all territories grouped by their type. A typical SQL pattern to retrieve basic territory type information would be:

  • SELECT terr_type_id, name, description FROM jtf_terr_types_all WHERE SYSDATE BETWEEN start_date_active AND NVL(end_date_active, SYSDATE) ORDER BY name;

Another critical use case involves data validation and integrity checks, ensuring that territories (JTF_TERR_ALL) reference valid types existing in this master table.

Related Objects

The JTF_TERR_TYPES_ALL table has several key relationships, as indicated by its foreign key constraints. It is the parent table to JTF_TERR_ALL, where each territory (TERRITORY_TYPE_ID) must be of a type defined here. It is also linked to qualification and usage rule tables: JTF_TERR_TYPE_QUAL_ALL defines qualification rules for a territory type, JTF_TERR_TYPE_USGS_ALL defines usage rules, and JTF_TYPE_QTYPE_USGS_ALL governs qualification type usage. These relationships form the backbone of the territory engine's rule-based assignment logic. Administrators typically interact with these definitions via the "Territories" manager responsibility and related APIs rather than through direct SQL manipulation.