I_Mkt_LeadInterestsCube
Mktg: Items of Interest for Leads - Cube
I_Mkt_LeadInterestsCube is a Composite CDS View (Cube) that provides data about "Mktg: Items of Interest for Leads - Cube" in SAP S/4HANA. It reads from 2 data sources (I_MKT_CampaignInterest, P_MKT_LeadsOppsCube) and exposes 27 fields with key field Interaction. It has 4 associations to related views. Part of development package CUAN_CDS_ANALYTICS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MKT_CampaignInterest | Interests | left_outer |
| P_MKT_LeadsOppsCube | P_MKT_LeadsOppsCube | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_EndDate | cuan_end_date |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MKT_CalendarDate | _MKT_CalendarDate | $projection.InteractionCreationUTCDate = _MKT_CalendarDate.CalendarDate |
| [0..1] | I_MKT_Interest | _MKT_Interest | $projection.CampaignInterest = _MKT_Interest.ItemOfInterest |
| [0..1] | I_MKT_ContactRelation | _MKT_ContactRelation | $projection.InteractionContact = _MKT_ContactRelation.Person |
| [0..1] | I_Mkt_Contact | _MKT_Company | $projection.Company = _MKT_Company.InteractionContact |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMKT_LEADINTC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Mktg: Items of Interest for Leads - Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.representativeKey | Interaction | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Interaction | Interaction | Interaction | |
| CampaignInterest | I_MKT_CampaignInterest | CampaignInterest | ||
| MarketingArea | Interaction | MarketingArea | ||
| InteractionMarketingArea | Interaction | InteractionMarketingArea | ||
| CampaignID | Interaction | CampaignID | ||
| CampaignName | Interaction | CampaignName | ||
| InteractionCreationUTCDate | Interaction | InteractionCreationUTCDate | ||
| CalendarMonth | _MKT_CalendarDate | CalendarMonth | Calendar Month | |
| CalendarYear | _MKT_CalendarDate | CalendarYear | Year | |
| CalendarDate | _MKT_CalendarDate | CalendarDate | Calendar Date | |
| CalendarQuarter | _MKT_CalendarDate | CalendarQuarter | Calendar Quarter | |
| CalendarWeek | _MKT_CalendarDate | CalendarWeek | Calendar Week | |
| InteractionContact | Interaction | InteractionContact | ||
| Company | ||||
| Country | ||||
| Industry | ||||
| CompanyName | ||||
| NumberOfLeads | ||||
| _MKT_Interest | _MKT_Interest | |||
| _MKT_CalendarDate | _MKT_CalendarDate | |||
| _MKT_CalendarMonth | _MKT_CalendarDate | _MKT_CalendarMonth | ||
| _MKT_MarketingArea | _MKT_MarketingArea | |||
| _Mkt_Contact | _Mkt_Contact | |||
| _MKT_Company | _MKT_Company | |||
| _MKT_Country | _Mkt_Contact | _MKT_Country | ||
| _MKT_Industry | _Mkt_Contact | _MKT_Industry | ||
| _Mkt_Initiative | Interaction | _Mkt_Initiative |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_Mkt_LeadInterestsCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IMKT_LEADINTC
-- Parameters: P_EndDate : cuan_end_date
CREATE VIEW I_Mkt_LeadInterestsCube AS
SELECT
Interaction.Interaction AS Interaction,
Interests.CampaignInterest AS CampaignInterest,
Interaction.MarketingArea AS MarketingArea,
Interaction.InteractionMarketingArea AS InteractionMarketingArea,
Interaction.CampaignID AS CampaignID,
Interaction.CampaignName AS CampaignName,
Interaction.InteractionCreationUTCDate AS InteractionCreationUTCDate,
_MKT_CalendarDate.CalendarMonth AS CalendarMonth,
_MKT_CalendarDate.CalendarYear AS CalendarYear,
_MKT_CalendarDate.CalendarDate AS CalendarDate,
_MKT_CalendarDate.CalendarQuarter AS CalendarQuarter,
_MKT_CalendarDate.CalendarWeek AS CalendarWeek,
Interaction.InteractionContact AS InteractionContact,
cast(_MKT_ContactRelation.InteractionContact as cuan_cds_company) AS Company,
Interaction._Mkt_Contact.Country AS Country,
Interaction._Mkt_Contact.Industry AS Industry,
Interaction._Mkt_Contact.CompanyName AS CompanyName,
cast(cast (1 as abap.int4(10) ) as cuan_numberofleads) AS NumberOfLeads,
_MKT_CalendarDate._MKT_CalendarMonth AS _MKT_CalendarMonth,
_Mkt_Contact._MKT_Country AS _MKT_Country,
_Mkt_Contact._MKT_Industry AS _MKT_Industry,
Interaction._Mkt_Initiative AS _Mkt_Initiative
FROM P_MKT_LeadsOppsCube
LEFT OUTER JOIN I_MKT_CampaignInterest AS Interests ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CalendarDate AS _MKT_CalendarDate ON InteractionCreationUTCDate = _MKT_CalendarDate.CalendarDate -- association [0..1]
LEFT OUTER JOIN I_MKT_Interest AS _MKT_Interest ON CampaignInterest = _MKT_Interest.ItemOfInterest -- association [0..1]
LEFT OUTER JOIN I_MKT_ContactRelation AS _MKT_ContactRelation ON InteractionContact = _MKT_ContactRelation.Person -- association [0..1]
LEFT OUTER JOIN I_Mkt_Contact AS _MKT_Company ON Company = _MKT_Company.InteractionContact -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA