I_MKT_TargetGroup
Marketing: Target Group
I_MKT_TargetGroup is a Basic CDS View (Dimension) that provides data about "Marketing: Target Group" in SAP S/4HANA. It reads from 1 data source (cuan_d_tg_root) and exposes 39 fields with key field TargetGroupUUID. It has 10 associations to related views. Part of development package CUAN_CDS_TARGET_GROUP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cuan_d_tg_root | Persistence | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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_TgtGrpMemberTypeText | _MKT_MEMBER_TYPE_DESC | Persistence.member_type = _MKT_MEMBER_TYPE_DESC.TargetGroupMemberType and _MKT_MEMBER_TYPE_DESC.LanguageCode = $session.system_language |
| [0..1] | I_MKT_MarketingAreaText | _MKT_MarketingAreaText | Persistence.mkt_area_id = _MKT_MarketingAreaText.MarketingArea and _MKT_MarketingAreaText.Language = $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..*] | I_MKT_TgtGrpIntactnCntct | _MKT_TGInteractionContact | Persistence.db_key = _MKT_TGInteractionContact.TargetGroupUUID |
| [0..1] | I_MKT_TargetGroupTypeText | _MKT_TargetGroupTypeText | Persistence.type = _MKT_TargetGroupTypeText.DomainValue and _MKT_TargetGroupTypeText.LanguageCode = $session.system_language |
| [0..1] | I_MKT_LiveTgtGrpMemberCount | _MKT_LIVETARGETGROUPCOUNT | Persistence.gres_ref = _MKT_LIVETARGETGROUPCOUNT.ResultSetReferenceUUID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMKTTARGETGROUP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Marketing: Target Group | view | |
| ObjectModel.sapObjectNodeType.name | MarketingTargetGroup | view | |
| ObjectModel.representativeKey | TargetGroupUUID | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| TargetGroupMemberType | cuan_d_tg_root | member_type | ||
| TargetGroupMemberTypeName | _MKT_MEMBER_TYPE_DESC | TargetGroupMemberTypeName | ||
| TargetGroupOrigin | cuan_d_tg_root | origin | Task Origin | |
| TargetGroupOriginName | _MKT_OriginText | TargetGroupOriginName | ||
| IsTargetGroupVersioningActive | cuan_d_tg_root | versioning | Enable Snapshot | |
| 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 | ||
| TargetGroupControlGroup | ||||
| TargetGroupControlGroupUUID | cuan_d_tg_root | control_group | ||
| MarketingArea | cuan_d_tg_root | mkt_area_id | ||
| MarketingAreaNameasMarketingAreaName | ||||
| SegmentationApplication | cuan_d_tg_root | appl_id | Policy Key | |
| SegmentationObject | cuan_d_tg_root | ot_id | ||
| SegmentationObjectName | _MKT_Segmentation_Object_Text | SegmentationObjectName | ||
| TargetGroupType | cuan_d_tg_root | type | Worklist Type | |
| TargetGroupTypeName | _MKT_TargetGroupTypeText | TargetGroupTypeName | ||
| _MKT_IC_Member_Count | _MKT_IC_Member_Count | |||
| _MKT_OriginText | _MKT_OriginText | |||
| _MKT_MarketingAreaText | _MKT_MarketingAreaText | |||
| _MKT_MEMBER_TYPE_DESC | _MKT_MEMBER_TYPE_DESC | |||
| _MKT_Segmentation_Object_Text | _MKT_Segmentation_Object_Text | |||
| _Mkt_ControlGroup | _Mkt_ControlGroup | |||
| _MKT_TGInteractionContact | _MKT_TGInteractionContact | |||
| _MKT_TargetGroupTypeText | _MKT_TargetGroupTypeText | |||
| _MKT_LIVETARGETGROUPCOUNT | _MKT_LIVETARGETGROUPCOUNT | |||
| _MKT_TargetGroupCategoryText | _MKT_TargetGroupCategoryText |
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.
-- SQL view name: IMKTTARGETGROUP
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.member_type AS TargetGroupMemberType,
_MKT_MEMBER_TYPE_DESC.TargetGroupMemberTypeName AS TargetGroupMemberTypeName,
Persistence.origin AS TargetGroupOrigin,
_MKT_OriginText.TargetGroupOriginName AS TargetGroupOriginName,
Persistence.versioning AS IsTargetGroupVersioningActive,
Persistence.version AS TargetGroupVersion,
Persistence.last_rebuild AS TargetGroupLastRebuildDateTime,
Persistence.dynamic AS TargetGroupCategory,
_MKT_TargetGroupCategoryText.TargetGroupCategoryName AS TargetGroupCategoryName,
cast(ltrim(_Mkt_ControlGroup.TargetGroup, '0') as cuan_api_tg_cg preserving type) AS TargetGroupControlGroup,
Persistence.control_group AS TargetGroupControlGroupUUID,
Persistence.mkt_area_id AS MarketingArea,
Persistence.appl_id AS SegmentationApplication,
Persistence.ot_id AS SegmentationObject,
_MKT_Segmentation_Object_Text.SegmentationObjectName AS SegmentationObjectName,
Persistence.type AS TargetGroupType,
_MKT_TargetGroupTypeText.TargetGroupTypeName AS TargetGroupTypeName
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_TgtGrpMemberTypeText AS _MKT_MEMBER_TYPE_DESC ON Persistence.member_type = _MKT_MEMBER_TYPE_DESC.TargetGroupMemberType AND _MKT_MEMBER_TYPE_DESC.LanguageCode = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MKT_MarketingAreaText AS _MKT_MarketingAreaText ON Persistence.mkt_area_id = _MKT_MarketingAreaText.MarketingArea AND _MKT_MarketingAreaText.Language = $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_TgtGrpIntactnCntct AS _MKT_TGInteractionContact ON Persistence.db_key = _MKT_TGInteractionContact.TargetGroupUUID -- association [0..*]
LEFT OUTER JOIN I_MKT_TargetGroupTypeText AS _MKT_TargetGroupTypeText ON Persistence.type = _MKT_TargetGroupTypeText.DomainValue AND _MKT_TargetGroupTypeText.LanguageCode = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MKT_LiveTgtGrpMemberCount AS _MKT_LIVETARGETGROUPCOUNT ON Persistence.gres_ref = _MKT_LIVETARGETGROUPCOUNT.ResultSetReferenceUUID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA