Search Results as_opportunity_lines_v
Overview
AS_OPPORTUNITY_LINES_V is an Oracle E-Business Suite 12.1.1 / 12.2.2 reporting view owned by the APPS schema and registered under the AS – Sales Foundation product family. It exposes the line-level detail of sales leads and opportunities maintained in AS_LEAD_LINES_ALL, enriched with descriptive attributes drawn from inventory, unit-of-measure, product hierarchy, and Oracle Marketing (AMS) source-code entities. The view is read-only by definition; it does not store data and its columns are derived at runtime from the join graph defined in its view text.
Its principal role is to provide a denormalized, query-friendly projection of opportunity lines for reporting, analytics, and integration. Rather than requiring report authors to resolve category concatenations, item key flexfield segments, UOM translations, and marketing campaign identifiers manually, the view presents these values as named columns. It is especially relevant to users searching for campaign_code, since the column CAMPAIGN_CODE is populated from AMS_P_SOURCE_CODES_V via the SOURCE_PROMOTION_ID foreign key on the lead line.
Underlying Base Objects
The view is defined over the following documented objects:
- AS_LEAD_LINES_ALL (synonym to APPS.AS_LEAD_LINES_ALL) — the driving table, aliased OPPL. It supplies the lead line identifier, item, organization, quantity, pricing, forecast, and descriptive flexfield attributes.
- AMS_P_SOURCE_CODES_V (view, aliased AMS1 and AMS2) — joined twice: AMS1 on SOURCE_PROMOTION_ID to yield campaign name, campaign ID, and CAMPAIGN_CODE; AMS2 on OFFER_ID to yield offer name and offer code.
- MTL_SYSTEM_ITEMS_B_KFV (view, aliased MTLSI) — supplies the concatenated item flexfield segments and item description. Joined with outer-join syntax on INVENTORY_ITEM_ID and ORGANIZATION_ID.
- MTL_UNITS_OF_MEASURE_TL (synonym, aliased MTLUOM) — supplies the translated unit-of-measure name; outer-joined on UOM_CODE and restricted to the session language.
- ENI_PROD_DEN_HRCHY_PARENTS_V (view, aliased P) — supplies CONCATENATED_CAT_DESC, DISABLE_DATE, and PURCHASE_INTEREST for the product category, joined on PRODUCT_CATEGORY_ID and PRODUCT_CAT_SET_ID and filtered to USERENV('LANG').
All joins other than the category hierarchy and the driving table itself are outer joins, so lead lines without a matching item, UOM, campaign, or offer record remain visible with null descriptive columns.
Key Columns
- LEAD_LINE_ID / LEAD_ID / ORIGINAL_LEAD_LINE_ID — primary line identifier, parent opportunity reference, and lineage to the originating line.
- CAMPAIGN_CODE — the marketing source code associated with the line's SOURCE_PROMOTION_ID; this is the column most commonly targeted by users searching on campaign_code.
- CAMPAIGN_NAME / CAMPAIGN_ID — descriptive name and internal identifier of the same source code record.
- OFFER_NAME / OFFER_CODE — offer attributes resolved through OFFER_ID.
- INVENTORY_ITEM_ID, ORGANIZATION_ID, CONCATENATED_SEGMENTS, ITEM_DESCRIPTION, UOM_CODE, UNIT_OF_MEASURE_TL — item and UOM identification and description.
- PRODUCT_CATEGORY_ID, PRODUCT_CAT_SET_ID, CONCATENATED_CAT_DESC — category flexfield context and concatenated description.
- QUANTITY, PRICE, TOTAL_AMOUNT, PRICE_VOLUME_MARGIN — commercial line metrics.
- INTEREST_STATUS_CODE, QUOTED_LINE_FLAG, ROLLING_FORECAST_FLAG — status and qualification indicators.
- SHIP_DATE, FORECAST_DATE — scheduling and forecasting dates.
- ORG_ID — multi-org operating unit discriminator; queries should generally be restricted by ORG_ID.
- ATTRIBUTE_CATEGORY and ATTRIBUTE1–ATTRIBUTE15 — descriptive flexfield context and segments.
Common Use Cases and Queries
The view supports campaign attribution reporting, pipeline analysis by category or item, and extraction feeds into external CRM or BI platforms. A typical query filtering by campaign code is:
SELECT lead_line_id, lead_id, campaign_code, campaign_name, inventory_item_id, quantity, total_amount, forecast_date FROM as_opportunity_lines_v WHERE campaign_code = :p_campaign_code AND org_id = :p_org_id;- Aggregating pipeline value by campaign:
SELECT campaign_code, SUM(total_amount), SUM(quantity) FROM as_opportunity_lines_v GROUP BY campaign_code; - Item-level demand extraction joining CONCATENATED_SEGMENTS and UNIT_OF_MEASURE_TL for order or forecast staging.
- Category rollups using CONCATENATED_CAT_DESC for product management reporting.
Because the view is not indexed, filters on ORG_ID, LEAD_ID, and campaign columns should be applied to limit scan cost, and joins back to AS_LEAD_LINES_ALL on LEAD_LINE_ID can be used when additional base-table columns are required.
-
View: AS_OPPORTUNITY_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_LINES_V ,
-
View: AS_OPPORTUNITY_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_LINES_V ,
-
SYNONYM: APPS.AS_LEAD_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AS_LEAD_LINES_ALL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.AS_LEAD_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AS_LEAD_LINES_ALL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
VIEW: APPS.ENI_PROD_DEN_HRCHY_PARENTS_V
12.2.2
owner:APPS, object_type:VIEW, object_name:ENI_PROD_DEN_HRCHY_PARENTS_V, status:VALID,
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE_TL, status:VALID,
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE_TL, status:VALID,
-
VIEW: APPS.AMS_P_SOURCE_CODES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_P_SOURCE_CODES_V, object_name:AMS_P_SOURCE_CODES_V, status:VALID,
-
VIEW: APPS.AMS_P_SOURCE_CODES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_P_SOURCE_CODES_V, object_name:AMS_P_SOURCE_CODES_V, status:VALID,
-
VIEW: APPS.ENI_PROD_DEN_HRCHY_PARENTS_V
12.1.1
owner:APPS, object_type:VIEW, object_name:ENI_PROD_DEN_HRCHY_PARENTS_V, status:VALID,
-
VIEW: APPS.AS_OPPORTUNITY_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID,
-
VIEW: APPS.AS_OPPORTUNITY_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID,
-
VIEW: APPS.MTL_SYSTEM_ITEMS_B_KFV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_SYSTEM_ITEMS_B_KFV, object_name:MTL_SYSTEM_ITEMS_B_KFV, status:VALID,
-
VIEW: APPS.MTL_SYSTEM_ITEMS_B_KFV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_SYSTEM_ITEMS_B_KFV, object_name:MTL_SYSTEM_ITEMS_B_KFV, status:VALID,
-
eTRM - AS Tables and Views
12.2.2
description: - Retrofitted ,
-
eTRM - AS Tables and Views
12.1.1
description: - Retrofitted ,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - AMS Tables and Views
12.2.2
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - AMS Tables and Views
12.1.1
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - AS Tables and Views
12.2.2
description: - Retrofitted ,
-
eTRM - AS Tables and Views
12.1.1
description: - Retrofitted ,
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - AMS Tables and Views
12.2.2
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - AMS Tables and Views
12.1.1
description: This table is used to store tracking data for web advertisement and offer type schedules ,