Results for “as_leads_n5”

12 results




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

Overview

OSM.AS_LEADS_ALL is the core transactional table of the Oracle E-Business Suite Sales (Oracle Sales / Oracle Telesales) application, storing information about sales opportunities (leads). In the 12.1.1 and 12.2.2 releases, it is owned by the OSM schema and registered in the application design data as AS.AS_LEADS_ALL. Each row represents a discrete opportunity tracked through the sales pipeline, carrying pipeline stage, win probability, forecast amounts, competitor intelligence, and the owning sales resource or sales group.

The object is status VALID and resides in tablespace APPS_TS_TX_DATA with a PCTFREE of 10. The documented physical schema exposes 80 columns. Because AS_LEADS_ALL holds the natural business entity keyed by a single surrogate identifier and is referenced by an extensive fan-out of dependent tables, the metadata classifies it heuristically as hub-leaning in a Data Vault model. In practice, a Data Vault implementation would treat LEAD_ID as the hub key, with attributes such as TOTAL_AMOUNT, WIN_PROBABILITY, and STATUS modelled as satellites linked to that hub.

Key Information Stored

The surrogate primary key is AS_LEADS_ALL_PK (LEAD_ID), a NUMBER populated from an internal sequence. The unique index AS_LEADS_U1 (LEAD_ID) enforces this uniqueness; the business-facing identifier visible to users is LEAD_NUMBER, which is indexed non-uniquely by AS_LEADS_N12. The most significant columns are:

Standard WHO columns (CREATION_DATE, LAST_UPDATE_DATE, CREATED_BY, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, and concurrent program columns) are present and indexed by AS_LEADS_N26 and AS_LEADS_N3. Fifteen ATTRIBUTE1..15 descriptive flexfield columns provide extensibility.

Common Use Cases and Queries

The table is queried heavily for pipeline, forecast, and win/loss analysis. A typical open-pipeline query joins status, stage, and forecast probability:

SELECT l.lead_number, l.total_amount, l.currency_code,
       s.status_name, st.stage_name, l.win_probability
FROM   as_leads_all l,
       as_statuses_b s,
       as_sales_stages_all_b st
WHERE  l.status = s.status_id
AND    l.sales_stage_id = st.sales_stage_id
AND    l.deleted_flag = 'N'
AND    l.org_id = :org_id;

Forecast weighting is derived by multiplying TOTAL_AMOUNT by the probability mapped through WIN_PROBABILITY. Competitor win/loss reports aggregate on CLOSE_COMPETITOR_ID, while source-attribution reports aggregate on SOURCE_PROMOTION_ID. Territory and assignment routines query by OWNER_SALES_GROUP_ID and AUTO_ASSIGNMENT_TYPE. Because DESCRIPTION is function-based indexed, case-insensitive search on UPPER(DESCRIPTION) is supported. Reporting should always filter on DELETED_FLAG = 'N' and constrain ORG_ID for multi-org security.

Related Objects

AS_LEADS_ALL is a hub with a very wide dependency footprint. The most significant dependents and referenced objects include:

On the referenced side, the key parents are AS_STATUSES_B, AS_SALES_STAGES_ALL_B, AS_FORECAST_PROB_ALL_B, HZ_PARTIES, HZ_PARTY_SITES, JTF_RS_RESOURCE_EXTNS, JTF_RS_GROUPS_B, and AMS_SOURCE_CODES, joined via the foreign keys described above. These relationships make AS_LEADS_ALL the central fact-like hub of the Oracle Sales data model.