Results for “enable_contract_terms_yn”

6 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

OKC_BUS_DOC_TYPES_B is a foundational setup table in the Oracle Contracts Core (OKC) module. It stores all business document types and the associated preferences that govern how each document type behaves during Contract authoring. Each product team that integrates with Oracle Contracts—such as Purchasing, Sales, or Project Contracts—seeds rows into this table to register the document types it supports and to control the behavior of those documents within theContracts user interface and processing engine.

The table functions as a reference and configuration hub. It does not store transactional contract data; rather, it defines the metadata that drives contract creation, amendment, attachment handling, approval routing, and UI rendering. The documented physical schema in ETRM 12.2.2 shows 47 columns owned by the OKC schema, and the primary key is OKC_BUS_DOC_TYPES_B_PK on the DOCUMENT_TYPE column. A unique index, OKC_BUS_DOC_TYPES_B_U1, exists on (DOCUMENT_TYPE, ZD_EDITION_NAME). Based on the foreign key relationships mined from the ETRM metadata, this table behaves as a Data Vault hub—a natural modeling suggestion given that it holds the business key (DOCUMENT_TYPE) and is referenced by numerous downstream tables.

Key Information Stored

The table’s most consequential columns fall into several functional groups:

The surrogate primary key is DOCUMENT_TYPE, and the unique index OKC_BUS_DOC_TYPES_B_U1 on (DOCUMENT_TYPE, ZD_EDITION_NAME) serves as the business-key candidate.

Common Use Cases and Queries

Typical usage includes identifying which document types are enabled for a given application, determining whether a document type permits amendments or attachments, and retrieving the workflow names associated with a document type. A common query joins this table to FND_APPLICATION to report document types by application:

  • SELECT bdt.document_type, bdt.document_type_class, app.application_name FROM okc_bus_doc_types_b bdt, fnd_application app WHERE bdt.application_id = app.application_id;

Another frequent pattern filters by feature flags, for example to list document types where attachments are enabled: WHERE enable_attachments_yn = 'Y'. Reporting on active configurations uses the START_DATE and END_DATE columns to restrict results to the currently effective set of document types.

Related Objects

The ETRM metadata documents the following significant relationships, all keyed on DOCUMENT_TYPE (or its variants):

These relationships confirm that OKC_BUS_DOC_TYPES_B is a central reference point that many Contract authoring and template features depend upon.