I_MKT_IntactnCntctScoreVal

DDL: I_MKT_INTACTNCNTCTSCOREVAL SQL: INACTSCRVAL Type: view COMPOSITE Package: CUAN_CDS_SCORE

Scores of Interaction Contacts

I_MKT_IntactnCntctScoreVal is a Composite CDS View (Fact) that provides data about "Scores of Interaction Contacts" in SAP S/4HANA. It reads from 4 data sources (I_MKT_ContactRelation, I_MKT_MktgScoreCurrentVersion, I_MKT_MktgScorePersistence, I_MKT_MarketingScoreValue) and exposes 18 fields with key fields MarketingScoreUUID, MktgScoreVersion, InteractionContact. It has 6 associations to related views. Part of development package CUAN_CDS_SCORE.

Data Sources (4)

SourceAliasJoin Type
I_MKT_ContactRelation _MKT_ContactRelation left_outer
I_MKT_MktgScoreCurrentVersion _MktgScoreCurrentVersion left_outer
I_MKT_MktgScorePersistence sp_root inner
I_MKT_MarketingScoreValue sp_score from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_MKT_MarketingScoreModel _MKT_MarketingScoreModel $projection.PredictiveModelUUID = _MKT_MarketingScoreModel.PredictiveModelUUID
[0..1] I_MKT_MktgScoreValueCategory _MKT_MktgScoreValueCategory $projection.PredictiveScenario = _MKT_MktgScoreValueCategory.PredictiveScenario and $projection.MktgScoreValueCategory = _MKT_MktgScoreValueCategory.MktgScoreValueCategory
[0..1] I_MKT_CalendarDate _MKT_CalendarDate $projection.MktgScoreVersionDate = _MKT_CalendarDate.CalendarDate
[0..*] I_MKT_IntactnCntctMktgArea _MKT_IntactnCntctMktgArea $projection.InteractionContact = _MKT_IntactnCntctMktgArea.InteractionContactUUID
[0..1] I_Mkt_Contact _Mkt_Contact $projection.InteractionContact = _Mkt_Contact.InteractionContact
[0..1] I_Mkt_Contact _MKT_CorporateAccount _MKT_ContactRelation.InteractionContact = _MKT_CorporateAccount.InteractionContact

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName INACTSCRVAL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Scores of Interaction Contacts view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY MarketingScoreUUID I_MKT_MarketingScoreValue MarketingScoreUUID UUID
KEY MktgScoreVersion I_MKT_MarketingScoreValue MktgScoreVersion XML Vers.
KEY InteractionContact I_MKT_MarketingScoreValue InteractionContact NodeID
MktgScoreVersionDate I_MKT_MarketingScoreValue MktgScoreVersionDate
MarketingScoreValue I_MKT_MarketingScoreValue MarketingScoreValue
PredictiveScenario _MKT_MarketingScoreModel PredictiveScenario
MktgScoreValueCategory
PredictiveModelUUID
MktgScoreIsCurrentVersion
CorporateAccountUUID I_MKT_ContactRelation InteractionContact NodeID
InteractionContactOrigin I_MKT_ContactRelation InteractionContactOrigin
_MKT_MarketingScore _MKT_MarketingScoreModel _MKT_MarketingScore
_MKT_MarketingScoreModel _MKT_MarketingScoreModel
_MKT_MktgScoreValueCategory _MKT_MktgScoreValueCategory
_MKT_CorporateAccount _MKT_CorporateAccount
_Mkt_Contact _Mkt_Contact
_MKT_CalendarDate _MKT_CalendarDate
_MKT_IntactnCntctMktgArea _MKT_IntactnCntctMktgArea

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_IntactnCntctScoreVal.
-- 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: INACTSCRVAL

CREATE VIEW I_MKT_IntactnCntctScoreVal AS
SELECT
  sp_score.MarketingScoreUUID AS MarketingScoreUUID,
  sp_score.MktgScoreVersion AS MktgScoreVersion,
  sp_score.InteractionContact AS InteractionContact,
  sp_score.MktgScoreVersionDate AS MktgScoreVersionDate,
  sp_score.MarketingScoreValue AS MarketingScoreValue,
  _MKT_MarketingScoreModel.PredictiveScenario AS PredictiveScenario,
  cast(sp_score.MktgScoreValueCategory as cuan_sp_score_value_cat preserving type) AS MktgScoreValueCategory,
  cast(sp_root.PredictiveModelUUID as cuan_pm_predictive_model preserving type) AS PredictiveModelUUID,
  cast( case when _MktgScoreCurrentVersion.MktgScoreVersion = sp_score.MktgScoreVersion then 'X' else '' end as cuan_pm_score_is_curr_version preserving type) AS MktgScoreIsCurrentVersion,
  _MKT_ContactRelation.InteractionContact AS CorporateAccountUUID,
  _MKT_ContactRelation.InteractionContactOrigin AS InteractionContactOrigin,
  _MKT_MarketingScoreModel._MKT_MarketingScore AS _MKT_MarketingScore
FROM I_MKT_MarketingScoreValue AS sp_score
INNER JOIN I_MKT_MktgScorePersistence AS sp_root ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_MktgScoreCurrentVersion AS _MktgScoreCurrentVersion ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_ContactRelation AS _MKT_ContactRelation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_MarketingScoreModel AS _MKT_MarketingScoreModel ON PredictiveModelUUID = _MKT_MarketingScoreModel.PredictiveModelUUID  -- association [0..1]
LEFT OUTER JOIN I_MKT_MktgScoreValueCategory AS _MKT_MktgScoreValueCategory ON PredictiveScenario = _MKT_MktgScoreValueCategory.PredictiveScenario AND MktgScoreValueCategory = _MKT_MktgScoreValueCategory.MktgScoreValueCategory  -- association [0..1]
LEFT OUTER JOIN I_MKT_CalendarDate AS _MKT_CalendarDate ON MktgScoreVersionDate = _MKT_CalendarDate.CalendarDate  -- association [0..1]
LEFT OUTER JOIN I_MKT_IntactnCntctMktgArea AS _MKT_IntactnCntctMktgArea ON InteractionContact = _MKT_IntactnCntctMktgArea.InteractionContactUUID  -- association [0..*]
LEFT OUTER JOIN I_Mkt_Contact AS _Mkt_Contact ON InteractionContact = _Mkt_Contact.InteractionContact  -- association [0..1]
LEFT OUTER JOIN I_Mkt_Contact AS _MKT_CorporateAccount ON _MKT_ContactRelation.InteractionContact = _MKT_CorporateAccount.InteractionContact  -- association [0..1]
;