Search Results okc_rep_contract_rels
Overview
The OKC_REP_CONTRACT_RELS table is a core data repository within the Oracle E-Business Suite Contracts Core (OKC) module. Its primary function is to store and manage explicit, user-defined relationships between different contract documents in the system. This table is essential for establishing a structured hierarchy and network of contracts, enabling complex business scenarios where one contract may be a renewal, amendment, master agreement, or exhibit of another. By maintaining these relationships, the module supports comprehensive contract lifecycle management, reporting, and analysis, ensuring that the connections between related legal documents are formally tracked and auditable.
Key Information Stored
The table's structure is designed to capture the essential elements of a contract-to-contract relationship. The primary identifier is the system-generated CONTRACT_RELATIONSHIP_ID. The core relationship is defined by two key foreign key columns: CONTRACT_ID and RELATED_CONTRACT_ID, which store the identifiers of the two linked contracts from the OKC_REP_CONTRACTS_ALL table. The nature of the link is defined by the RELATED_CONTRACT_ROLE column, which specifies the role (e.g., "Renewal," "Amendment") that the RELATED_CONTRACT_ID plays relative to the CONTRACT_ID. Additionally, the RELATIONSHIP_TYPE_ID provides a foreign key link for further categorization or validation of the relationship type, though its specific reference table is not detailed in the provided metadata.
Common Use Cases and Queries
A primary use case is generating reports on contract hierarchies, such as listing all amendments or renewals for a specific master agreement. Support teams often query this table to understand the full context of a contract during troubleshooting or audit requests. A typical SQL pattern retrieves all related contracts for a given document:
- SELECT rel.related_contract_role, rc.contract_number FROM okc_rep_contract_rels rel, okc_rep_contracts_all rc WHERE rel.related_contract_id = rc.contract_id AND rel.contract_id = :p_contract_id;
Conversely, to find all contracts where a specific document plays a subordinate role:
- SELECT rel.related_contract_role, rc.contract_number FROM okc_rep_contract_rels rel, okc_rep_contracts_all rc WHERE rel.contract_id = rc.contract_id AND rel.related_contract_id = :p_contract_id;
Data integrity checks are also common, such as identifying orphaned relationships where one of the referenced contracts no longer exists.
Related Objects
OKC_REP_CONTRACT_RELS is centrally linked to the primary contract repository, OKC_REP_CONTRACTS_ALL, through two foreign key constraints on the CONTRACT_ID and RELATED_CONTRACT_ID columns. This ensures that relationships can only be established between valid contract records. The table's primary key constraint is OKC_REP_CONTRACT_RELS_PK on CONTRACT_RELATIONSHIP_ID. While not fully detailed in the excerpt, the RELATIONSHIP_TYPE_ID column implies a dependency on another lookup or definition table that governs allowable relationship types. This table is foundational for any reporting view or API within the Contracts Core module that needs to traverse or display contract relationships.
-
Table: OKC_REP_CONTRACT_RELS
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID, product: OKC - Contracts Core , description: Stores the relationship between two contracts. The two related contracts are CONTRACT_ID and RELATED_CONTRACT_ID. RELATED_CONTRACT_ROLE is the role of contract RELATED_CONTRACT_ID. , implementation_dba_data: OKC.OKC_REP_CONTRACT_RELS ,
-
Table: OKC_REP_CONTRACT_RELS
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID, product: OKC - Contracts Core , description: This table stores a relationship between two contracts that are created in Repository. , implementation_dba_data: OKC.OKC_REP_CONTRACT_RELS ,
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_RELS
12.2.2
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_CONTRACT_RELS
12.1.1
-
VIEW: OKC.OKC_REP_CONTRACT_RELS#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_REP_CONTRACT_RELS#, status:VALID,
-
Table: OKC_REP_CONTRACTS_ALL
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACTS_ALL, object_name:OKC_REP_CONTRACTS_ALL, status:VALID, product: OKC - Contracts Core , description: This table is the main Contracts table. This table stores the latest version of all contracts authored in Contract Repository. , implementation_dba_data: OKC.OKC_REP_CONTRACTS_ALL ,
-
SYNONYM: APPS.OKC_REP_CONTRACT_RELS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
SYNONYM: APPS.OKC_REP_CONTRACT_RELS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
VIEW: OKC.OKC_REP_CONTRACT_RELS#
12.2.2
-
TABLE: OKC.OKC_REP_CONTRACT_RELS
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
Table: OKC_REP_CONTRACTS_ALL
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACTS_ALL, object_name:OKC_REP_CONTRACTS_ALL, status:VALID, product: OKC - Contracts Core , description: This is the main Contracts table. This table stores the latest version of all Repository-authored contracts. , implementation_dba_data: OKC.OKC_REP_CONTRACTS_ALL ,
-
Concurrent Program: OKCMIGCONRELATIONSCP
12.2.2
execution_filename: OKC_REP_CONTRACT_IMP_PVT.migrate_contract_relations , product: OKC - Contracts Core , user_name: Migration of Contract Relationships Data (12.2.2) , description: Migrates Contract Relationships Data from okc_rep_contract_rels table to okc_rep_contract_usages table (12.2.2) , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
TABLE: OKC.OKC_REP_CONTRACT_RELS
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACTS_ALL
12.2.2
-
Table: OKC_REP_RELATIONSHIPS_B
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_RELATIONSHIPS_B, object_name:OKC_REP_RELATIONSHIPS_B, status:VALID, product: OKC - Contracts Core , description: This table stores the seeded contract Relationships for Contract Repository. , implementation_dba_data: OKC.OKC_REP_RELATIONSHIPS_B ,
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on FND_FILE
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_USAGES
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_VERS
12.2.2
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_CONTRACT_IMP_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_PROCESS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_CONTRACT_PROCESS_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
APPS.OKC_REP_CONTRACT_IMP_PVT SQL Statements
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
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
-
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
-
PACKAGE: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
-
Foreign Keys
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT SQL Statements
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on STANDARD
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on FND_API
12.1.1
-
eTRM - OKC Tables and Views
12.1.1
description: Intersection entity between templates and rules. ,
-
eTRM - OKC Tables and Views
12.2.2
description: Intersection entity between rules and templates ,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_PROCESS_PVT
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - OKC Tables and Views
12.1.1
description: Intersection entity between templates and rules. ,
-
eTRM - OKC Tables and Views
12.2.2
description: Intersection entity between rules and templates ,