I_Mkt_Interaction

DDL: I_MKT_INTERACTION SQL: IMKT_INTERACTION Type: view BASIC Package: CUAN_CDS_CONTACT

Marketing: Interaction

I_Mkt_Interaction is a Basic CDS View (Fact) that provides data about "Marketing: Interaction" in SAP S/4HANA. It reads from 1 data source (cuand_ce_ia_rt) and exposes 83 fields with key field Interaction. It has 16 associations to related views. Part of development package CUAN_CDS_CONTACT.

Data Sources (1)

SourceAliasJoin Type
cuand_ce_ia_rt Persistence from

Associations (16)

CardinalityTargetAliasCondition
[0..*] I_MKT_InteractionInterest _MKT_InteractionInterest $projection.Interaction = _MKT_InteractionInterest.Interaction
[0..*] I_MKT_IA_DigitalAsset _MKT_IA_DigitalAsset $projection.Interaction = _MKT_IA_DigitalAsset.Interaction
[0..1] I_MKT_CommMedium _MKT_CommMedium $projection.CommunicationMedium = _MKT_CommMedium.CommunicationMedium
[0..1] I_MKT_InteractionType _MKT_InteractionType $projection.InteractionType = _MKT_InteractionType.InteractionType
[0..1] I_MKT_InteractionStatus _MKT_InteractionStatus $projection.InteractionStatus = _MKT_InteractionStatus.InteractionStatus
[0..1] I_MKT_InteractionReason _MKT_InteractionReason $projection.InteractionType = _MKT_InteractionReason.InteractionType and $projection.InteractionReason = _MKT_InteractionReason.InteractionReason
[0..1] I_MKT_InteractionSentiment _MKT_InteractionSentiment $projection.InteractionSentiment = _MKT_InteractionSentiment.InteractionSentiment
[0..1] I_MKT_Channel _MKT_Channel $projection.InteractionChannel = _MKT_Channel.InteractionChannel
[0..1] I_Mkt_Contact _Mkt_Contact $projection.InteractionContact = _Mkt_Contact.InteractionContact
[0..1] I_MKT_CalendarDate _MKT_CalendarDate $projection.InteractionUTCDate = _MKT_CalendarDate.CalendarDate
[0..1] I_MKT_CampaignVersion _MKT_CampaignVersion $projection.CampaignVersion = _MKT_CampaignVersion.CampaignVersion
[0..1] I_MKT_CampaignExecutionRun _MKT_CampaignExecutionRun $projection.CampaignExecutionRun = _MKT_CampaignExecutionRun.CampaignExecutionRun
[0..1] I_Mkt_Initiative _Mkt_Initiative $projection.CampaignID = _Mkt_Initiative.CampaignID
[0..1] I_MKT_Contactorigin _MKT_Contactorigin $projection.InteractionContactOrigin = _MKT_Contactorigin.InteractionContactOrigin
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_MKT_MarketingArea _MKT_MarketingArea $projection.MarketingArea = _MKT_MarketingArea.MarketingArea

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IMKT_INTERACTION view
EndUserText.label Marketing: Interaction view
ObjectModel.sapObjectNodeType.name Interaction view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
ObjectModel.representativeKey Interaction view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (83)

KeyFieldSource TableSource FieldDescription
KEY Interaction
InteractionContactOrigin cuand_ce_ia_rt id_origin
InteractionContactId cuand_ce_ia_rt id WorklistID
CommunicationMedium cuand_ce_ia_rt comm_medium
InteractionType cuand_ce_ia_rt ia_type
InteractionStatus cuand_ce_ia_rt ia_status
InteractionTimeStampUTC
InteractionSourceObjectType cuand_ce_ia_rt source_object_type Object Type
InteractionSourceObject
MarketingArea cuand_ce_ia_rt mkt_area_id
CampaignID cuand_ce_ia_rt initiative_id
CampaignVersion cuand_ce_ia_rt ini_version
MarketingLocationOrigin cuand_ce_ia_rt loc_origin
MarketingLocation cuand_ce_ia_rt loc_id Location ID
DigitalAccount cuand_ce_ia_rt digacc_id
DigitalAccountType cuand_ce_ia_rt digacc_type
MKT_AgreementOrigin cuand_ce_ia_rt mkt_agreementorigin
MKT_AgreementExternalID cuand_ce_ia_rt mkt_agreementexternalid
MarketingOrchestrationID cuand_ce_ia_rt marketing_orchestration_id
CommunicationCategory cuand_ce_ia_rt comm_cat_id
InteractionWeightingFactor cuand_ce_ia_rt quantifier Quantifier
InteractionSentimentValue
InteractionSentiment
InteractionReason cuand_ce_ia_rt ia_reason
InteractionLanguage cuand_ce_ia_rt ia_language Language
InteractionIsAnonymous cuand_ce_ia_rt is_anonymous TRUE
InteractionAmount cuand_ce_ia_rt amount Value Amount
Currency cuand_ce_ia_rt currency Valuation Crcy
InteractionLatitude cuand_ce_ia_rt latitude Latitude
InteractionLongitude cuand_ce_ia_rt longitude Longitude
SpatialReferenceSystem cuand_ce_ia_rt srid Stability Rule DRP
DeviceType cuand_ce_ia_rt device_type
InteractionDeviceName cuand_ce_ia_rt device_ft
InteractionSoftwareClientName cuand_ce_ia_rt sw_client
InteractionOperatingSystemName cuand_ce_ia_rt os
PrecedingInteractionUUID
InteractionProcessingDuration cuand_ce_ia_rt processing_time Value
InteractionPriority cuand_ce_ia_rt priority Workflow priority
SourceSystemType cuand_ce_ia_rt source_system_type
SourceSystem cuand_ce_ia_rt source_system_id System ID
InteractionSourceObjectAddlID
InteractionSourceObjectStatus cuand_ce_ia_rt source_object_status_code
InteractionSourceDataURL cuand_ce_ia_rt source_data_url
InteractionSourceTimeStampUTC
CampaignContentLinkURL cuand_ce_ia_rt launch_url
CampaignContentLinkName
ReferralSource cuand_ce_ia_rt referral_source
ReferralSourceCategory cuand_ce_ia_rt referral_source_category
InteractionContact
RootInteraction
CampaignExecutionRun
SurveyResponseUUID
CampaignContentLink
InteractionUTCDate
EmployeeInternalID cuand_ce_ia_rt employee_id Personnel No.
EmployeeRole cuand_ce_ia_rt employee_role
InteractionCreationUTCDateTime
InteractionLastChangedDateTime
InteractionLastChangedByUser cuand_ce_ia_rt lchg_uname User Name
InteractionContentSubject cuand_ce_ia_rt content_title
InteractionContent cuand_ce_ia_rt content_data
MarketingUTMSource cuand_ce_ia_rt utm_source
MarketingUTMMedium cuand_ce_ia_rt utm_medium
MarketingUTMCampaign cuand_ce_ia_rt utm_campaign
MarketingUTMTerm cuand_ce_ia_rt utm_term
MarketingUTMContent cuand_ce_ia_rt utm_content
InteractionChannel cuanc_ce_ch_asgn channel Memo Record Channel
_MKT_InteractionInterest _MKT_InteractionInterest
_MKT_IA_DigitalAsset _MKT_IA_DigitalAsset
_MKT_CommMedium _MKT_CommMedium
_MKT_InteractionType _MKT_InteractionType
_MKT_InteractionStatus _MKT_InteractionStatus
_MKT_MarketingArea _MKT_MarketingArea
_MKT_InteractionReason _MKT_InteractionReason
_MKT_InteractionSentiment _MKT_InteractionSentiment
_Mkt_Contact _Mkt_Contact
_MKT_Channel _MKT_Channel
_MKT_CalendarDate _MKT_CalendarDate
_MKT_CampaignVersion _MKT_CampaignVersion
_MKT_CampaignExecutionRun _MKT_CampaignExecutionRun
_Mkt_Initiative _Mkt_Initiative
_MKT_Contactorigin _MKT_Contactorigin
_Currency _Currency

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_Interaction.
-- 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_INTERACTION

