OKC_TEMPLATE_USAGES_H

This entity will contain relationship between template and document where it is used.

Details

  • Schema: FUSION

  • Object owner: OKC

  • Object type: TABLE

  • Tablespace: APPS_TS_TX_DATA

Primary Key

Name Columns

OKC_TEMPLATE_USAGES_H_PK

DOCUMENT_ID, DOCUMENT_TYPE, MAJOR_VERSION

Columns

Name Datatype Length Precision Not-null Comments
DOCUMENT_TYPE VARCHAR2 30 Yes Business document type. Foreign key to okc_bus_doc_types_b
DOCUMENT_ID NUMBER 18 Yes Business document header id. Foreign key to various business document header tables
MAJOR_VERSION NUMBER 18 Yes Major Version Number of the Template Usage
VERSION_TYPE VARCHAR2 1 Yes Version Type of the Object. It can have following values "C"urrent , "A"mendment and "H"istory.
AUTHORING_PARTY_CODE VARCHAR2 30 Yes Indicates which party of the contract was the author of the contract terms. Refers to the column OKC_RESP_PARTIES_B.RESP_PARTY_CODE.
CONTRACT_SOURCE_CODE VARCHAR2 30 Yes Indicates the current source of contract terms for the business document. Valid values are STRUCTURED, ATTACHED. Refers to the LOOKUP_CODE in FND_LOOKUPS where LOOKUP_TYPE=OKC_CONTRACT_TERMS_SOURCES
TEMPLATE_ID NUMBER Template used. Foreign key to okc_terms_templates_all
DOC_NUMBERING_SCHEME NUMBER Numbering scheme used in a document
DOCUMENT_NUMBER VARCHAR2 150 Business Document number for which Terms and Conditions exist in this table
ARTICLE_EFFECTIVE_DATE DATE Clause effectivity date that is used to filter clauses from library
APPROVAL_ABSTRACT_TEXT CLOB This is the textual content of the abstract that would be sent as part of deviation report during approval
AUTOGEN_DEVIATIONS_FLAG VARCHAR2 1 Flag to indicate if deviations should be autogenerated for this business document.
ORIG_SYSTEM_REFERENCE_CODE VARCHAR2 30 Original system reference code to indicate the original source
ORIG_SYSTEM_REFERENCE_ID1 NUMBER Identifier1 of the Original system reference code
ORIG_SYSTEM_REFERENCE_ID2 NUMBER Identifier2 of the Original system reference code
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.
SOURCE_CHANGE_ALLOWED_FLAG VARCHAR2 1 This flag is used to determine if contract source is allowed to be changed.
CONTRACT_ADMIN_ID NUMBER ID of the Contract Administrator. This is the Person_Id from the PER_ALL_PEOPLE table
LEGAL_CONTACT_ID NUMBER ID of the Legal Contact. This is the Person_Id from the Per_All_People table
LOCK_TERMS_FLAG VARCHAR2 1 Flag to indicate if the structured Terms are locked
ENABLE_REPORTING_FLAG VARCHAR2 1 Flag to indicate if the Structured Terms are to be used when the Contracts Terms are represented as Attached Document
LOCKED_BY_USER_ID NUMBER User_Id of the user locking the structured contract terms
EXPERT_LAST_RUN DATE Stores the time stamp when Contract Expert was last run.
PENDING_VARIABLES NUMBER Stores the number of unresolved user-defined variables in Contract Terms for a given business document like Purchase Order.
PRIMARY_DOC_MERGEABLE_FLAG VARCHAR2 1 When the Contract Source is Attached, stores if the attached document is mergeable - i.e. if the Attached Document was generated by Oracle Contracts originally.
TERMS_CONTENT_IN_HTML CLOB Stores the html content of the Terms and conditions pertaining to a Contract Template or a business document like Purchase Order.
TERMS_CONTENT_REFRESH_DATE DATE Stores the time stamp when the data in TERMS_CONTENT_IN_HTML was refreshed.
NONSTANDARD_CLAUSES NUMBER 9 This column stores the count of non-standard clauses in contract terms for a given business document like Purchase Order.
SIMPLE_CONTRACT_TEXT CLOB This column stores the HTML content of the simple contract terms
SIMPLE_CONTRACT_YN VARCHAR2 1 Flag to indicate whether contract is simple or not
SKIP_PRINT_AMENDMENTS_YN VARCHAR2 1 Flag to indicate whether to print amendment summary in preview or not

Foreign Keys

Table Foreign Table Foreign Key Column
OKC_TEMPLATE_USAGES_H okc_bus_doc_types_b DOCUMENT_TYPE
OKC_TEMPLATE_USAGES_H okc_terms_templates_all TEMPLATE_ID

Indexes

Index Uniqueness Tablespace Columns
OKC_TEMPLATE_USAGES_H_N1 Non Unique Default TEMPLATE_ID
OKC_TEMPLATE_USAGES_H_U1 Unique Default DOCUMENT_ID, DOCUMENT_TYPE, MAJOR_VERSION