Results for “as_leads_all”

50+ results




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

Overview

AS_LEADS_ALL is the core transactional table within the Oracle E-Business Suite Sales Foundation (AS) module, holding sales opportunities and lead records for the CRM and TeleSales/Field Sales flows. In Release 12.1.1 and 12.2.2 the table is owned by the OSM schema and is validated as a standard product table. The table stores one row per sales lead or opportunity, capturing the pipeline entity that later drives forecasting, quoting, territory assignment, and sales-credit computation.

From a dimensional modeling standpoint, the heuristic Data Vault classification of AS_LEADS_ALL is a hub-leaning structure. The table functions as a business-key-bearing entity with a single-column surrogate identifier (LEAD_ID) and a dense set of outbound foreign keys to reference or dimension tables such as HZ_PARTIES, AS_SALES_STAGES_ALL_B, and FND_CURRENCIES. This pattern suggests modeling AS_LEADS_ALL as the hub table for the "Opportunity/Lead" business concept, with its descriptive and status-oriented columns handled as satellites in a Data Vault design.

Key Information Stored

The surrogate primary key is LEAD_ID, backed by the AS_LEADS_ALL_PK constraint and the unique index AS_LEADS_U1. LEAD_ID is the column referenced by nearly every dependent child table through foreign keys.

Common Use Cases and Queries

AS_LEADS_ALL is primarily queried for pipeline reporting, forecast roll-ups, and opportunity aging analysis. A typical extraction filters on ORG_ID and an open STATUS range, joining to HZ_PARTIES to resolve customer names:

  • Open pipeline by owner: SELECT LEAD_ID, LEAD_NUMBER, TOTAL_AMOUNT, CURRENCY_CODE FROM AS_LEADS_ALL WHERE STATUS NOT IN ('WON','LOST') AND DELETED_FLAG = 'N'.
  • Stage-weighted forecast: join WIN_PROBABILITY to AS_FORECAST_PROB_ALL_B to produce the weighted forecast amount per opportunity.
  • Territory and quota analysis: aggregate TOTAL_AMOUNT by OWNER_SALES_GROUP_ID joined to JTF_RS_GROUPS_B.
  • Campaign attribution: join SOURCE_PROMOTION_ID to AMS_SOURCE_CODES to trace leads generated by marketing activities.
  • Performance and summary views: reporting layers frequently rely on supplied materialized views such as ASF_LEADS_CHN_SUM_MV, ASF_OPP_TOP_MV, and ASF_WIN_WON_TOP5_MV, all keyed on LEAD_ID.

Related Objects

AS_LEADS_ALL sits at the center of the AS opportunity model, and references both master reference tables and numerous dependent entities: