I_MKT_ContactRelationData

DDL: I_MKT_CONTACTRELATIONDATA SQL: IMKT_CNTCTRELTN Type: view BASIC Package: CUAN_CDS_CONTACT

Marketing: Contact Relation Data

I_MKT_ContactRelationData is a Basic CDS View (Dimension) that provides data about "Marketing: Contact Relation Data" in SAP S/4HANA. It reads from 2 data sources (cuand_ce_ic_fcet, cuand_ce_ic_rl_d) and exposes 52 fields with key field ContactRelationDataUUID. It has 18 associations to related views. Part of development package CUAN_CDS_CONTACT.

Data Sources (2)

SourceAliasJoin Type
cuand_ce_ic_fcet cuand_ce_ic_fcet inner
cuand_ce_ic_rl_d cuand_ce_ic_rl_d from

Associations (18)

CardinalityTargetAliasCondition
[1..1] E_MKT_PERSON _Extension cuand_ce_ic_rl_d.root_key = _Extension.Person
[1..1] E_MKT_CONTACT _InteractionContactExtension cuand_ce_ic_rl_d.root_key = _InteractionContactExtension.InteractionContact
[1..1] E_MKT_ContactRelationData _ContactRelationDataExtension cuand_ce_ic_rl_d.db_key = _ContactRelationDataExtension.ContactRelationDataUUID
[1..1] E_MKT_PersonRelationData _PersonRelationDataExtension cuand_ce_ic_rl_d.db_key = _PersonRelationDataExtension.PersonRelationDataUUID
[1..*] I_MKT_ContactFacetData_2 _MKT_ContactFacetData $projection.ContactOrigin = _MKT_ContactFacetData.InteractionContactOrigin and $projection.ContactID = _MKT_ContactFacetData.InteractionContactId
[0..1] I_MKT_ValidationStatus _MKT_ValidationStatus $projection.ValidationStatus = _MKT_ValidationStatus.ValidationStatus
[0..1] I_MKT_Region _MKT_Region $projection.Country = _MKT_Region.Country and $projection.AddressRegion = _MKT_Region.Region
[0..1] I_MKT_Country _MKT_Country $projection.Country = _MKT_Country.Country
[0..1] I_MKT_RelationshipCategory _MKT_RelationshipCategory $projection.RelationshipCategory = _MKT_RelationshipCategory.RelationshipCategory
[0..1] I_MKT_Industry _MKT_Industry $projection.Industry = _MKT_Industry.Industry
[0..1] I_MKT_Function _MKT_Function $projection.InteractionContactFunction = _MKT_Function.Function
[0..1] I_Language _Language $projection.LanguageCode = _Language.Language
[0..1] I_MKT_Department _MKT_Department $projection.Department = _MKT_Department.Department
[0..1] I_MKT_ContactTitle _MKT_ContactTitle $projection.FormOfAddress = _MKT_ContactTitle.FormOfAddress
[0..*] I_MKT_IntactnCntctMktgArea _MKT_IntactnCntctMktgArea $projection.InteractionContact = _MKT_IntactnCntctMktgArea.InteractionContactUUID and $projection.ContactOrigin = _MKT_IntactnCntctMktgArea.InteractionContactOrigin
[1..1] I_Mkt_Contact _MKT_Contact $projection.InteractionContact = _MKT_Contact.InteractionContact
[0..1] I_MKT_Contactorigin _MKT_ContactOrigin $projection.ContactOrigin = _MKT_ContactOrigin.InteractionContactOrigin
[0..1] I_MKT_Contactorigin _MKT_RelatedContactOrigin $projection.ReltdIntactnContactOrigin = _MKT_RelatedContactOrigin.InteractionContactOrigin

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IMKT_CNTCTRELTN view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
AbapCatalog.preserveKey true view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Marketing: Contact Relation Data view
ObjectModel.sapObjectNodeType.name InteractionContactRelation view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY ContactRelationDataUUID
InteractionContact
InteractionContactFacetUUID
ContactOrigin cuand_ce_ic_rl_d id_origin
ContactID cuand_ce_ic_rl_d id WorklistID
RelationshipCategory cuand_ce_ic_rl_d rel_type Rel.Ent.Type
ReltdIntactnContactOrigin cuand_ce_ic_rl_d rel_origin_to
ReltdIntactnContactID cuand_ce_ic_rl_d rel_id_to
FullName cuand_ce_ic_rl_d name_text Full Name
FirstName cuand_ce_ic_rl_d name_first First Name
LastName cuand_ce_ic_rl_d name_last Last Name
Department cuand_ce_ic_rl_d abtnr Department
DepartmentName cuand_ce_ic_rl_d abtnr_ft Department
InteractionContactFunction cuand_ce_ic_rl_d pafkt Function
IntactnCntctFunctionFreeText cuand_ce_ic_rl_d pafkt_ft Function
CityName cuand_ce_ic_rl_d city1 City
StreetName cuand_ce_ic_rl_d street Street Code
AddressHouseNumber cuand_ce_ic_rl_d house_num1 House Number
LanguageCode cuand_ce_ic_rl_d language Report Text Language
LanguageFreeText cuand_ce_ic_rl_d language_ft
Country cuand_ce_ic_rl_d country Venue: Ctry/Reg
CountryFreeText cuand_ce_ic_rl_d country_ft
AddressRegion cuand_ce_ic_rl_d region Venue Region
RegionFreeText cuand_ce_ic_rl_d region_ft
ValidationStatus _MKT_ContactFacetData ValidationStatus
ContactPostalCode cuand_ce_ic_rl_d postcode1 Postal Code
FormOfAddress cuand_ce_ic_rl_d title View Title
Industry cuand_ce_ic_rl_d brsch Industry
IndustryKeyText cuand_ce_ic_rl_d brsch_ft
Latitude cuand_ce_ic_rl_d latitude Latitude
Longitude cuand_ce_ic_rl_d longitude Longitude
SpatialReferenceSystem cuand_ce_ic_rl_d srid Stability Rule DRP
LastChangeDateTime cuand_ce_ic_rl_d lchg_date_time Time Stamp
LastChangedByUser cuand_ce_ic_rl_d lchg_uname User Name
CreationDateTime cuand_ce_ic_rl_d crea_date_time Time Stamp
CreatedByUser cuand_ce_ic_rl_d crea_uname User Name
IsMainContact cuand_ce_ic_rl_d is_main
RelatedInteractionContactUUID cuand_ce_ic_rl_d contact_key_to NodeID
RelationDataLastChgUTCDateTime cuand_ce_ic_rl_d timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
_MKT_ValidationStatus _MKT_ValidationStatus
_MKT_ContactTitle _MKT_ContactTitle
_MKT_Region _MKT_Region
_MKT_Country _MKT_Country
_MKT_Industry _MKT_Industry
_MKT_Function _MKT_Function
_MKT_Department _MKT_Department
_MKT_RelationshipCategory _MKT_RelationshipCategory
_Language _Language
_MKT_IntactnCntctMktgArea _MKT_IntactnCntctMktgArea
_MKT_Contact _MKT_Contact
_MKT_ContactOrigin _MKT_ContactOrigin
_MKT_RelatedContactOrigin _MKT_RelatedContactOrigin

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_ContactRelationData.
-- 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_CNTCTRELTN