CREATE VIEW I_Mkt_Interaction AS
SELECT
  cast (Persistence.db_key as cuan_cds_interaction preserving type) AS Interaction,
  Persistence.id_origin AS InteractionContactOrigin,
  Persistence.id AS InteractionContactId,
  Persistence.comm_medium AS CommunicationMedium,
  Persistence.ia_type AS InteractionType,
  Persistence.ia_status AS InteractionStatus,
  cast(Persistence.timestamp as cuan_api_timestamp_utc preserving type) AS InteractionTimeStampUTC,
  Persistence.source_object_type AS InteractionSourceObjectType,
  cast(Persistence.source_object_id as cuan_api_source_object_id preserving type) AS InteractionSourceObject,
  Persistence.mkt_area_id AS MarketingArea,
  Persistence.initiative_id AS CampaignID,
  Persistence.ini_version AS CampaignVersion,
  Persistence.loc_origin AS MarketingLocationOrigin,
  Persistence.loc_id AS MarketingLocation,
  Persistence.digacc_id AS DigitalAccount,
  Persistence.digacc_type AS DigitalAccountType,
  Persistence.mkt_agreementorigin AS MKT_AgreementOrigin,
  Persistence.mkt_agreementexternalid AS MKT_AgreementExternalID,
  Persistence.marketing_orchestration_id AS MarketingOrchestrationID,
  Persistence.comm_cat_id AS CommunicationCategory,
  Persistence.quantifier AS InteractionWeightingFactor,
  cast( Persistence.valuation as cuan_sentiment_value ) AS InteractionSentimentValue,
  cast( substring( cast( Persistence.valuation as abap.char(3) ),1,1) as cuan_sentiment preserving type) AS InteractionSentiment,
  Persistence.ia_reason AS InteractionReason,
  Persistence.ia_language AS InteractionLanguage,
  Persistence.is_anonymous AS InteractionIsAnonymous,
  Persistence.amount AS InteractionAmount,
  Persistence.currency AS Currency,
  Persistence.latitude AS InteractionLatitude,
  Persistence.longitude AS InteractionLongitude,
  Persistence.srid AS SpatialReferenceSystem,
  Persistence.device_type AS DeviceType,
  Persistence.device_ft AS InteractionDeviceName,
  Persistence.sw_client AS InteractionSoftwareClientName,
  Persistence.os AS InteractionOperatingSystemName,
  cast(Persistence.parent_ia_key as cuan_cds_parent_interaction preserving type) AS PrecedingInteractionUUID,
  Persistence.processing_time AS InteractionProcessingDuration,
  Persistence.priority AS InteractionPriority,
  Persistence.source_system_type AS SourceSystemType,
  Persistence.source_system_id AS SourceSystem,
  cast(Persistence.source_object_add_id as cuan_api_add_source_object_id preserving type) AS InteractionSourceObjectAddlID,
  Persistence.source_object_status_code AS InteractionSourceObjectStatus,
  Persistence.source_data_url AS InteractionSourceDataURL,
  cast(Persistence.source_timestamp as cuan_api_source_timestamp_utc preserving type) AS InteractionSourceTimeStampUTC,
  Persistence.launch_url AS CampaignContentLinkURL,
  cast( Persistence.launch_text as cuan_cmpgn_content_link_name preserving type) AS CampaignContentLinkName,
  Persistence.referral_source AS ReferralSource,
  Persistence.referral_source_category AS ReferralSourceCategory,
  cast(Persistence.contact_key as cuan_cds_ia_contact preserving type) AS InteractionContact,
  cast(Persistence.root_ia_key as cuan_cds_root_ia_uuid preserving type) AS RootInteraction,
  cast(Persistence.execution_run_key as cuan_cds_cpg_exe_run_uuid preserving type) AS CampaignExecutionRun,
  cast(Persistence.survey_response_key as cuan_cds_survey_response_uuid preserving type) AS SurveyResponseUUID,
  cast(Persistence.launch_link_key as cuan_cds_cpg_content_link_uuid preserving type) AS CampaignContentLink,
  cast(tstmp_to_dats( Persistence.timestamp, 'UTC', $session.client, 'NULL' ) as cuan_utc_date preserving type) AS InteractionUTCDate,
  Persistence.employee_id AS EmployeeInternalID,
  Persistence.employee_role AS EmployeeRole,
  cast(Persistence.crea_date_time as cuan_ia_crea_date_time preserving type) AS InteractionCreationUTCDateTime,
  cast(Persistence.lchg_date_time as cuan_api_last_change_date_time preserving type) AS InteractionLastChangedDateTime,
  Persistence.lchg_uname AS InteractionLastChangedByUser,
  Persistence.content_title AS InteractionContentSubject,
  Persistence.content_data AS InteractionContent,
  Persistence.utm_source AS MarketingUTMSource,
  Persistence.utm_medium AS MarketingUTMMedium,
  Persistence.utm_campaign AS MarketingUTMCampaign,
  Persistence.utm_term AS MarketingUTMTerm,
  Persistence.utm_content AS MarketingUTMContent,
  cuanc_ce_ch_asgn.channel AS InteractionChannel
