Search Results okl_answers




Overview

The OKC_RULES_B table is a core data object within the Oracle E-Business Suite Contracts Core (OKC) module. It serves as the structured repository for the business rules and logic that define contract articles. While the description indicates it holds a "structured data representation of free format text contained in an ARTICLE," its role is more fundamental. This table stores the atomic rule definitions that govern contract behavior, such as pricing formulas, payment terms, service level agreements, and renewal conditions. These rules are the executable components assembled within contract articles, enabling the automation and enforcement of contractual terms across the Oracle EBS system.

Key Information Stored

The table's primary key is the ID column, uniquely identifying each rule instance. A critical structural column is RGP_ID, which is a foreign key to OKC_RULE_GROUPS_B. This relationship allows individual rules to be organized into logical groups within an article. The table also includes several columns (JTOT_OBJECT1_CODE, JTOT_OBJECT2_CODE, JTOT_OBJECT3_CODE) that reference the JTF_OBJECTS_B table. These columns are instrumental in defining the rule's context and the business objects it acts upon, such as a line item, a party, or the entire contract. Other typical columns (implied by standard OKC table design and foreign key relationships) would include attributes for rule sequencing, active dates, rule type classification, and the actual rule text or formula logic.

Common Use Cases and Queries

Primary use cases involve the creation, reporting, and troubleshooting of contract terms. Application developers and functional implementers utilize this table to understand how contractual logic is codified. Common analytical queries include listing all rules for a specific contract or article, identifying rules of a particular type, or tracing rule dependencies. A foundational query to retrieve core rule information would be:

  • SELECT rul.id, rul.rgp_id, rgp.name rule_group_name, rul.rule_text FROM okc_rules_b rul, okc_rule_groups_b rgp WHERE rul.rgp_id = rgp.id AND rgp.dnz_chr_id = <contract_id>;

This table is also central for data fixes, where incorrect rule logic needs to be updated directly in the database, and for impact analysis before modifying standard rule definitions.

Related Objects

As indicated by the foreign key metadata, OKC_RULES_B is a central hub with numerous dependencies. The OKC_RULE_GROUPS_B table is its direct parent, organizing rules. It is referenced as a parent key by several important tables across the Contracts, Service, and Financials families, demonstrating its integrative role:

This extensive referencing confirms that OKC_RULES_B stores foundational business logic consumed by multiple EBS product lines to execute contract-specific operations.

  • Table: OKC_RULES_B 12.2.2

    owner:OKC,  object_type:TABLE,  fnd_design_data:OKC.OKC_RULES_B,  object_name:OKC_RULES_B,  status:VALID,  product: OKC - Contracts Coredescription: Structured data representation of free format text contained in an ARTICLE. ,  implementation_dba_data: OKC.OKC_RULES_B

  • Table: OKC_RULES_B 12.1.1

    owner:OKC,  object_type:TABLE,  fnd_design_data:OKC.OKC_RULES_B,  object_name:OKC_RULES_B,  status:VALID,  product: OKC - Contracts Coredescription: Structured data representation of free format text contained in an ARTICLE. ,  implementation_dba_data: OKC.OKC_RULES_B