I_Mkt_LeadInterestsCube

DDL: I_MKT_LEADINTERESTSCUBE SQL: IMKT_LEADINTC Type: view COMPOSITE Package: CUAN_CDS_ANALYTICS

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)

SourceAliasJoin Type
I_MKT_CampaignInterest Interests left_outer
P_MKT_LeadsOppsCube P_MKT_LeadsOppsCube from

Parameters (1)

NameTypeDefault
P_EndDate cuan_end_date

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;