Search Results net_reading




Overview

CS_CP_COUNTERS_V is a Service (CS) module reporting view in Oracle E-Business Suite 12.1.1 and 12.2.2. As stated in the ETRM metadata, it "contains the information pertaining to counters (values, groups)." In the Oracle TeleService and depot repair model, counters represent cumulative or stepped meter readings taken against a customer product — for example, the number of copies produced by a copier, hours logged on an engine, or cycles recorded on capital equipment. This view consolidates counter definition data with the transactional readings captured for each counter, and enriches the result with customer product and inventory item context.

The view is intended primarily for reporting, inquiry, and integration rather than for transactional processing. Its most notable computed attribute is NET_READING, which normalizes a raw counter reading by subtracting miscellaneous usage and prior-period adjustments, and by reconciling readings that span a counter reset. Because the view joins counter values, counter definitions, counter groups, customer products, and item master information in a single row, it removes the burden of reconstructing this five-way join in ad hoc queries.

Underlying Base Objects

The ETRM record lists no separately documented base objects, but the view text itself identifies the following sources:

The join between CS_COUNTERS and CS_COUNTER_VALUES is an outer join on both COUNTER_ID and the maximum sequence number (CTR_VAL_MAX_SEQ_NO), so counters without readings are still returned.

Key Columns

Common Use Cases and Queries

Typical uses include meter-based billing and warranty verification, preventive maintenance scheduling, usage trend reporting, and extracting counter history into a data warehouse. A search for "net_reading" indicates the analyst is looking for adjusted usage rather than raw readings, which is precisely what this view provides.

Latest adjusted reading per customer product:

  • SELECT customer_product_id, serial_number, name, net_reading, value_timestamp FROM cs_cp_counters_v WHERE sequence_no = (SELECT MAX(sequence_no) FROM cs_cp_counters_v b WHERE b.counter_id = cs_cp_counters_v.counter_id);

Readings consumed within a date range for a given installed base:

  • SELECT serial_number, product_name, name, net_reading, value_timestamp FROM cs_cp_counters_v WHERE customer_product_id = :p_cp_id AND value_timestamp BETWEEN :p_from AND :p_to ORDER BY value_timestamp;

Identifying counters that have been reset, so that NET_READING logic can be audited:

  • SELECT counter_id, name, reset_reason, pre_reset_last_rdg, post_reset_first_rdg, counter_reading, net_reading FROM cs_cp_counters_v WHERE reset_flag = 'Y';

Because the view is not implemented as a database object in some instances (as the metadata notes), deployments should verify object validity in their environment before referencing it in concurrent programs or interface extracts.