Search Results terr_group_role_id




Overview

The JTF_TTY_TERR_GRP_ROLES table is a core data object within the Oracle E-Business Suite CRM Foundation (JTF) module. It functions as the central repository for defining and storing role assignments for territory groups. In the context of Oracle EBS 12.1.1 and 12.2.2, territory management is a critical component for structuring sales, service, and marketing organizations. This table enables the association of specific functional roles—such as Sales Representative, Manager, or Partner—to defined territory groups, thereby establishing the authorization and responsibility framework for users within the territory hierarchy. Its existence is fundamental to enforcing data access and task assignment rules based on territory and role.

Key Information Stored

The table's primary purpose is to maintain a unique mapping between a territory group and a role. The key columns, as indicated by its constraints, are the TERR_GROUP_ROLE_ID, which serves as the unique primary key identifier for each role assignment record, and the TERR_GROUP_ID, which is a foreign key linking to the JTF_TTY_TERR_GROUPS table. While the provided metadata does not list all columns explicitly, a typical implementation would also include a ROLE_ID or similar column to identify the specific role (e.g., from JTF_RS_ROLES_B), along with standard WHO columns (CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) for auditing. The integrity of the data is enforced by the primary key constraint JTF_TTY_TERR_GRP_ROLES_PK.

Common Use Cases and Queries

This table is primarily accessed for administrative setup, security reporting, and data validation. Common operational scenarios include generating a list of all roles assigned to a specific territory group for review, or identifying all territory groups where a particular role is active. A typical reporting query would join this table to the territory group and role descriptions for clarity.

Sample Query:
SELECT tg.NAME TERRITORY_GROUP, r.ROLE_NAME, tgr.TERR_GROUP_ROLE_ID
FROM JTF_TTY_TERR_GRP_ROLES tgr,
    JTF_TTY_TERR_GROUPS tg,
    JTF_RS_ROLES_B r
WHERE tgr.TERR_GROUP_ID = tg.TERR_GROUP_ID
AND tgr.ROLE_ID = r.ROLE_ID
ORDER BY tg.NAME, r.ROLE_NAME;

Data integrity checks often involve verifying that no territory group role records exist for orphaned territory groups, using anti-joins with the parent table.

Related Objects

The table maintains defined foreign key relationships with other core territory management objects, as documented in the ETRM metadata.

  • Parent Table (Referenced by JTF_TTY_TERR_GRP_ROLES):
    • JTF_TTY_TERR_GROUPS: The TERR_GROUP_ID column in JTF_TTY_TERR_GRP_ROLES references the primary key of this table. This ensures every role assignment is linked to a valid territory group.
  • Child Table (References JTF_TTY_TERR_GRP_ROLES):
    • JTF_TTY_ROLE_PROD_INTERSECT (JTF_TTY_ROLE_PROD_INT): This table references JTF_TTY_TERR_GRP_ROLES via the TERR_GROUP_ROLE_ID foreign key. This relationship likely extends the role assignment to govern product-level access or intersection rules within the territory group.

These relationships position JTF_TTY_TERR_GRP_ROLES as a pivotal junction between territory group definitions (JTF_TTY_TERR_GROUPS) and more granular product-role security rules (JTF_TTY_ROLE_PROD_INT).