Search Results ra_salesrep_territories
Overview
The RA_SALESREP_TERRITORIES table is a core data object within the Oracle E-Business Suite (EBS) Receivables (AR) module. It functions as a junction or intersection table, establishing and maintaining the many-to-many relationships between sales representatives (salesreps) and sales territories. Its primary role is to define which salespeople are authorized to operate within specific geographical or organizational territories. This assignment is critical for downstream business processes, including transaction processing, revenue recognition, and sales performance reporting, as it ensures accurate territory-based accountability and commission calculations. The table's design, with its unique and primary key constraints, enforces data integrity by preventing duplicate assignments and ensuring each relationship is uniquely identified.
Key Information Stored
The table's structure is focused on linking identifiers. The central columns are the foreign keys that create the relationship: SALESREP_ID and TERRITORY_ID. These columns reference the RA_SALESREPS_ALL and RA_TERRITORIES tables, respectively. The table's primary technical identifier is the SALESREP_TERRITORY_ID column, which holds a unique system-generated key for each assignment record. This surrogate key is the table's primary key (RA_SALESREP_TERRITORIES_PK). The combination of SALESREP_ID and TERRITORY_ID is also enforced as a unique constraint (RA_SALESREP_TERRITORIES_UK1), guaranteeing that a salesperson cannot be assigned to the same territory more than once.
Common Use Cases and Queries
This table is essential for queries that determine a salesperson's authorized operational scope or list all representatives within a given territory. A common reporting use case is generating territory coverage reports for sales management. For system integrations or data validation, one might query for assignments that lack a valid parent record. Sample SQL patterns include retrieving all territories for a specific sales representative or identifying all sales reps assigned to a particular territory, often joining to the related tables for descriptive names.
- Fetching a sales rep's territories:
SELECT rt.NAME FROM ra_salesrep_territories rst, ra_territories rt WHERE rst.territory_id = rt.territory_id AND rst.salesrep_id = :rep_id; - Validating assignment integrity:
SELECT rst.salesrep_territory_id FROM ra_salesrep_territories rst WHERE NOT EXISTS (SELECT 1 FROM ra_salesreps_all rs WHERE rs.salesrep_id = rst.salesrep_id);
Related Objects
RA_SALESREP_TERRITORIES is centrally connected to two master tables via foreign key relationships, forming a critical part of the Receivables data model.
- RA_SALESREPS_ALL: The foreign key on the SALESREP_ID column ensures every assignment is linked to a valid salesperson defined in this master table.
- RA_TERRITORIES: The foreign key on the TERRITORY_ID column ensures every assignment references a valid territory defined in this master table.
These relationships are foundational. The table may also be referenced by various Receivables views, transaction tables (like RA_CUSTOMER_TRX_ALL), and commission calculation engines that rely on the salesrep-territory association.
-
Table: RA_SALESREP_TERRITORIES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_SALESREP_TERRITORIES, object_name:RA_SALESREP_TERRITORIES, status:VALID, product: AR - Receivables , description: Territory information for salespeople , implementation_dba_data: AR.RA_SALESREP_TERRITORIES ,
-
Table: RA_SALESREP_TERRITORIES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_SALESREP_TERRITORIES, object_name:RA_SALESREP_TERRITORIES, status:VALID, product: AR - Receivables , description: Territory information for salespeople , implementation_dba_data: AR.RA_SALESREP_TERRITORIES ,
-
APPS.AR_DEPOSIT_LIB_PVT dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.JTF_RS_RESOURCE_UTL_PUB dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.GMF_AR_GET_SREP_TERRITORIES dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
APPS.OKL_ASSET_SUBSIDY_PVT dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.AR_INVOICE_UTILS dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.OE_INVOICE_PUB dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
APPS.AR_INVOICE_UTILS dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
APPS.GMF_AR_GET_SREP_TERRITORIES dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.OE_INVOICE_PUB dependencies on RA_SALESREP_TERRITORIES
12.1.1
-
APPS.AR_DEPOSIT_LIB_PVT dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
APPS.JTF_RS_RESOURCE_UTL_PUB dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
APPS.OKL_ASSET_SUBSIDY_PVT dependencies on RA_SALESREP_TERRITORIES
12.2.2
-
VIEW: AR.RA_SALESREP_TERRITORIES#
12.2.2
owner:AR, object_type:VIEW, object_name:RA_SALESREP_TERRITORIES#, status:VALID,
-
VIEW: APPS.RA_SALESREP_TERRITORIES_DFV
12.1.1
-
VIEW: APPS.RA_SALESREP_TERRITORIES_DFV
12.2.2
-
SYNONYM: APPS.RA_SALESREP_TERRITORIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_SALESREP_TERRITORIES, status:VALID,
-
VIEW: APPS.JTF_RS_SRP_TERRITORIES_V
12.2.2
-
VIEW: APPS.JTF_RS_SRP_TERRITORIES_V
12.1.1
-
SYNONYM: APPS.RA_SALESREP_TERRITORIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_SALESREP_TERRITORIES, status:VALID,
-
View: JTF_RS_SRP_TERRITORIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_RS_SRP_TERRITORIES_V, object_name:JTF_RS_SRP_TERRITORIES_V, status:VALID, product: JTF - CRM Foundation , description: View that points to RA_SALESREP_TERRITORIES , implementation_dba_data: APPS.JTF_RS_SRP_TERRITORIES_V ,
-
View: JTF_RS_SRP_TERRITORIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_RS_SRP_TERRITORIES_V, object_name:JTF_RS_SRP_TERRITORIES_V, status:VALID, product: JTF - CRM Foundation , description: View that points to RA_SALESREP_TERRITORIES , implementation_dba_data: APPS.JTF_RS_SRP_TERRITORIES_V ,
-
VIEW: AR.RA_SALESREP_TERRITORIES#
12.2.2
-
Table: RA_TERRITORIES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERRITORIES, object_name:RA_TERRITORIES, status:VALID, product: AR - Receivables , description: Territory information , implementation_dba_data: AR.RA_TERRITORIES ,
-
VIEW: APPS.JTF_RS_SRP_TERRITORIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_RS_SRP_TERRITORIES_V, object_name:JTF_RS_SRP_TERRITORIES_V, status:VALID,
-
VIEW: APPS.JTF_RS_SRP_TERRITORIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_RS_SRP_TERRITORIES_V, object_name:JTF_RS_SRP_TERRITORIES_V, status:VALID,
-
TABLE: AR.RA_SALESREP_TERRITORIES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_SALESREP_TERRITORIES, object_name:RA_SALESREP_TERRITORIES, status:VALID,
-
TABLE: AR.RA_SALESREP_TERRITORIES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_SALESREP_TERRITORIES, object_name:RA_SALESREP_TERRITORIES, status:VALID,
-
APPS.GMF_AR_GET_SREP_TERRITORIES dependencies on RA_TERRITORIES
12.1.1
-
APPS.OKL_ASSET_SUBSIDY_PVT dependencies on OKC_CONTACTS
12.1.1
-
APPS.OKL_ASSET_SUBSIDY_PVT dependencies on OKC_CONTACTS
12.2.2
-
Table: RA_TERRITORIES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERRITORIES, object_name:RA_TERRITORIES, status:VALID, product: AR - Receivables , description: Territory information , implementation_dba_data: AR.RA_TERRITORIES ,
-
APPS.GMF_AR_GET_SREP_TERRITORIES dependencies on RA_TERRITORIES
12.2.2
-
PACKAGE BODY: APPS.GMF_AR_GET_SREP_TERRITORIES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GMF_AR_GET_SREP_TERRITORIES, status:VALID,
-
PACKAGE BODY: APPS.GMF_AR_GET_SREP_TERRITORIES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMF_AR_GET_SREP_TERRITORIES, status:VALID,
-
VIEW: APPS.RA_SALESREP_TERRITORIES_DFV
12.1.1
owner:APPS, object_type:VIEW, object_name:RA_SALESREP_TERRITORIES_DFV, status:VALID,
-
VIEW: APPS.RA_SALESREP_TERRITORIES_DFV
12.2.2
owner:APPS, object_type:VIEW, object_name:RA_SALESREP_TERRITORIES_DFV, status:VALID,
-
Table: RA_SALESREPS_ALL
12.2.2
product: AR - Receivables , description: Information about salespeople , implementation_dba_data: Not implemented in this database ,
-
PACKAGE BODY: APPS.JTF_RS_RESOURCE_UTL_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:JTF_RS_RESOURCE_UTL_PUB, status:VALID,
-
APPS.GMF_AR_GET_SREP_TERRITORIES SQL Statements
12.2.2
-
PACKAGE BODY: APPS.JTF_RS_RESOURCE_UTL_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JTF_RS_RESOURCE_UTL_PUB, status:VALID,
-
Table: RA_SALESREPS_ALL
12.1.1
product: AR - Receivables , description: Information about salespeople , implementation_dba_data: Not implemented in this database ,
-
APPS.GMF_AR_GET_SREP_TERRITORIES SQL Statements
12.1.1
-
APPS.JTF_RS_RESOURCE_UTL_PUB SQL Statements
12.1.1
-
APPS.JTF_RS_RESOURCE_UTL_PUB SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AR_DEPOSIT_LIB_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_DEPOSIT_LIB_PVT, status:VALID,
-
PACKAGE BODY: APPS.AR_DEPOSIT_LIB_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_DEPOSIT_LIB_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASSET_SUBSIDY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASSET_SUBSIDY_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASSET_SUBSIDY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASSET_SUBSIDY_PVT, status:VALID,