CREATE VIEW I_MKT_ContactRelationData AS
SELECT
  cast(cuand_ce_ic_rl_d.db_key as cuan_key_ext) AS ContactRelationDataUUID,
  cast(cuand_ce_ic_rl_d.root_key as cuan_key_ext) AS InteractionContact,
  cast(cuand_ce_ic_rl_d.parent_key as cuan_key_ext ) AS InteractionContactFacetUUID,
  cuand_ce_ic_rl_d.id_origin AS ContactOrigin,
  cuand_ce_ic_rl_d.id AS ContactID,
  cuand_ce_ic_rl_d.rel_type AS RelationshipCategory,
  cuand_ce_ic_rl_d.rel_origin_to AS ReltdIntactnContactOrigin,
  cuand_ce_ic_rl_d.rel_id_to AS ReltdIntactnContactID,
  cuand_ce_ic_rl_d.name_text AS FullName,
  cuand_ce_ic_rl_d.name_first AS FirstName,
  cuand_ce_ic_rl_d.name_last AS LastName,
  cuand_ce_ic_rl_d.abtnr AS Department,
  cuand_ce_ic_rl_d.abtnr_ft AS DepartmentName,
  cuand_ce_ic_rl_d.pafkt AS InteractionContactFunction,
  cuand_ce_ic_rl_d.pafkt_ft AS IntactnCntctFunctionFreeText,
  cuand_ce_ic_rl_d.city1 AS CityName,
  cuand_ce_ic_rl_d.street AS StreetName,
  cuand_ce_ic_rl_d.house_num1 AS AddressHouseNumber,
  cuand_ce_ic_rl_d.language AS LanguageCode,
  cuand_ce_ic_rl_d.language_ft AS LanguageFreeText,
  cuand_ce_ic_rl_d.country AS Country,
  cuand_ce_ic_rl_d.country_ft AS CountryFreeText,
  cuand_ce_ic_rl_d.region AS AddressRegion,
  cuand_ce_ic_rl_d.region_ft AS RegionFreeText,
  _MKT_ContactFacetData.ValidationStatus AS ValidationStatus,
  cuand_ce_ic_rl_d.postcode1 AS ContactPostalCode,
  cuand_ce_ic_rl_d.title AS FormOfAddress,
  cuand_ce_ic_rl_d.brsch AS Industry,
  cuand_ce_ic_rl_d.brsch_ft AS IndustryKeyText,
  cuand_ce_ic_rl_d.latitude AS Latitude,
  cuand_ce_ic_rl_d.longitude AS Longitude,
  cuand_ce_ic_rl_d.srid AS SpatialReferenceSystem,
  cuand_ce_ic_rl_d.lchg_date_time AS LastChangeDateTime,
  cuand_ce_ic_rl_d.lchg_uname AS LastChangedByUser,
  cuand_ce_ic_rl_d.crea_date_time AS CreationDateTime,
  cuand_ce_ic_rl_d.crea_uname AS CreatedByUser,
  cuand_ce_ic_rl_d.is_main AS IsMainContact,
  cuand_ce_ic_rl_d.contact_key_to AS RelatedInteractionContactUUID,
  cuand_ce_ic_rl_d.timestamp AS RelationDataLastChgUTCDateTime
