Search Results orig_system_source_code
Overview
OKC_K_LINES_V is a seeded, VALID view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the OKC — Contracts Core product. It presents contract line information maintained in the Contracts (OKC) module and functions as the principal read-only interface for contract line data in Oracle EBS 12.1.1 and 12.2.2. The view is defined over the contract line base table and its translation table, joining the two so that a single row exposes both transactional attributes (dates, prices, status, currency) and the descriptive, language-dependent text fields (name, comments, item description). Because it resolves the underlying _B and _TL objects into one flattened structure, it is the object most commonly referenced by reports, concurrent programs, Oracle Discoverer workbooks, and external integrations that need contract line detail without navigating the multi-table schema directly.
Underlying Base Objects
The documented metadata identifies the referenced base objects as OKC_K_LINES_B (SYNONYM) and OKC_K_LINES_TL (SYNONYM), which resolve to the APPS synonyms for OKC_CONTRACT_LINES_B and its translation table. The view joins the "B" (base) table and the "TL" (translation) table on the line identifier (CLE_ID) and on the line's language. The base table holds all transactional, numeric, and date columns, while the translation table supplies NAME, COMMENTS, ITEM_DESCRIPTION, BLOCK23TEXT, and the SFWT_FLAG. The view selects from CLEB (base) and CLET (translation) aliases and exposes the base table ROWID as ROW_ID. Only the currently effective translation row for the session language is returned, so callers see a single, denormalized record per contract line.
Key Columns
- ID / CLE_ID — Unique identifier of the contract line; CLE_ID is the primary key inherited from the base table.
- CHR_ID — Identifier of the parent contract header, used to relate lines back to the contract document.
- LINE_NUMBER, DISPLAY_SEQUENCE — Sequencing controls for presenting lines on the contract.
- NAME, ITEM_DESCRIPTION, COMMENTS — Descriptive text sourced from OKC_K_LINES_TL.
- STS_CODE, TRN_CODE — Line status and transaction codes governing lifecycle state.
- START_DATE, END_DATE, DATE_TERMINATED — Effective period and termination date of the line.
- PRICE_UNIT, PRICE_NEGOTIATED, PRICE_TYPE, CURRENCY_CODE — Pricing and currency information for the line.
- HIDDEN_IND, EXCEPTION_YN, TEMPLATE_USED — Flags controlling visibility, exception handling, and template origin.
- ATTRIBUTE_CATEGORY, ATTRIBUTE1–ATTRIBUTE15 — Descriptive flexfield segments for customer-defined data.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE — Standard EBS audit columns.
Common Use Cases and Queries
Typical reporting scenarios include listing all active lines for a contract, extracting priced lines by currency for financial reconciliation, and joining contract lines to headers for consolidated contract inventories.
SELECT l.chr_id,
l.line_number,
l.name,
l.sts_code,
l.start_date,
l.end_date,
l.price_negotiated,
l.currency_code
FROM okc_k_lines_v l
WHERE l.chr_id = :p_contract_id
AND l.sts_code = 'ACTIVE'
ORDER BY l.display_sequence;
Because the view is the documented access path for OKC_CONTRACT_LINES_B, integration extracts should select from OKC_K_LINES_V rather than the base tables, ensuring translation text and standard audit columns are returned consistently across both 12.1.1 and 12.2.2 environments.
-
View: OKC_K_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_LINES_V, object_name:OKC_K_LINES_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_CONTRACT_LINES_B , implementation_dba_data: APPS.OKC_K_LINES_V ,
-
View: OKC_K_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_LINES_V, object_name:OKC_K_LINES_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_CONTRACT_LINES_B , implementation_dba_data: APPS.OKC_K_LINES_V ,
-
View: OKC_K_LINES_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_LINES_HV, object_name:OKC_K_LINES_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_LINES. , implementation_dba_data: APPS.OKC_K_LINES_HV ,
-
View: OKC_K_LINES_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_LINES_HV, object_name:OKC_K_LINES_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_LINES. , implementation_dba_data: APPS.OKC_K_LINES_HV ,
-
View: OKC_K_HEADERS_ALL_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_ALL_HV, object_name:OKC_K_HEADERS_ALL_HV, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_K_HEADERS_ALL_HV ,
-
View: OKC_K_HEADERS_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_HV, object_name:OKC_K_HEADERS_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_HEADERS. , implementation_dba_data: APPS.OKC_K_HEADERS_HV ,
-
View: OKC_K_HEADERS_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_HV, object_name:OKC_K_HEADERS_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_HEADERS. , implementation_dba_data: APPS.OKC_K_HEADERS_HV ,
-
View: OKC_K_HEADERS_ALL_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_ALL_HV, object_name:OKC_K_HEADERS_ALL_HV, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_K_HEADERS_ALL_HV ,
-
View: OKC_KOL_CREATE_K_HDR_V
12.2.2
product: OKC - Contracts Core , description: View for table OKC_CONTRACT_HEADERS_B , implementation_dba_data: Not implemented in this database ,
-
View: OKC_KOL_CREATE_K_HDR_V
12.1.1
product: OKC - Contracts Core , description: View for table OKC_CONTRACT_HEADERS_B , implementation_dba_data: Not implemented in this database ,
-
View: OKC_GOVERNING_CONTRACT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_GOVERNING_CONTRACT_V, object_name:OKC_GOVERNING_CONTRACT_V, status:VALID, product: OKC - Contracts Core , description: This view contains the hierarchy of the sales contracts. This view has been obsoleted , implementation_dba_data: APPS.OKC_GOVERNING_CONTRACT_V ,
-
View: OKC_GOVERNING_CONTRACT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_GOVERNING_CONTRACT_V, object_name:OKC_GOVERNING_CONTRACT_V, status:VALID, product: OKC - Contracts Core , description: This view contains the hierarchy of the sales contracts. This view has been obsoleted , implementation_dba_data: APPS.OKC_GOVERNING_CONTRACT_V ,
-
View: OKC_K_HEADERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_V, object_name:OKC_K_HEADERS_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_CONTRACT_HEADERS_B , implementation_dba_data: APPS.OKC_K_HEADERS_V ,
-
View: OKC_K_HEADERS_ALL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_ALL_V, object_name:OKC_K_HEADERS_ALL_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_K_HEADERS_ALL_V ,
-
View: OKC_K_HEADERS_ALL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_ALL_V, object_name:OKC_K_HEADERS_ALL_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_K_HEADERS_ALL_V ,
-
View: OKC_K_HEADERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_HEADERS_V, object_name:OKC_K_HEADERS_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_CONTRACT_HEADERS_B , implementation_dba_data: APPS.OKC_K_HEADERS_V ,