Results for “as_opp_contacts_v”

4 results




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

Overview

The view AS_OPP_CONTACTS_V belongs to the AS – Sales Foundation product family in Oracle E-Business Suite (validated against 12.1.1 and 12.2.2). It exposes opportunity-level contact associations in a denormalized, reporting-friendly form. In the ETRM documentation the object is titled "View: AS_OPP_CONTACTS_V" with the description "Opportunity contacts view". Notably, the ETRM metadata records "Not implemented in this database" against the implementation/DBA data section for the referenced documentation instance, and "Referenced base objects: none documented". This means the view and its base objects are not guaranteed to exist in every environment; availability depends on whether the Oracle Sales Foundation (AS) module and its dependent schema have been installed in the target instance.

Functionally, the view serves as a consolidated source for opportunity contact data used in reporting, extracts, and integrations. Because it resolves lookup code translations inline, consumers are not required to join to AS_LOOKUPS themselves.

Underlying Base Objects

Although the ETRM viewer did not enumerate the base objects, the documented view text reveals the underlying tables and the join logic used:

The core join is L.LEAD_ID = LC.LEAD_ID. Both lookup joins use Oracle outer-join syntax (+), allowing rows to be returned even when a matching lookup code or lookup type does not exist.

Key Columns

  • ROW_ID — the ROWID of the AS_OPPORTUNITIES row, useful as a unique-ish identifier.
  • OPPORTUNITY_NUMBER — the opportunity identifier surfaced from LEAD_NUMBER; this is the column most often matched against a user query such as "opportunity_number".
  • CLOSE_DATE, WIN_PROBABILITY, MAIN_INTEREST — mapped from DECISION_DATE, WIN_PROBABILITY, and DESCRIPTION, giving pipeline context.
  • STATUS, CHANNEL — lookup MEANING values (from LEAD_STATUS and LEAD_CHANNEL).
  • STATUS_CODE, CHANNEL_CODE — the underlying stored lookup codes, retained for filtering without a lookup join.
  • CUSTOMER_ID, ADDRESS_ID, CONTACT_ID, LEAD_ID, LEAD_CONTACT_ID — party/contact linkage columns.
  • Standard audit columns — CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN.

Common Use Cases and Queries

Typical uses include contact-role reporting per opportunity, pipeline extracts keyed on opportunity number, and integration feeds that need contact linkage plus translated status/channel.

Retrieve all contacts for a given opportunity number:

SELECT opportunity_number, contact_id, customer_id, status, channel
FROM   as_opp_contacts_v
WHERE  opportunity_number = :p_opportunity_number;

Contact listing by status:

SELECT opportunity_number, contact_id, status
FROM   as_opp_contacts_v
WHERE  status_code = 'OPEN';

Pipeline extract by channel:

SELECT opportunity_number, close_date, win_probability, channel
FROM   as_opp_contacts_v
WHERE  channel_code = 'TELESALES';

Because implementation is environment-dependent, verify view existence with ALL_VIEWS before relying on it in custom code.