Results for “cust_site_use”

4 results




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

Overview

EDW_TPRT_TPARTNER_LOC_LCV is a reporting and interface view exposed within the Oracle E-Business Suite trading community data model, catalogued under the Purchasing (PO) product group. The name follows Oracle's enterprise data warehouse (EDW) naming convention: the _LCV suffix denotes a "logical current view," a denormalized projection intended primarily for extract, reporting, and integration consumption rather than for transactional data entry. The view presents trade partner location information — the addresses, site usages, and trading attributes belonging to suppliers, customers, and other trading partners — merged into a single flat structure.

Its central purpose is to reconcile the trading partner's vendor-side and customer-side location attributes into one row per trade partner location, identified by TPARTNER_LOC_PK and TPARTNER_LOC_ID. Because the ETRM schema has historically treated supplier sites (PO/AP) and customer sites (AR/Order Management) as related but separately modeled entities, this view provides a consolidated perspective suitable for master data hubs, data warehouse staging, and cross-module reporting.

Underlying Base Objects

The view text documented in the ETRM 12.2.2 metadata defines it as a direct projection over a single base object, EDWBV_TPRT_TPARTNER_LOC_LCV, with no joins, unions, or aggregation visible in the definition. All column references map one-to-one to the underlying object, and the metadata records no additional referenced base objects. This is characteristic of the EDW staging layer, where a "BV" (base view) object provides the physical extract and the LCV layer exposes it through a stable, published column contract.

The view is documented as "Not implemented in this database" in the source metadata, meaning it exists in the ETRM reference model as a defined object but may not be physically installed in every environment. Consumers should verify existence against ALL_VIEWS before relying on it in a query or concurrent program.

Key Columns

Common Use Cases and Queries

The most frequent use of this view is territory-oriented analysis: identifying which customer sites are assigned to a given sales territory, or reporting sites that lack a territory assignment. A representative query follows.

  • Territory reporting: SELECT TPARTNER_LOC_ID, NAME, CITY, COUNTRY, CUST_TERRITORY, CUST_SALES_REP FROM EDW_TPRT_TPARTNER_LOC_LCV WHERE CUST_TERRITORY = :p_territory;
  • Missing territory check: SELECT TPARTNER_LOC_ID, NAME, CUST_STATUS FROM EDW_TPRT_TPARTNER_LOC_LCV WHERE CUST_TERRITORY IS NULL AND CUST_SITE_USE IS NOT NULL;
  • Consolidated partner extract: select address, business type, and the vendor and customer usage flags for loading into an external master data repository.
  • Data warehouse staging: use the CUST_TERRITORY and CUST_SALES_REP columns to join to territory and salesperson dimensions.

Because the view is a thin projection over EDWBV_TPRT_TPARTNER_LOC_LCV, all filtering and aggregation logic must be supplied by the calling query. Environments where the object is not implemented will return an ORA-00942 error, so existence should be validated prior to deployment.