FROM cuand_ce_ia_rt AS Persistence
LEFT OUTER JOIN I_MKT_InteractionInterest AS _MKT_InteractionInterest ON Interaction = _MKT_InteractionInterest.Interaction  -- association [0..*]
LEFT OUTER JOIN I_MKT_IA_DigitalAsset AS _MKT_IA_DigitalAsset ON Interaction = _MKT_IA_DigitalAsset.Interaction  -- association [0..*]
LEFT OUTER JOIN I_MKT_CommMedium AS _MKT_CommMedium ON CommunicationMedium = _MKT_CommMedium.CommunicationMedium  -- association [0..1]
LEFT OUTER JOIN I_MKT_InteractionType AS _MKT_InteractionType ON InteractionType = _MKT_InteractionType.InteractionType  -- association [0..1]
LEFT OUTER JOIN I_MKT_InteractionStatus AS _MKT_InteractionStatus ON InteractionStatus = _MKT_InteractionStatus.InteractionStatus  -- association [0..1]
LEFT OUTER JOIN I_MKT_InteractionReason AS _MKT_InteractionReason ON InteractionType = _MKT_InteractionReason.InteractionType AND InteractionReason = _MKT_InteractionReason.InteractionReason  -- association [0..1]
LEFT OUTER JOIN I_MKT_InteractionSentiment AS _MKT_InteractionSentiment ON InteractionSentiment = _MKT_InteractionSentiment.InteractionSentiment  -- association [0..1]
LEFT OUTER JOIN I_MKT_Channel AS _MKT_Channel ON InteractionChannel = _MKT_Channel.InteractionChannel  -- association [0..1]
LEFT OUTER JOIN I_Mkt_Contact AS _Mkt_Contact ON InteractionContact = _Mkt_Contact.InteractionContact  -- association [0..1]
LEFT OUTER JOIN I_MKT_CalendarDate AS _MKT_CalendarDate ON InteractionUTCDate = _MKT_CalendarDate.CalendarDate  -- association [0..1]
LEFT OUTER JOIN I_MKT_CampaignVersion AS _MKT_CampaignVersion ON CampaignVersion = _MKT_CampaignVersion.CampaignVersion  -- association [0..1]
LEFT OUTER JOIN I_MKT_CampaignExecutionRun AS _MKT_CampaignExecutionRun ON CampaignExecutionRun = _MKT_CampaignExecutionRun.CampaignExecutionRun  -- association [0..1]
LEFT OUTER JOIN I_Mkt_Initiative AS _Mkt_Initiative ON CampaignID = _Mkt_Initiative.CampaignID  -- association [0..1]
LEFT OUTER JOIN I_MKT_Contactorigin AS _MKT_Contactorigin ON InteractionContactOrigin = _MKT_Contactorigin.InteractionContactOrigin  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_MKT_MarketingArea AS _MKT_MarketingArea ON MarketingArea = _MKT_MarketingArea.MarketingArea  -- association [0..1]
;