Results for “okx_product_lines_v”
32 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
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
Contract lines
APPS.OKX_PRODUCT_LINES_V·↳ OKC_K_ITEMS·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·Explore OKX module →
-
View: OKX_PRODUCT_LINES_V 12.1.1
Contract lines
APPS.OKX_PRODUCT_LINES_V·↳ OKC_K_ITEMS·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·Explore OKX module →
-
12.1.1 FND Design Data 12.1.1
-
12.2.2 FND Design Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
SYNONYM: APPS.OKC_K_LINES_TL 12.1.1
-
SYNONYM: APPS.OKC_K_LINES_TL 12.2.2
-
SYNONYM: APPS.OKC_K_ITEMS 12.1.1
-
SYNONYM: APPS.OKC_K_ITEMS 12.2.2
-
SYNONYM: APPS.OKC_K_LINES_B 12.2.2
-
SYNONYM: APPS.OKC_K_LINES_B 12.1.1
-
eTRM - OKX Tables and Views 12.2.2
-
eTRM - OKX Tables and Views 12.1.1
-
eTRM - OKX Tables and Views 12.1.1
-
eTRM - OKX Tables and Views 12.2.2
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1