Results for “sales_stage”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AMS_LEAD_ACCOUNTS_V is an Oracle E-Business Suite (EBS) database view owned by the APPS schema and delivered as part of the AMS – Marketing product family. In both release 12.1.1 and 12.2.2 the object is documented as VALID and is designed to present a denormalized, reporting-ready projection of marketing opportunities (internally stored as "leads" in the AS_LEADS_ALL table) together with the customer and site information to which each opportunity is linked.
According to the ETRM documentation, the view exists to serve the Discoverer Business Area "List Generation Folders," whose purpose is to retrieve customers and sites linked to an opportunity. Because it flattens opportunity attributes, sales stage, win probability, and interest classification into a single row-per-opportunity result set, it is well suited for ad-hoc querying, Discoverer workbooks, and lightweight integration extracts. It is important to note that this is not a base transactional API; it is a read-only reporting construct that should not be used for inserts or updates.
Underlying Base Objects
The documented view text shows that AMS_LEAD_ACCOUNTS_V is defined over the following base objects:
- AS_LEADS_ALL (synonym) — the primary driving table, aliased AL, holding the opportunity/lead header record.
- AS_LEAD_LINES_ALL (synonym) — aliased ALA, holding opportunity line detail including interest type and interest codes.
- AS_INTERESTS_ALL (synonym) — aliased AI, joined on LEAD_ID with an outer join.
- AS_INTEREST_TYPES_VL (view) — aliased AIT, supplying the interest type description/name.
- AS_INTEREST_CODES_VL (view) — aliased AICP and AICS, supplying primary and secondary interest code values.
- AS_SALES_STAGES_ALL_VL (view) — aliased SSA, supplying the sales stage name through an outer join on SALES_STAGE_ID.
All joins to AS_INTERESTS_ALL, AS_LEAD_LINES_ALL, and AS_SALES_STAGES_ALL_VL are implemented as outer joins (denoted by the (+) syntax), while the lead is filtered with AL.LEAD_ID > 0. This ensures that a row is returned even when an opportunity has no associated line, interest, or stage, with NULL values appearing in the corresponding columns.
Key Columns
The view exposes twenty-four columns. The most significant for reporting include:
- LEAD_ID — primary identifier for the opportunity.
- SALES_STAGE — the user-facing sales stage name derived from AS_SALES_STAGES_ALL_VL. This is the column most relevant to a "sales_stage" search.
- WIN_PROBABILITY — stored as the numeric probability concatenated with a percent sign.
- OPP_STATUS — the opportunity status, aliased from AL.STATUS.
- TOTAL_AMOUNT, CURRENCY_CODE, CHANNEL_CODE, CLOSE_REASON — commercial attributes of the opportunity.
- INITIATIVES, FORECAST_SPONSOR, SEGMENTED, SOLUTION_TYPE, PROJECT_NAME_NUMBER, ACTION_TO_CLOSE, LEAD_SOURCE, ORDER_NUMBER, INTERNAL_PROCESS_STATUS, NEW_ACCOUNT — descriptive flexfield (ATTRIBUTE1–ATTRIBUTE12) values renamed to meaningful business labels.
- OPP_INTEREST_TYPE, OPP_PRIMARY_INTEREST, OPP_SECONDARY_INTEREST — concatenated interest classifications, e.g. INTEREST_TYPE/CODE or INTEREST_TYPE/CODE/CODE.
- ADDRESS_ID, CUSTOMER_ID — the linked site and customer, enabling the "List Generation" linkage to customers and sites.
Common Use Cases and Queries
A frequent scenario is filtering opportunities by sales stage, which the documented SALES_STAGE column directly supports:
SELECT LEAD_ID, SALES_STAGE, OPP_STATUS, WIN_PROBABILITY, TOTAL_AMOUNT, CURRENCY_CODE, CUSTOMER_ID, ADDRESS_ID FROM APPS.AMS_LEAD_ACCOUNTS_V WHERE SALES_STAGE = 'Qualified';
Another common pattern is producing a pipeline listing with customer links:
SELECT CUSTOMER_ID, ADDRESS_ID, OPP_STATUS, SALES_STAGE, TOTAL_AMOUNT FROM APPS.AMS_LEAD_ACCOUNTS_V WHERE OPP_STATUS = 'OPEN' ORDER BY TOTAL_AMOUNT DESC;
Because the view returns one row per qualifying opportunity and applies outer joins, consumers should be aware that NULL sales stage or interest values are possible. Queries should therefore avoid implied inner-join assumptions on those columns, and appropriate AMS responsibilities or read privileges on the APPS synonyms are required.
-
View: AMS_LEAD_ACCOUNTS_V 12.1.1
This view is used by Discoverer Business Area : List Generation Folders to retrieve customers and sites linked to an opportunity.
APPS.AMS_LEAD_ACCOUNTS_V·↳ AS_INTERESTS_ALL·↳ AS_INTEREST_CODES_VL·↳ AS_INTEREST_TYPES_VL·Explore AMS module →
-
APPS.AST_LM_OPP_QUICK_SGRP_V·↳ AS_ACCESSES_ALL·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_CAMP_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_SREP_V·↳ AS_ACCESSES_ALL·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_INTTYPES_V·↳ AS_LEADS_ALL·↳ AS_LEAD_LINES_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
View: AMS_LEAD_ACCOUNTS_V 12.2.2
This view is used by Discoverer Business Area : List Generation Folders to retrieve customers and sites linked to an opportunity.
APPS.AMS_LEAD_ACCOUNTS_V·↳ AS_INTERESTS_ALL·↳ AS_INTEREST_CODES_VL·↳ AS_INTEREST_TYPES_VL·Explore AMS module →
-
View: AST_OPPORTUNITY_LOGS_V 12.1.1
APPS.AST_OPPORTUNITY_LOGS_V·↳ ARP_ADDR_LABEL_PKG·↳ AST_OFFER_ONLY_V·↳ AST_SOURCE_ONLY_V·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_CAMP_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_SREP_V·↳ AS_ACCESSES_ALL·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_RESULTS_V·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·↳ AS_STATUSES_TL·Explore AST module →
-
APPS.AST_LM_OPP_QUICK_SGRP_V·↳ AS_ACCESSES_ALL·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_OPPORTUNITIES_BALI_V·↳ AMS_ACT_OFFERS·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·Explore AST module →
-
APPS.AS_OPPORTUNITY_DETAILS_V·↳ AMS_P_SOURCE_CODES_V·↳ AS_LEADS_ALL·↳ AS_LOOKUPS·Explore AS module →
-
APPS.AST_LM_OPP_QUICK_INTTYPES_V·↳ AS_LEADS_ALL·↳ AS_LEAD_LINES_ALL·↳ AS_SALES_STAGES_ALL_TL·Explore AST module →
-
APPS.AST_LM_OPP_EXP_CR_TYPE_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
View: ASF_FRCST_SUM_REPRT_V 12.2.2
APPS.ASF_FRCST_SUM_REPRT_V·↳ AS_MC_SALES_CREDITS_DEN·↳ AS_OPP_WORKSHEET_LINES·↳ AS_SALES_CREDITS_DENORM·Explore ASF module →
-
View: ASF_FRCST_SUM_REPRT_V 12.1.1
APPS.ASF_FRCST_SUM_REPRT_V·↳ AS_MC_SALES_CREDITS_DEN·↳ AS_OPP_WORKSHEET_LINES·↳ AS_SALES_CREDITS_DENORM·Explore ASF module →
-
APPS.AST_LM_OPP_QUICK_RESULTS_V·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·↳ AS_STATUSES_TL·Explore AST module →
-
APPS.AST_OPPORTUNITIES_BALI_V·↳ AMS_ACT_OFFERS·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·Explore AST module →
-
View: AST_OPPORTUNITY_LOG_V 12.2.2
APPS.AST_OPPORTUNITY_LOG_V·↳ AS_FORECAST_PROB_ALL_TL·↳ AS_LEADS_LOG·↳ AS_SALES_METHODOLOGY_TL·Explore AST module →
-
View: AST_OPPORTUNITY_LOG_V 12.1.1
APPS.AST_OPPORTUNITY_LOG_V·↳ AS_FORECAST_PROB_ALL_TL·↳ AS_LEADS_LOG·↳ AS_SALES_METHODOLOGY_TL·Explore AST module →
-
View: AST_OPPORTUNITY_LOGS_V 12.2.2
APPS.AST_OPPORTUNITY_LOGS_V·↳ ARP_ADDR_LABEL_PKG·↳ AST_OFFER_ONLY_V·↳ AST_SOURCE_ONLY_V·Explore AST module →
-
APPS.AST_LM_OPP_EXP_CR_TYPE_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
View: AST_LM_OPP_EXPANDED_V 12.1.1
APPS.AST_LM_OPP_EXPANDED_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
View: AST_LM_OPP_EXPANDED_V 12.2.2
APPS.AST_LM_OPP_EXPANDED_V·↳ AMS_SOURCE_CODES·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
APPS.AST_OPPORTUNITY_CONTACT_V·↳ AR_LOOKUPS·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
APPS.AS_OPPORTUNITY_DETAILS_V·↳ AMS_P_SOURCE_CODES_V·↳ AS_LEADS_ALL·↳ AS_LOOKUPS·Explore AS module →
-
View: AST_OPPORTUNITY_DET_V 12.1.1
APPS.AST_OPPORTUNITY_DET_V·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·↳ AS_STATUSES_TL·Explore AST module →
-
APPS.AST_OPPORTUNITY_CONTACT_V·↳ AR_LOOKUPS·↳ AS_LEADS_ALL·↳ AS_LEAD_CONTACTS_ALL·Explore AST module →
-
View: AST_OPPORTUNITY_DET_V 12.2.2
APPS.AST_OPPORTUNITY_DET_V·↳ AS_LEADS_ALL·↳ AS_SALES_STAGES_ALL_TL·↳ AS_STATUSES_TL·Explore AST module →
-
Denormalized table to store opportunity data denormalized from AS_LEADS_ALL, AS_LEAD_LINES_ALL, AS_SALES_CREDITS, AS_SALES_STAGE_ALL, AS_INTEREST_TYPES_ALL, AS_INTEREST_CODES_ALL, HZ_PARTIES, AS_SALES_GROUPS, PER_ALL_PEOPLR_F
-
Denormalized table to store opportunity data denormalized from AS_LEADS_ALL, AS_LEAD_LINES_ALL, AS_SALES_CREDITS, AS_SALES_STAGE_ALL, AS_INTEREST_TYPES_ALL, AS_INTEREST_CODES_ALL, HZ_PARTIES, AS_SALES_GROUPS, PER_ALL_PEOPLR_F
-
TABLE: APPS.ASF_OPP_TOP_MV 12.1.1
-
View: AST_LS_OPP_BSC_V 12.1.1
Not implemented in this database·Explore AST module →
-
Not implemented in this database·Explore ASF module →
-
View: AST_LS_OPP_BSC_V 12.2.2
Not implemented in this database·Explore AST module →
-
Not implemented in this database·Explore ASF module →
-
View: AST_LS_OPPORTUNITIES_V 12.1.1
Not implemented in this database·Explore AST module →
-
View: AST_LS_OPP_SREP_ADV_V 12.1.1
Not implemented in this database·Explore AST module →
-
View: AST_LS_OPP_SREP_ADV_V 12.2.2
Not implemented in this database·Explore AST module →
-
Not implemented in this database·Explore ASF module →
-
View: AST_LS_OPPORTUNITIES_V 12.2.2
Not implemented in this database·Explore AST module →
-
TABLE: APPS.ASF_SC_BIN_MV 12.1.1
-
VIEW: APPS.BIL_OBI_OPDTL_V 12.1.1
-
Not implemented in this database·Explore ASF module →