FROM cuand_ce_ic_rl_d
INNER JOIN cuand_ce_ic_fcet ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_MKT_PERSON AS _Extension ON cuand_ce_ic_rl_d.root_key = _Extension.Person  -- association [1..1]
LEFT OUTER JOIN E_MKT_CONTACT AS _InteractionContactExtension ON cuand_ce_ic_rl_d.root_key = _InteractionContactExtension.InteractionContact  -- association [1..1]
LEFT OUTER JOIN E_MKT_ContactRelationData AS _ContactRelationDataExtension ON cuand_ce_ic_rl_d.db_key = _ContactRelationDataExtension.ContactRelationDataUUID  -- association [1..1]
LEFT OUTER JOIN E_MKT_PersonRelationData AS _PersonRelationDataExtension ON cuand_ce_ic_rl_d.db_key = _PersonRelationDataExtension.PersonRelationDataUUID  -- association [1..1]
LEFT OUTER JOIN I_MKT_ContactFacetData_2 AS _MKT_ContactFacetData ON ContactOrigin = _MKT_ContactFacetData.InteractionContactOrigin AND ContactID = _MKT_ContactFacetData.InteractionContactId  -- association [1..*]
LEFT OUTER JOIN I_MKT_ValidationStatus AS _MKT_ValidationStatus ON ValidationStatus = _MKT_ValidationStatus.ValidationStatus  -- association [0..1]
LEFT OUTER JOIN I_MKT_Region AS _MKT_Region ON Country = _MKT_Region.Country AND AddressRegion = _MKT_Region.Region  -- association [0..1]
LEFT OUTER JOIN I_MKT_Country AS _MKT_Country ON Country = _MKT_Country.Country  -- association [0..1]
LEFT OUTER JOIN I_MKT_RelationshipCategory AS _MKT_RelationshipCategory ON RelationshipCategory = _MKT_RelationshipCategory.RelationshipCategory  -- association [0..1]
LEFT OUTER JOIN I_MKT_Industry AS _MKT_Industry ON Industry = _MKT_Industry.Industry  -- association [0..1]
LEFT OUTER JOIN I_MKT_Function AS _MKT_Function ON InteractionContactFunction = _MKT_Function.Function  -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON LanguageCode = _Language.Language  -- association [0..1]
LEFT OUTER JOIN I_MKT_Department AS _MKT_Department ON Department = _MKT_Department.Department  -- association [0..1]
LEFT OUTER JOIN I_MKT_ContactTitle AS _MKT_ContactTitle ON FormOfAddress = _MKT_ContactTitle.FormOfAddress  -- association [0..1]
LEFT OUTER JOIN I_MKT_IntactnCntctMktgArea AS _MKT_IntactnCntctMktgArea ON InteractionContact = _MKT_IntactnCntctMktgArea.InteractionContactUUID AND ContactOrigin = _MKT_IntactnCntctMktgArea.InteractionContactOrigin  -- association [0..*]
LEFT OUTER JOIN I_Mkt_Contact AS _MKT_Contact ON InteractionContact = _MKT_Contact.InteractionContact  -- association [1..1]
LEFT OUTER JOIN I_MKT_Contactorigin AS _MKT_ContactOrigin ON ContactOrigin = _MKT_ContactOrigin.InteractionContactOrigin  -- association [0..1]
LEFT OUTER JOIN I_MKT_Contactorigin AS _MKT_RelatedContactOrigin ON ReltdIntactnContactOrigin = _MKT_RelatedContactOrigin.InteractionContactOrigin  -- association [0..1]
;