I_MKT_TargetGroup

DDL: I_MKT_TARGETGROUP Type: view_entity BASIC

Communication: Recipient List

I_MKT_TargetGroup is a Basic CDS View (Dimension) that provides data about "Communication: Recipient List" in SAP S/4HANA. It reads from 1 data source (cuan_d_tg_root) and exposes 36 fields with key field TargetGroupUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
cuan_d_tg_root Persistence from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_MKT_TargetGroupCategoryText _MKT_TargetGroupCategoryText Persistence.dynamic = _MKT_TargetGroupCategoryText.DomainValue and _MKT_TargetGroupCategoryText.LanguageCode = $session.system_language --
[0..1] I_MKT_TargetGroupControlGroup _Mkt_ControlGroup Persistence.control_group = _Mkt_ControlGroup.TargetGroupUUID
[0..1] I_MKT_SegmentationObjectText _MKT_Segmentation_Object_Text Persistence.ot_id = _MKT_Segmentation_Object_Text.SegmentationObject and Persistence.appl_id = _MKT_Segmentation_Object_Text.SegmentationApplication and _MKT_Segmentation_Object_Text.LanguageCode = $session.system_language
[0..1] I_MKT_TargetGroupOriginText _MKT_OriginText Persistence.origin = _MKT_OriginText.TargetGroupOrigin and _MKT_OriginText.LanguageCode = $session.system_language
[0..1] I_MKT_TgtGrpIntactnCntctCount _MKT_IC_Member_Count Persistence.db_key = _MKT_IC_Member_Count.TargetGroupUUID
[0..1] I_MKT_LiveTgtGrpMemberCount _MKT_LIVETARGETGROUPCOUNT Persistence.gres_ref = _MKT_LIVETARGETGROUPCOUNT.ResultSetReferenceUUID
[0..1] I_ReferencedOrgStructure _ReferencedOrgStructure $projection.ReferencedOrgStructure = _ReferencedOrgStructure.ReferencedOrgStructure
[0..1] I_CommunicationArea _CommunicationArea $projection.CommunicationArea = _CommunicationArea.CommunicationArea and $projection.ReferencedOrgStructure = _CommunicationArea.ReferencedOrgStructure
[0..*] I_AuthorizedCommunicationArea _AuthCommArea $projection.CommunicationArea = _AuthCommArea.CommunicationArea and $projection.ReferencedOrgStructure = _AuthCommArea.ReferencedOrgStructure

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Communication: Recipient List view
ObjectModel.representativeKey TargetGroupUUID view
Analytics.dataCategory #DIMENSION view
Analytics.technicalName IMKTTARGETGROUP view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY TargetGroupUUID cuan_d_tg_root db_key UUID
TargetGroup
TargetGroupName cuan_d_tg_root target_group_name
TargetGroupDescription cuan_d_tg_root description Well Code Des.
TargetGroupLifecycleStatus cuan_d_tg_root life_cycle_status Life Cycle
ResultSetReferenceUUID cuan_d_tg_root gres_ref NodeID
ChangedOnDateTime cuan_d_tg_root lchg_date_time Time Stamp
LastChangedByUser cuan_d_tg_root lchg_uname User Name
CreationDateTime cuan_d_tg_root crea_date_time Time Stamp
CreatedByUser cuan_d_tg_root crea_uname User Name
TargetGroupMainResponsible cuan_d_tg_root responsible User Name
TargetGroupOrigin cuan_d_tg_root origin Task Origin
TargetGroupOriginName _MKT_OriginText TargetGroupOriginName
IsTargetGroupVersioningActive
TargetGroupVersion cuan_d_tg_root version XML Vers.
TargetGroupLastRebuildDateTime cuan_d_tg_root last_rebuild
TargetGroupCategory cuan_d_tg_root dynamic Dynamic
TargetGroupCategoryName _MKT_TargetGroupCategoryText TargetGroupCategoryName
TargetGroupControlGroupUUID
CommunicationArea cuan_d_tg_root comm_area_id
ReferencedOrgStructure cuan_d_tg_root ref_org_struc
SegmentationApplication cuan_d_tg_root appl_id Policy Key
SegmentationObject cuan_d_tg_root ot_id
SegmentationObjectName _MKT_Segmentation_Object_Text SegmentationObjectName
TargetGroupType
TargetGroupTypeName
_MKT_IC_Member_Count _MKT_IC_Member_Count
_MKT_OriginText _MKT_OriginText
_MKT_Segmentation_Object_Text _MKT_Segmentation_Object_Text
_Mkt_ControlGroup
_MKT_TargetGroupTypeText
_MKT_LIVETARGETGROUPCOUNT _MKT_LIVETARGETGROUPCOUNT
_MKT_TargetGroupCategoryText _MKT_TargetGroupCategoryText
_ReferencedOrgStructure _ReferencedOrgStructure
_CommunicationArea _CommunicationArea
_AuthCommArea _AuthCommArea

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_TargetGroup.
-- 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.

