Results for “last_computation_date”

15 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

MTL_FETCH_AGREEMENT_LINES is an APPS-owned database view in the Oracle E-Business Suite Inventory (INV) module. It serves as a consolidated, denormalized reporting layer that surfaces service agreement line details alongside their associated customer account ("cust_account") information. In both release 12.1.1 and 12.2.2 it carries a VALID status, indicating it is a supported, queryable object used by third-party logistics (3PL) billing and usage-based service functionality.

The view joins Oracle Contracts (OKC) agreement headers and lines, Oracle Inventory item master definitions, 3PL client parameters, counter reading data, and Oracle Receivables trading community entities (HZ_PARTIES and HZ_CUST_ACCOUNTS). Its central purpose is to expose the relationship between a customer account, the service agreement line it is billed against, the billed service item, and the most recent counter reading recorded for that line. Because the search term "cust_account" is a matching criterion, the view is particularly relevant to queries that resolve client identity from a customer account identifier.

Underlying Base Objects

Per the documented ETRM 12.2.2 metadata, MTL_FETCH_AGREEMENT_LINES is defined over the following referenced objects:

The join chain links HZ_CUST_ACCOUNTS.CUST_ACCOUNT_ID to MTL_CLIENT_PARAMETERS.CLIENT_ID and OKC_K_LINES_B.CUST_ACCT_ID, tying the agreement to its customer account.

Key Columns

Common Use Cases and Queries

Typical uses include 3PL usage billing reconciliation, service agreement line reporting, and resolving a customer account to its active service items. A representative query filtering by customer account follows:

  • SELECT contract_number, service_agreement_line_id, client_name, service_item, billing_uom, counter_net_reading FROM mtl_fetch_agreement_lines WHERE client_id = :cust_account_id;
  • Aggregate counter readings by client: GROUP BY client_id, contract_number to review consumption per agreement.

Note the UNION in the view text, which combines regular usage rows with additional client-driven rows, so callers should filter on the columns they require to avoid duplicates.