I_MKT_CorpAcctMktgScoreCube

DDL: I_MKT_CORPACCTMKTGSCORECUBE SQL: IACCMKTSCRC Type: view COMPOSITE Package: CUAN_CDS_SCORE

Mktg: Scores of Corporate Accnts - Cube

I_MKT_CorpAcctMktgScoreCube is a Composite CDS View (Cube) that provides data about "Mktg: Scores of Corporate Accnts - Cube" in SAP S/4HANA. It reads from 1 data source (I_MKT_IntactnCntctScoreVal) and exposes 38 fields with key fields MarketingScoreUUID, MktgScoreVersion, CorporateAccountUUID. It has 7 associations to related views. Part of development package CUAN_CDS_SCORE.

Data Sources (1)

SourceAliasJoin Type
I_MKT_IntactnCntctScoreVal I_MKT_IntactnCntctScoreVal from

Parameters (2)

NameTypeDefault
P_StartDate cuan_start_date
P_EndDate cuan_end_date

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_MKT_CorpAcctMktgScoreModelVH _MKT_CorpAcctMktgScoreModelVH $projection.PredictiveModelUUID = _MKT_CorpAcctMktgScoreModelVH.PredictiveModelUUID and $projection.predictivemodel = _MKT_CorpAcctMktgScoreModelVH.PredictiveModel
[1..1] I_MKT_CorpAcctMktgScoreValCat _MKT_CorpAcctMktgScoreValCat $projection.PredictiveScenario = _MKT_CorpAcctMktgScoreValCat.PredictiveScenario and $projection.MktgScoreValueCategory = _MKT_CorpAcctMktgScoreValCat.MktgScoreValueCategory
[0..1] I_MKT_Company _MKT_Company $projection.CorporateAccountUUID = _MKT_Company.Company
[0..1] I_MKT_Market _MKT_Market $projection.market = _MKT_Market.Market
[0..1] I_MKT_CorpAccountMktgScoreVH _MKT_CorpAccountMktgScoreVH $projection.PredictiveScenario = _MKT_CorpAccountMktgScoreVH.PredictiveScenario
[1..1] E_MKT_CONTACT _ExtensionInteractionContact $projection.CorporateAccountUUID = _ExtensionInteractionContact.InteractionContact
[1..1] E_MKT_COMPANY _ExtensionCompany $projection.CorporateAccountUUID = _ExtensionCompany.Company

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IACCMKTSCRC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Mktg: Scores of Corporate Accnts - Cube view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY MarketingScoreUUID I_MKT_IntactnCntctScoreVal MarketingScoreUUID
KEY MktgScoreVersion I_MKT_IntactnCntctScoreVal MktgScoreVersion
KEY CorporateAccountUUID
SumMarketingScoreValue I_MKT_IntactnCntctScoreVal MarketingScoreValue
NumberOfScores
MktgScoreValueCategory I_MKT_IntactnCntctScoreVal MktgScoreValueCategory
MktgScoreVersionDate I_MKT_IntactnCntctScoreVal MktgScoreVersionDate
CalendarYear
YearQuarter
YearMonth
YearWeek
MktgScoreIsCurrentVersion I_MKT_IntactnCntctScoreVal MktgScoreIsCurrentVersion
PredictiveScenario I_MKT_IntactnCntctScoreVal PredictiveScenario
PredictiveModelUUID I_MKT_IntactnCntctScoreVal PredictiveModelUUID NodeID
PredictiveModel
Country
AddressRegion
Market
Industry
ValidationStatus
InteractionContactOrigin I_MKT_IntactnCntctScoreVal InteractionContactOrigin
CorpAcctIsRlvtForAcctBasedMktg
_MKT_CorpAcctMktgScoreValCat _MKT_CorpAcctMktgScoreValCat
_MKT_CalendarDate I_MKT_IntactnCntctScoreVal _MKT_CalendarDate
_MKT_MarketingScore I_MKT_IntactnCntctScoreVal _MKT_MarketingScore
MarketingArea
PredictiveScenarioType
_MKT_CorpAccountMktgScoreVH _MKT_CorpAccountMktgScoreVH
_MKT_MarketingScoreModel I_MKT_IntactnCntctScoreVal _MKT_MarketingScoreModel
_MKT_CorpAcctMktgScoreModelVH _MKT_CorpAcctMktgScoreModelVH
_MKT_IntactnCntctMktgArea I_MKT_IntactnCntctScoreVal _MKT_IntactnCntctMktgArea
_Mkt_Contact I_MKT_IntactnCntctScoreVal _Mkt_Contact
_MKT_Country
_MKT_Region
_MKT_Industry
_MKT_ValidationStatus
_MKT_Company _MKT_Company
_MKT_Market _MKT_Market

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_CorpAcctMktgScoreCube.
-- 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: IACCMKTSCRC
-- Parameters: P_StartDate : cuan_start_date, P_EndDate : cuan_end_date

