Search Results close_reason_code
Overview
The view ASF_OPPORTUNITY_DETAILS_V is a denormalized reporting object within the Oracle E-Business Suite (EBS) ASF – Sales Online module. It consolidates opportunity header information stored in the AS_LEADS_ALL table with descriptive lookup meanings, customer attributes, sales channel descriptions, and sales-stage translations. The view exposes a single, query-friendly row per opportunity, joining code columns to their human-readable equivalents so that reporting tools and integrations do not need to resolve lookups independently. Because it presents both raw codes and decoded meanings, it is suited to operational reporting, dashboards, and outbound interfaces where opportunity-level context is required. The metadata notes that the view is "not implemented in this database" in the reference environment, so its availability depends on the specific installed patch level and configuration.
Underlying Base Objects
The view is defined over a fixed set of base objects, joined primarily through outer joins (denoted by (+)) to preserve the driving opportunity rows:
- AS_LEADS_ALL (aliased OPP) — the driving table holding opportunity header records, including status, close reason, methodology, amounts, and descriptive flexfield attributes.
- AS_PARTY_CUSTOMERS_V (PARTY) — supplies customer name, party type, and customer category code; joined on CUSTOMER_ID = PARTY_ID.
- ASO_I_SALES_CHANNELS_V (ASOCHANNELS) — resolves the sales channel code to a channel description.
- AS_SALES_STAGES_ALL_TL (STGTL) — provides the translated sales-stage name, filtered by the session language via
USERENV('LANG'). - AS_LOOKUPS (ASL2, ASL3, ASL4) — three aliases resolving CLOSE_REASON, METHODOLOGY_TYPE, and VEHICLE_RESPONSE_CODE lookup meanings respectively.
- AS_STATUSES_TL (ASSTATUSES) — supplies the translated meaning for the opportunity status code.
All lookup, channel, stage, and status joins are outer joins, ensuring opportunities are retained even when a corresponding lookup or translation is absent.
Key Columns
- LEAD_ID / LEAD_NUMBER — the unique identifier and business number of the opportunity.
- CLOSE_REASON_CODE / CLOSE_REASON — the raw close reason stored on the opportunity (
OPP.CLOSE_REASON) and its decoded meaning from the CLOSE_REASON lookup type. This is the column family most relevant to the search term "close_reason." - STATUS / STATUS_NAME — the opportunity status code and its translated meaning.
- CUSTOMER_ID / CUSTOMER_NAME / PARTY_TYPE / CUSTOMER_CATEGORY — customer identification and classification.
- METHODOLOGY_CODE / METHODOLOGY — the sales methodology and its decoded meaning.
- SALES_STAGE_ID / SALES_STAGE — the current sales stage and its translated name.
- CHANNEL_CODE / CHANNEL — the sales channel code and description.
- TOTAL_AMOUNT / CURRENCY_CODE / WIN_PROBABILITY / DECISION_DATE — commercial metrics for pipeline analysis.
- ORG_ID — the operating unit, supporting multi-org reporting.
- ATTRIBUTE1–15 — descriptive flexfield segments.
Common Use Cases and Queries
The view is typically used for pipeline reporting, win/loss analysis by close reason, and channel or methodology performance reviews. A representative query analyzing close reasons is:
SELECT lead_number, customer_name, close_reason, sales_stage, total_amount FROM asf_opportunity_details_v WHERE close_reason IS NOT NULL;SELECT close_reason, COUNT(*) FROM asf_opportunity_details_v GROUP BY close_reason ORDER BY 2 DESC;
Because meanings are already resolved, results can be displayed without additional lookup joins. Consumers should nevertheless confirm the view exists in their environment, given the metadata's note that it is not implemented in the reference database.
-
View: ASF_OPPORTUNITY_DETAILS_V
12.1.1
product: ASF - Sales Online , implementation_dba_data: Not implemented in this database ,
-
View: ASF_OPPORTUNITY_DETAILS_V
12.2.2
product: ASF - Sales Online , implementation_dba_data: Not implemented in this database ,