Search Results as_terr_resources_tmp
Overview
AS_TERR_RESOURCES_TMP is a transient staging table owned by the OSM schema within the AS – Sales Foundation product family of Oracle E-Business Suite (documented across 12.1.1 and 12.2.2). Per the ETRM metadata, its stated purpose is to "hold territory assignment results." In practice, the table acts as an intermediate landing zone used by the Territory Assignment and Resources engine: the territory assignment batch process evaluates customer parties, party sites, and leads against defined territory rules in JTF_TERR_ALL, resolves the qualifying sales resources and resource groups, and writes the candidate rows into this temporary table before they are promoted into the permanent territory resource assignments. Because the contents are scoped to a single concurrent program run, it is an ephemeral, run-scoped structure rather than a durable master or transactional entity.
From a Data Vault modeling perspective, the heuristic classification mined from the foreign key structure is link. This is consistent with the table's role: it captures relationships between parties, party sites, leads, territories, resources, and resource groups rather than storing descriptive attributes about any single business entity.
Key Information Stored
The table comprises 13 documented columns. The most significant are:
- TERR_ID – The territory identifier from JTF_TERR_ALL; identifies which territory produced the assignment result.
- RESOURCE_ID – The sales resource (from JTF_RS_RESOURCE_EXTNS) assigned by the territory.
- RESOURCE_TYPE – Qualifies whether the assignment is to an individual resource or a group.
- RESOURCE_GROUP_ID – The resource group (from JTF_RS_GROUPS_B) when the territory resolves to a group rather than an individual.
- PARTY_ID – The customer party (from HZ_PARTIES) to which the assignment applies.
- PARTY_SITE_ID – The specific party site (from HZ_PARTY_SITES) in scope.
- LEAD_ID – The lead (from AS_LEADS_ALL) being assigned when the run processes lead records.
- FULL_ACCESS_FLAG – Indicates whether the resource receives full access versus constrained access to the matched entity.
- REQUEST_ID – The concurrent request that generated the row, enabling results to be isolated per run.
- PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE – Standard concurrent program audit columns recording which program produced the row and when.
- SECURITY_GROUP_ID – The multi-tenant security group (from FND_SECURITY_GROUPS) under which the row was written.
The documented unique index AS_TERR_RESOURCES_TMP_U1 spans (TERR_ID, RESOURCE_ID, RESOURCE_GROUP_ID, PARTY_ID, PARTY_SITE_ID, LEAD_ID), making this composite the business-key candidate. The metadata does not document a separate single-column surrogate primary key.
Common Use Cases and Queries
Typical uses are diagnostic and reconciliation-oriented. Administrators inspect the temporary results of a territory assignment run before or after promotion, verify that a specific party or lead was correctly matched, and troubleshoot missing or duplicate assignments.
- Review the outcome of the most recent run: SELECT * FROM AS_TERR_RESOURCES_TMP WHERE REQUEST_ID = :request_id;
- Check assignments for a given party: SELECT TERR_ID, RESOURCE_ID, RESOURCE_GROUP_ID, FULL_ACCESS_FLAG FROM AS_TERR_RESOURCES_TMP WHERE PARTY_ID = :party_id;
- Reconcile against territories by joining TERR_ID to JTF_TERR_ALL.
- Audit resource-level coverage by grouping on RESOURCE_ID and RESOURCE_GROUP_ID.
- Validate run completeness using PROGRAM_UPDATE_DATE and REQUEST_ID.
Because rows are run-scoped, queries should always filter by REQUEST_ID to avoid mixing results from concurrent executions.
Related Objects
The documented foreign keys establish these principal dependencies:
- JTF_TERR_ALL via TERR_ID – the territory definition.
- JTF_RS_RESOURCE_EXTNS via RESOURCE_ID – the assigned sales resource.
- JTF_RS_GROUPS_B via RESOURCE_GROUP_ID – the assigned resource group.
- HZ_PARTIES via PARTY_ID – the customer party.
- HZ_PARTY_SITES via PARTY_SITE_ID – the party site.
- AS_LEADS_ALL via LEAD_ID – the lead record.
- FND_SECURITY_GROUPS via SECURITY_GROUP_ID – the security group context.
Taken together, these relationships confirm AS_TERR_RESOURCES_TMP as the link table bridging territory definitions, resources, and the parties, sites, and leads they are assigned to.
-
Table: AS_TERR_RESOURCES_TMP
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_TERR_RESOURCES_TMP, object_name:AS_TERR_RESOURCES_TMP, status:VALID, product: AS - Sales Foundation , description: Hold territory assignment results. , implementation_dba_data: OSM.AS_TERR_RESOURCES_TMP ,
-
Table: AS_TERR_RESOURCES_TMP
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_TERR_RESOURCES_TMP, object_name:AS_TERR_RESOURCES_TMP, status:VALID, product: AS - Sales Foundation , description: Hold territory assignment results. , implementation_dba_data: OSM.AS_TERR_RESOURCES_TMP ,
-
SYNONYM: APPS.AS_TERR_RESOURCES_TMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AS_TERR_RESOURCES_TMP, status:VALID,
-
VIEW: OSM.AS_TERR_RESOURCES_TMP#
12.2.2
owner:OSM, object_type:VIEW, object_name:AS_TERR_RESOURCES_TMP#, status:VALID,
-
VIEW: OSM.AS_TERR_RESOURCES_TMP#
12.2.2
-
SYNONYM: APPS.AS_TERR_RESOURCES_TMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AS_TERR_RESOURCES_TMP, status:VALID,
-
TABLE: OSM.AS_TERR_RESOURCES_TMP
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_TERR_RESOURCES_TMP, object_name:AS_TERR_RESOURCES_TMP, status:VALID,
-
TABLE: OSM.AS_TERR_RESOURCES_TMP
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_TERR_RESOURCES_TMP, object_name:AS_TERR_RESOURCES_TMP, status:VALID,
-
PACKAGE BODY: APPS.AS_ATA_NEW_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AS_ATA_NEW_PUB, status:VALID,
-
PACKAGE BODY: APPS.AS_ATA_TOTAL_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AS_ATA_TOTAL_PUB, status:VALID,
-
PACKAGE BODY: APPS.AS_GAR_ACCOUNTS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AS_GAR_ACCOUNTS_PUB, status:VALID,
-
PACKAGE BODY: APPS.AS_ATA_TOTAL_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AS_ATA_TOTAL_PUB, status:VALID,
-
Table: AS_LEADS_ALL
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_ALL, object_name:AS_LEADS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds sales opportunities , implementation_dba_data: OSM.AS_LEADS_ALL ,
-
PACKAGE BODY: APPS.AS_GAR_ACCOUNTS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AS_GAR_ACCOUNTS_PUB, status:VALID,
-
PACKAGE BODY: APPS.AS_ATA_NEW_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AS_ATA_NEW_PUB, status:VALID,
-
Table: JTF_TERR_ALL
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_TERR_ALL, object_name:JTF_TERR_ALL, status:VALID, product: JTF - CRM Foundation , description: Stores the definition of the territories. There are 3 categories of territories, Standard, Escalation and Template. Information stored in this table also includes comment about this territory, effective dates, and what type of territory it , implementation_dba_data: JTF.JTF_TERR_ALL ,
-
Table: JTF_RS_GROUPS_B
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_RS_GROUPS_B, object_name:JTF_RS_GROUPS_B, status:VALID, product: JTF - CRM Foundation , description: Base Table JTF_RS_GROUPS_B stores general information about a given Group. , implementation_dba_data: JTF.JTF_RS_GROUPS_B ,
-
APPS.AS_ATA_TOTAL_PUB SQL Statements
12.1.1
-
Table: JTF_TERR_ALL
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_TERR_ALL, object_name:JTF_TERR_ALL, status:VALID, product: JTF - CRM Foundation , description: Stores the definition of the territories. There are 3 categories of territories, Standard, Escalation and Template. Information stored in this table also includes comment about this territory, effective dates, and what type of territory it , implementation_dba_data: JTF.JTF_TERR_ALL ,
-
Table: AS_LEADS_ALL
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_ALL, object_name:AS_LEADS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds sales opportunities , implementation_dba_data: OSM.AS_LEADS_ALL ,
-
APPS.AS_ATA_TOTAL_PUB SQL Statements
12.2.2
-
Table: JTF_RS_GROUPS_B
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_RS_GROUPS_B, object_name:JTF_RS_GROUPS_B, status:VALID, product: JTF - CRM Foundation , description: Base Table JTF_RS_GROUPS_B stores general information about a given Group. , implementation_dba_data: JTF.JTF_RS_GROUPS_B ,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
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.2.2 FND Design Data
12.2.2
-
APPS.AS_ATA_NEW_PUB SQL Statements
12.1.1
-
APPS.AS_ATA_NEW_PUB SQL Statements
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
Table: JTF_RS_RESOURCE_EXTNS
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_RS_RESOURCE_EXTNS, object_name:JTF_RS_RESOURCE_EXTNS, status:VALID, product: JTF - CRM Foundation , description: This is table stores all important information about Resources. These Resources are coming from HR or HZ or Vonder table etc. Primary key is resource_id. Resource_number, user_id sre also unique keys. , implementation_dba_data: JTF.JTF_RS_RESOURCE_EXTNS ,
-
PACKAGE BODY: APPS.AS_ATA_TOTAL_PUB
12.1.1
-
PACKAGE BODY: APPS.AS_ATA_TOTAL_PUB
12.2.2
-
Table: JTF_RS_RESOURCE_EXTNS
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_RS_RESOURCE_EXTNS, object_name:JTF_RS_RESOURCE_EXTNS, status:VALID, product: JTF - CRM Foundation , description: This is table stores all important information about Resources. These Resources are coming from HR or HZ or Vonder table etc. Primary key is resource_id. Resource_number, user_id sre also unique keys. , implementation_dba_data: JTF.JTF_RS_RESOURCE_EXTNS ,
-
Table: HZ_PARTY_SITES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTY_SITES, object_name:HZ_PARTY_SITES, status:VALID, product: AR - Receivables , description: Links party to physical locations , implementation_dba_data: AR.HZ_PARTY_SITES ,
-
Table: HZ_PARTY_SITES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTY_SITES, object_name:HZ_PARTY_SITES, status:VALID, product: AR - Receivables , description: Links party to physical locations , implementation_dba_data: AR.HZ_PARTY_SITES ,
-
PACKAGE BODY: APPS.AS_ATA_NEW_PUB
12.1.1
-
PACKAGE BODY: APPS.AS_ATA_NEW_PUB
12.2.2
-
APPS.AS_ATA_NEW_PUB dependencies on AS_TERR_RESOURCES_TMP
12.2.2
-
APPS.AS_GAR_ACCOUNTS_PUB dependencies on AS_TERR_RESOURCES_TMP
12.2.2
-
APPS.AS_ATA_NEW_PUB dependencies on AS_TERR_RESOURCES_TMP
12.1.1
-
APPS.AS_ATA_TOTAL_PUB dependencies on AS_TERR_RESOURCES_TMP
12.1.1
-
APPS.AS_ATA_TOTAL_PUB dependencies on AS_TERR_RESOURCES_TMP
12.2.2
-
APPS.AS_GAR_ACCOUNTS_PUB dependencies on AS_TERR_RESOURCES_TMP
12.1.1
-
Table: HZ_PARTIES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTIES, object_name:HZ_PARTIES, status:VALID, product: AR - Receivables , description: Information about parties such as organizations, people, and groups , implementation_dba_data: AR.HZ_PARTIES ,
-
Table: HZ_PARTIES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTIES, object_name:HZ_PARTIES, status:VALID, product: AR - Receivables , description: Information about parties such as organizations, people, and groups , implementation_dba_data: AR.HZ_PARTIES ,