CREATE VIEW I_MKT_CorpAcctMktgScoreCube AS
SELECT
  I_MKT_IntactnCntctScoreVal.MarketingScoreUUID AS MarketingScoreUUID,
  I_MKT_IntactnCntctScoreVal.MktgScoreVersion AS MktgScoreVersion,
  cast(I_MKT_IntactnCntctScoreVal.InteractionContact as cuan_cds_account preserving type) AS CorporateAccountUUID,
  I_MKT_IntactnCntctScoreVal.MarketingScoreValue AS SumMarketingScoreValue,
  cast (1 as abap.int8(19)) AS NumberOfScores,
  I_MKT_IntactnCntctScoreVal.MktgScoreValueCategory AS MktgScoreValueCategory,
  I_MKT_IntactnCntctScoreVal.MktgScoreVersionDate AS MktgScoreVersionDate,
  cast ( I_MKT_IntactnCntctScoreVal._MKT_CalendarDate.CalendarYear as cuan_year_cds ) AS CalendarYear,
  I_MKT_IntactnCntctScoreVal._MKT_CalendarDate.YearQuarter AS YearQuarter,
  I_MKT_IntactnCntctScoreVal._MKT_CalendarDate.YearMonth AS YearMonth,
  I_MKT_IntactnCntctScoreVal._MKT_CalendarDate.YearWeek AS YearWeek,
  I_MKT_IntactnCntctScoreVal.MktgScoreIsCurrentVersion AS MktgScoreIsCurrentVersion,
  I_MKT_IntactnCntctScoreVal.PredictiveScenario AS PredictiveScenario,
  I_MKT_IntactnCntctScoreVal.PredictiveModelUUID AS PredictiveModelUUID,
  I_MKT_IntactnCntctScoreVal._MKT_MarketingScoreModel.PredictiveModel AS PredictiveModel,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact.Country AS Country,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact.AddressRegion AS AddressRegion,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact._MKT_CountryMarket.Market AS Market,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact.Industry AS Industry,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact.ValidationStatus AS ValidationStatus,
  I_MKT_IntactnCntctScoreVal.InteractionContactOrigin AS InteractionContactOrigin,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact.CorpAcctIsRlvtForAcctBasedMktg AS CorpAcctIsRlvtForAcctBasedMktg,
  I_MKT_IntactnCntctScoreVal._MKT_CalendarDate AS _MKT_CalendarDate,
  I_MKT_IntactnCntctScoreVal._MKT_MarketingScore AS _MKT_MarketingScore,
  I_MKT_IntactnCntctScoreVal._MKT_MarketingScore.MarketingArea AS MarketingArea,
  I_MKT_IntactnCntctScoreVal._MKT_MarketingScore.PredictiveScenarioType AS PredictiveScenarioType,
  I_MKT_IntactnCntctScoreVal._MKT_MarketingScoreModel AS _MKT_MarketingScoreModel,
  I_MKT_IntactnCntctScoreVal._MKT_IntactnCntctMktgArea AS _MKT_IntactnCntctMktgArea,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact AS _Mkt_Contact,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact._MKT_Country AS _MKT_Country,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact._MKT_Region AS _MKT_Region,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact._MKT_Industry AS _MKT_Industry,
  I_MKT_IntactnCntctScoreVal._Mkt_Contact._MKT_ValidationStatus AS _MKT_ValidationStatus
FROM I_MKT_IntactnCntctScoreVal
LEFT OUTER JOIN I_MKT_CorpAcctMktgScoreModelVH AS _MKT_CorpAcctMktgScoreModelVH ON PredictiveModelUUID = _MKT_CorpAcctMktgScoreModelVH.PredictiveModelUUID AND predictivemodel = _MKT_CorpAcctMktgScoreModelVH.PredictiveModel  -- association [0..1]
LEFT OUTER JOIN I_MKT_CorpAcctMktgScoreValCat AS _MKT_CorpAcctMktgScoreValCat ON PredictiveScenario = _MKT_CorpAcctMktgScoreValCat.PredictiveScenario AND MktgScoreValueCategory = _MKT_CorpAcctMktgScoreValCat.MktgScoreValueCategory  -- association [1..1]
LEFT OUTER JOIN I_MKT_Company AS _MKT_Company ON CorporateAccountUUID = _MKT_Company.Company  -- association [0..1]
LEFT OUTER JOIN I_MKT_Market AS _MKT_Market ON market = _MKT_Market.Market  -- association [0..1]
LEFT OUTER JOIN I_MKT_CorpAccountMktgScoreVH AS _MKT_CorpAccountMktgScoreVH ON PredictiveScenario = _MKT_CorpAccountMktgScoreVH.PredictiveScenario  -- association [0..1]
LEFT OUTER JOIN E_MKT_CONTACT AS _ExtensionInteractionContact ON CorporateAccountUUID = _ExtensionInteractionContact.InteractionContact  -- association [1..1]
LEFT OUTER JOIN E_MKT_COMPANY AS _ExtensionCompany ON CorporateAccountUUID = _ExtensionCompany.Company  -- association [1..1]
;