Search Results lty_code
Overview
OKX_PRODUCT_LINES_V is a reporting and integration view owned by the APPS schema in Oracle E-Business Suite, assigned to the OKX – Contracts Integration product. Its documented purpose is to expose "Contract lines" in a denormalized form suitable for downstream consumption by contracts integration flows and operational reporting. The view consolidates contract line attributes, line-style attributes, and inventory item details into a single flat row per contract line item, allowing consumers to retrieve pricing, item, quantity, and status information without navigating the normalized OKC contract schema directly.
The view is particularly relevant when searching for lty_code. LTY_CODE is a column physically defined on OKC_LINE_STYLES_B and is surfaced directly through this view, making it the canonical access point for line-type classification on OKX contract lines.
Underlying Base Objects
The ETRM 12.2.2 metadata documents the following referenced base objects, all resolved as APPS synonyms except where noted:
- OKC_K_LINES_B – the contract lines base table, aliased B. Supplies line identifiers, line numbers, dates, and the line-style foreign key (LSE_ID).
- OKC_K_LINES_TL – the translated lines table, aliased TL. Supplies language-dependent NAME and ITEM_DESCRIPTION values, joined on ID and USERENV('LANG').
- OKC_LINE_STYLES_B – the line styles base table, aliased LS. Supplies LTY_CODE, LSE_TYPE, and LSE_PARENT_ID, joined on LS.ID = B.LSE_ID.
- OKC_K_ITEMS – the contract line items table, aliased CIM. Joins on CLE_ID = B.ID and JTOT_OBJECT1_CODE = 'OKX_LICPROD', supplying item identifiers, quantity, and unit of measure.
- OKX_SYSTEM_ITEMS_V – a view, aliased SI. Resolves item names and descriptions against OBJECT1_ID1 / OBJECT1_ID2.
The joins are inner joins throughout, so a contract line appears only when a matching translated line, line style, licensed-product item, and system item all exist.
Key Columns
- ID1 / ID2 – ID1 carries B.ID (the contract line identifier); ID2 is a constant '#'.
- LTY_CODE – the line type code derived from OKC_LINE_STYLES_B, the primary line classification attribute.
- LSE_TYPE / LSE_PARENT_ID – the line style type and its parent hierarchy reference.
- NAME, DESCRIPTION, ITEM_DESCRIPTION, COMMENTS – descriptive text, with NAME resolved from the translated line or system item.
- CHR_ID / DNZ_CHR_ID – contract header identifiers linking the line to its parent contract.
- LINE_NUMBER, START_DATE_ACTIVE, END_DATE_ACTIVE, DATE_TERMINATED – line sequencing and effective dating.
- STATUS – a derived DECODE returning 'A' (active) or 'I' (inactive) based on SYSDATE against the start and end dates.
- INVENTORY_ITEM_ID, ORGANIZATION_ID, QUANTITY, UNIT_OF_MEASURE_CODE, ITEM_NAME – inventory item context, with '#' in OBJECT1_ID2 normalized to –99 for ORGANIZATION_ID.
- PRIMARY_UOM_CODE – exposed as NULL.
Common Use Cases and Queries
Typical usage includes reporting contract lines by line type, auditing active versus inactive lines, and feeding integration processes that require item and quantity details per contract line. To retrieve lines filtered by line type code:
SELECT lty_code, line_number, name, quantity, unit_of_measure_code, status FROM okx_product_lines_v WHERE lty_code = :p_lty_code;SELECT chr_id, line_number, inventory_item_id, quantity FROM okx_product_lines_v WHERE status = 'A' ORDER BY chr_id, line_number;SELECT lty_code, COUNT(*) FROM okx_product_lines_v GROUP BY lty_code;
Users should note the inner joins and the OKX_LICPROD restriction: only licensed-product contract lines are returned, and any missing style or item reference will exclude the row entirely.
-
View: OKX_PRODUCT_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PRODUCT_LINES_V, object_name:OKX_PRODUCT_LINES_V, status:VALID, product: OKX - Contracts Integration , description: Contract lines , implementation_dba_data: APPS.OKX_PRODUCT_LINES_V ,
-
View: OKX_MODEL_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_MODEL_LINES_V, object_name:OKX_MODEL_LINES_V, status:VALID, product: OKX - Contracts Integration , description: View on Oracle Contracts for Lease, 'LEASE' contract model line , implementation_dba_data: APPS.OKX_MODEL_LINES_V ,
-
View: OKX_COVERED_ASSET_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COVERED_ASSET_V, object_name:OKX_COVERED_ASSET_V, status:VALID, product: OKX - Contracts Integration , description: This view stores information about financial asset lines , implementation_dba_data: APPS.OKX_COVERED_ASSET_V ,
-
View: OKX_COVERED_ASSET_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COVERED_ASSET_V, object_name:OKX_COVERED_ASSET_V, status:VALID, product: OKX - Contracts Integration , description: This view stores information about financial asset lines , implementation_dba_data: APPS.OKX_COVERED_ASSET_V ,
-
View: OKX_PRODUCT_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PRODUCT_LINES_V, object_name:OKX_PRODUCT_LINES_V, status:VALID, product: OKX - Contracts Integration , description: Contract lines , implementation_dba_data: APPS.OKX_PRODUCT_LINES_V ,
-
View: OKX_MODEL_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_MODEL_LINES_V, object_name:OKX_MODEL_LINES_V, status:VALID, product: OKX - Contracts Integration , description: View on Oracle Contracts for Lease, 'LEASE' contract model line , implementation_dba_data: APPS.OKX_MODEL_LINES_V ,
-
View: OKX_ASSET_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ASSET_LINES_V, object_name:OKX_ASSET_LINES_V, status:VALID, product: OKX - Contracts Integration , description: This View is based on fixed asset line of Oracle Contracts for Lease contracts. Fixed asset line points to a fixed asset in Oracle Fixed Asset , implementation_dba_data: APPS.OKX_ASSET_LINES_V ,
-
View: OKX_ASSET_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ASSET_LINES_V, object_name:OKX_ASSET_LINES_V, status:VALID, product: OKX - Contracts Integration , description: This View is based on fixed asset line of Oracle Contracts for Lease contracts. Fixed asset line points to a fixed asset in Oracle Fixed Asset , implementation_dba_data: APPS.OKX_ASSET_LINES_V ,
-
View: OKX_ITEM_INSTS_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ITEM_INSTS_LINES_V, object_name:OKX_ITEM_INSTS_LINES_V, status:VALID, product: OKX - Contracts Integration , description: View on Installed base item instance line of Oracle Lease management lease contract. This line points to an item instance (instance_id ) in IB , implementation_dba_data: APPS.OKX_ITEM_INSTS_LINES_V ,
-
View: OKX_ITEM_INSTS_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ITEM_INSTS_LINES_V, object_name:OKX_ITEM_INSTS_LINES_V, status:VALID, product: OKX - Contracts Integration , description: View on Installed base item instance line of Oracle Lease management lease contract. This line points to an item instance (instance_id ) in IB , implementation_dba_data: APPS.OKX_ITEM_INSTS_LINES_V ,