Search Results last_reading
Overview
APPS.OKL_CS_ASSET_COUNTERS_UV is a reporting view within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 ETRM (Enterprise Asset and Contract Management) schema. Its purpose is to present a consolidated, denormalized picture of asset-related counters associated with contract lines and fixed assets. Specifically, it joins contract header and line structures to item instances, counter definitions, counter readings, and fixed asset records, producing a single row per counter reading tied to an asset that is attached to a contract.
The "_UV" suffix conventionally indicates a "User View" intended primarily for reporting and integration consumers rather than direct transactional use. The view exposes contract context, asset identification, item descriptions, counter names, and the latest recorded counter reading, making it well suited for operational dashboards, customer-facing asset reports, and downstream integrations where equipment usage or meter readings must be reconciled against contract and asset master data.
Underlying Base Objects
Per the documented ETRM metadata, the view is defined over a combination of synonym, view, and package base objects, including CSI_ITEM_INSTANCES, CS_COUNTERS, CS_COUNTER_GROUPS, CS_COUNTER_VALUES, FA_ADDITIONS_B, MTL_SYSTEM_ITEMS_VL, MTL_UNITS_OF_MEASURE_VL, OKC_K_HEADERS_B, OKC_K_ITEMS, OKC_K_LINES_B, OKC_LINE_STYLES_B, OKL_CNTR_LVLNG_GRPS_V, OKL_CNTR_LVLNG_LNS_B, and the CSI_COUNTER_READINGS_PVT package.
The view traverses a multi-level contract line hierarchy. It anchors on OKC_K_HEADERS_B and links four OKC_K_LINES_B aliases (CLE1 through CLE4), each tied to a distinct OKC_LINE_STYLES_B style via LTY_CODE. The four line styles used are 'FREE_FORM1', 'FREE_FORM2', 'INST_ITEM', and 'FIXED_ASSET'. The 'INST_ITEM' line connects to OKC_K_ITEMS and then to CSI_ITEM_INSTANCES and MTL_SYSTEM_ITEMS_VL, while the 'FIXED_ASSET' line connects to FA_ADDITIONS_B. Counter data flows from CS_COUNTER_GROUPS to CS_COUNTERS and CS_COUNTER_VALUES (with an outer join to retrieve the latest reading), and the Levelling structures OKL_CNTR_LVLNG_LNS_B and OKL_CNTR_LVLNG_GRPS_V provide consolidated counter naming.
Key Columns
- CONTRACT_NUMBER — Contract identifier from OKC_K_HEADERS_B.
- ASSET_NUMBER / ASSET_ID — Fixed asset identifier from FA_ADDITIONS_B.
- ITEM_DESCRIPTION — Description of the item associated with the instance.
- SERIAL_NUMBER / QUANTITY — From CSI_ITEM_INSTANCES, describing the tracked instance.
- COUNTER_NAME / COUNTER_ID — The counter definition from CS_COUNTERS.
- CONSOLIDATED_COUNTER_NAME — Aggregated counter label from OKL_CNTR_LVLNG_GRPS_V.
- LAST_READING_DATE / LAST_READING — Timestamp and value of the most recent counter value.
- UNIT_OF_MEASURE — Unit of measure for the counter, joined through MTL_UNITS_OF_MEASURE_VL.
- CLL_ID, CLG_ID, KHR_ID, PARENT_LINE_ID — Levelling line, levelling group, contract header, and contract line identifiers used for integration keys.
Common Use Cases and Queries
A typical scenario involves listing all counters for assets on a contract, including the latest reading. For example:
SELECT contract_number, asset_number, counter_name, last_reading, last_reading_date FROM apps.okl_cs_asset_counters_uv WHERE contract_number = :p_contract_number;
Another common query retrieves counters for a specific asset to support billing based on usage:
SELECT counter_name, last_reading, unit_of_measure FROM apps.okl_cs_asset_counters_uv WHERE asset_number = :p_asset_number;
Because the view applies the outer join and MAX(VALUE_TIMESTAMP) restriction to fetch the latest reading, consumers should be aware that only the most recent valid counter value per counter is returned. The presence of LTY_CODE literal filters ('FREE_FORM1', 'INST_ITEM', 'FIXED_ASSET') within the view definition means the contract structure must conform to the expected line style configuration; otherwise, rows will be omitted. The user's search term "lty_code" corresponds directly to these line style code predicates, which drive the hierarchical joins and determine which contract lines are surfaced by the view.
-
VIEW: APPS.OKL_CS_ASSET_COUNTERS_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_ASSET_COUNTERS_UV, object_name:OKL_CS_ASSET_COUNTERS_UV, status:VALID,
-
VIEW: APPS.OKL_CS_ASSET_COUNTERS_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_ASSET_COUNTERS_UV, object_name:OKL_CS_ASSET_COUNTERS_UV, status:VALID,
-
View: OKL_CS_ASSET_COUNTERS_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_ASSET_COUNTERS_UV, object_name:OKL_CS_ASSET_COUNTERS_UV, status:VALID, product: OKL - Leasing and Finance Management , implementation_dba_data: APPS.OKL_CS_ASSET_COUNTERS_UV ,
-
View: OKL_CS_ASSET_COUNTERS_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_ASSET_COUNTERS_UV, object_name:OKL_CS_ASSET_COUNTERS_UV, status:VALID, product: OKL - Lease and Finance Management , implementation_dba_data: APPS.OKL_CS_ASSET_COUNTERS_UV ,
-
VIEW: APPS.MTL_FETCH_AGREEMENT_LINES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_FETCH_AGREEMENT_LINES, object_name:MTL_FETCH_AGREEMENT_LINES, status:VALID,
-
VIEW: APPS.MTL_BILLING_RULE_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_BILLING_RULE_LINES_V, object_name:MTL_BILLING_RULE_LINES_V, status:VALID,
-
PACKAGE: APPS.INV_3PL_BILLING_PUB
12.2.2
-
VIEW: APPS.OKL_CS_ASSET_COUNTERS_UV
12.1.1
-
VIEW: APPS.OKL_CS_ASSET_COUNTERS_UV
12.2.2
-
View: MTL_BILLING_RULE_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_BILLING_RULE_LINES_V, object_name:MTL_BILLING_RULE_LINES_V, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_BILLING_RULE_LINES_V ,
-
View: MTL_FETCH_AGREEMENT_LINES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_FETCH_AGREEMENT_LINES, object_name:MTL_FETCH_AGREEMENT_LINES, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_FETCH_AGREEMENT_LINES ,
-
APPS.INV_3PL_BILLING_UNITS_PVT SQL Statements
12.2.2
-
APPS.OKS_BILL_UTIL_PUB SQL Statements
12.2.2
-
APPS.OKS_BILL_UTIL_PUB SQL Statements
12.1.1
-
APPS.INV_3PL_BILLING_PUB dependencies on CSI_COUNTER_READINGS
12.2.2
-
APPS.INV_3PL_BILLING_PUB dependencies on OKS_LEVEL_ELEMENTS
12.2.2
-
APPS.OKS_BILL_UTIL_PUB dependencies on CS_CTR_COUNTER_VALUES_V
12.2.2
-
APPS.INV_3PL_BILLING_PUB dependencies on OKC_K_LINES_B
12.2.2
-
APPS.INV_3PL_BILLING_PUB dependencies on ORG_ORGANIZATION_DEFINITIONS
12.2.2
-
APPS.INV_3PL_BILLING_PUB dependencies on MTL_UNITS_OF_MEASURE_VL
12.2.2
-
APPS.OKS_BILL_UTIL_PUB dependencies on CS_CTR_COUNTER_VALUES_V
12.1.1
-
APPS.OKS_BILL_UTIL_PUB dependencies on CS_COUNTERS
12.2.2
-
APPS.OKS_BILL_UTIL_PUB dependencies on CS_COUNTERS
12.1.1
-
PACKAGE BODY: APPS.INV_3PL_BILLING_UNITS_PVT
12.2.2
-
APPS.INV_3PL_BILLING_UNITS_PVT dependencies on MTL_BILLING_RULE_LINES_V
12.2.2
-
PACKAGE BODY: APPS.OKS_BILL_UTIL_PUB
12.1.1
-
PACKAGE BODY: APPS.OKS_BILL_UTIL_PUB
12.2.2
-
APPS.INV_3PL_BILLING_UNITS_PVT dependencies on DBMS_SQL
12.2.2
-
eTRM - INV Tables and Views
12.2.2
-
eTRM - OKL Tables and Views
12.1.1
description: Translatable columns from OKL_XTL_SELL_INVS_B, per MLS standards ,
-
eTRM - OKL Tables and Views
12.2.2
description: Translatable columns from OKL_XTL_SELL_INVS_B, per MLS standards ,