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:
- AS_OPPORTUNITIES (aliased L) — the primary opportunity/lead table, supplying OPPORTUNITY_NUMBER (from LEAD_NUMBER), CLOSE_DATE (from DECISION_DATE), WIN_PROBABILITY, MAIN_INTEREST (from DESCRIPTION), STATUS_CODE, and CHANNEL_CODE.
- AS_OPPORTUNITY_CONTACTS (aliased LC) — the association table linking opportunities to contacts, supplying CUSTOMER_ID, ADDRESS_ID, LEAD_ID, LEAD_CONTACT_ID, and CONTACT_ID.
- AS_LOOKUPS (aliased ASLKP1 and ASLKP2) — the lookup table, joined twice to translate STATUS_CODE and CHANNEL_CODE into their display MEANING values using LOOKUP_TYPE 'LEAD_STATUS' and 'LEAD_CHANNEL' respectively.
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.
-
View: AS_OPP_CONTACTS_V 12.1.1
Opportunity contacts view
Not implemented in this database·Explore AS module →
-
View: AS_OPP_CONTACTS_V 12.2.2
Opportunity contacts view
Not implemented in this database·Explore AS module →
-
12.2.2 FND Design Data 12.2.2
-
12.1.1 FND Design Data 12.1.1