CREATE VIEW I_MKT_TargetGroup AS
SELECT
  Persistence.db_key AS TargetGroupUUID,
  cast(ltrim(Persistence.id, '0') as cuan_tg_id preserving type) AS TargetGroup,
  Persistence.target_group_name AS TargetGroupName,
  Persistence.description AS TargetGroupDescription,
  Persistence.life_cycle_status AS TargetGroupLifecycleStatus,
  Persistence.gres_ref AS ResultSetReferenceUUID,
  Persistence.lchg_date_time AS ChangedOnDateTime,
  Persistence.lchg_uname AS LastChangedByUser,
  Persistence.crea_date_time AS CreationDateTime,
  Persistence.crea_uname AS CreatedByUser,
  Persistence.responsible AS TargetGroupMainResponsible,
  Persistence.origin AS TargetGroupOrigin,
  _MKT_OriginText.TargetGroupOriginName AS TargetGroupOriginName,
  cast ( Persistence.versioning as cuan_tg_versioning preserving type ) AS IsTargetGroupVersioningActive,
  Persistence.version AS TargetGroupVersion,
  Persistence.last_rebuild AS TargetGroupLastRebuildDateTime,
  Persistence.dynamic AS TargetGroupCategory,
  _MKT_TargetGroupCategoryText.TargetGroupCategoryName AS TargetGroupCategoryName,
  Persistence.comm_area_id AS CommunicationArea,
  Persistence.ref_org_struc AS ReferencedOrgStructure,
  Persistence.appl_id AS SegmentationApplication,
  Persistence.ot_id AS SegmentationObject,
  _MKT_Segmentation_Object_Text.SegmentationObjectName AS SegmentationObjectName
FROM cuan_d_tg_root AS Persistence
LEFT OUTER JOIN I_MKT_TargetGroupCategoryText AS _MKT_TargetGroupCategoryText ON Persistence.dynamic = _MKT_TargetGroupCategoryText.DomainValue AND _MKT_TargetGroupCategoryText.LanguageCode = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MKT_TargetGroupControlGroup AS _Mkt_ControlGroup ON Persistence.control_group = _Mkt_ControlGroup.TargetGroupUUID  -- association [0..1]
LEFT OUTER JOIN I_MKT_SegmentationObjectText AS _MKT_Segmentation_Object_Text ON Persistence.ot_id = _MKT_Segmentation_Object_Text.SegmentationObject AND Persistence.appl_id = _MKT_Segmentation_Object_Text.SegmentationApplication AND _MKT_Segmentation_Object_Text.LanguageCode = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MKT_TargetGroupOriginText AS _MKT_OriginText ON Persistence.origin = _MKT_OriginText.TargetGroupOrigin AND _MKT_OriginText.LanguageCode = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MKT_TgtGrpIntactnCntctCount AS _MKT_IC_Member_Count ON Persistence.db_key = _MKT_IC_Member_Count.TargetGroupUUID  -- association [0..1]
LEFT OUTER JOIN I_MKT_LiveTgtGrpMemberCount AS _MKT_LIVETARGETGROUPCOUNT ON Persistence.gres_ref = _MKT_LIVETARGETGROUPCOUNT.ResultSetReferenceUUID  -- association [0..1]
LEFT OUTER JOIN I_ReferencedOrgStructure AS _ReferencedOrgStructure ON ReferencedOrgStructure = _ReferencedOrgStructure.ReferencedOrgStructure  -- association [0..1]
LEFT OUTER JOIN I_CommunicationArea AS _CommunicationArea ON CommunicationArea = _CommunicationArea.CommunicationArea AND ReferencedOrgStructure = _CommunicationArea.ReferencedOrgStructure  -- association [0..1]
LEFT OUTER JOIN I_AuthorizedCommunicationArea AS _AuthCommArea ON CommunicationArea = _AuthCommArea.CommunicationArea AND ReferencedOrgStructure = _AuthCommArea.ReferencedOrgStructure  -- association [0..*]
;