A_MKT_Campaign
Marketing: Campaign
A_MKT_Campaign is a Composite CDS View that provides data about "Marketing: Campaign" in SAP S/4HANA. It reads from 1 data source (I_Mkt_Initiative) and exposes 48 fields with key field CampaignUUID. It has 18 associations to related views. Part of development package CUAN_ODATA_API_CAMPAIGN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Mkt_Initiative | _MKT_camp | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_MKT_INITIATIVE | _Extension | $projection.CampaignUUID = _Extension.Campaign |
| [0..*] | A_MKT_CampaignInterest | _MKT_IOI | $projection.CampaignUUID = _MKT_IOI.CampaignUUID |
| [0..*] | A_MKT_CampaignTeamMember | _MKT_CampTM | $projection.CampaignUUID = _MKT_CampTM.CampaignUUID |
| [0..*] | A_MKT_CampaignTargetGroup | _MKT_CampTG | $projection.CampaignUUID = _MKT_CampTG.CampaignUUID |
| [0..1] | A_MKT_CmpgnCmtmtActlSpend | _MKT_CampSpend | $projection.CampaignUUID = _MKT_CampSpend.CampaignUUID |
| [0..*] | A_MKT_SpendHeader | _MKT_CampSpend_hdr | $projection.CampaignUUID = _MKT_CampSpend_hdr.CampaignUUID |
| [0..*] | A_MKT_CampaignMktgAgency | _MKT_agncy | $projection.CampaignUUID = _MKT_agncy.CampaignUUID |
| [0..*] | A_MKT_ExtCampaignReference | _MKT_CampEXT | $projection.CampaignUUID = _MKT_CampEXT.CampaignUUID |
| [0..1] | A_MKT_CampaignCategoryText | _CAMP_CAT_Text | _MKT_camp.CampaignCategory = _CAMP_CAT_Text.CampaignCategory and _CAMP_CAT_Text.Language = $session.system_language |
| [0..1] | A_MKT_CmpgnLifeCycleStsTxt | _Life_cycleText | _MKT_camp.CampaignLifecycleStatus = _Life_cycleText.CampaignLifecycleStatus and _Life_cycleText.Language = $session.system_language |
| [0..1] | A_MKT_MediaTypeText | _MediaTypeText | _MKT_camp.MediaType = _MediaTypeText.MediaType and _MediaTypeText.Language = $session.system_language |
| [0..1] | A_MKT_MarketingAreaText | _MKT_MarketingAreaText | $projection.MarketingArea = _MKT_MarketingAreaText.MarketingArea and _MKT_MarketingAreaText.Language = $session.system_language |
| [0..1] | A_MKT_CampaignPriorityText | _PriorityText | _MKT_camp.CampaignPriority = _PriorityText.CampaignPriority and _PriorityText.Language = $session.system_language |
| [0..*] | A_MKT_CommunicationCat | _CommunicationCategory | _MKT_camp.CommunicationCategoryUUID = _CommunicationCategory.CommunicationCategoryUUID |
| [0..1] | A_MKT_CampaignOwnerUser | _camp_owner | _MKT_camp.CampaignOwner = _camp_owner.UserID |
| [0..1] | A_MKT_CampaignUser | _camp_crea_usr | _MKT_camp.CampaignCreatedByUser = _camp_crea_usr.UserID |
| [0..1] | A_MKT_CampaignUser | _camp_lc_usr | _MKT_camp.CampaignLastChgdByUser = _camp_lc_usr.UserID |
| [0..1] | A_MKT_Program | _MKT_PROGRAMTEXT | _MKT_camp.MarketingProgram = _MKT_PROGRAMTEXT.MarketingProgramUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AMKTCAMP | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Marketing: Campaign | view | |
| ObjectModel.representativeKey | CampaignUUID | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.CONTRACT.type | #PUBLIC_REMOTE_API | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CampaignUUID | Campaign | Mktg Campaign | |
| CampaignID | CampaignID | WorklistID | ||
| CampaignName | CampaignName | Zone name | ||
| CampaignDescription | CampaignDescription | Well Code Des. | ||
| CampaignCategory | CampaignCategory | |||
| MarketingArea | MarketingArea | |||
| MarketingAreaName | _MKT_MarketingAreaText | MarketingAreaName | ||
| MarketingProgramUUID | MarketingProgram | Program GUID | ||
| MarketingProgramName | _MKT_PROGRAMTEXT | MarketingProgramName | ||
| CommunicationCategoryUUID | CommunicationCategoryUUID | NodeID | ||
| CommunicationCategoryName | _CommunicationCategory | CommunicationCategoryName | ||
| CampaignCategoryName | _CAMP_CAT_Text | CampaignCategoryName | ||
| CreatedByUser | CampaignCreatedByUser | User Name | ||
| FullNameendasCreatedByUserName | ||||
| LastChangeByUser | CampaignLastChgdByUser | User Name | ||
| FullNameendasLastChangeByUserName | ||||
| CreationDateTime | CampaignCreationDateTime | Time Stamp | ||
| LastChangeDateTime | CampaignLastChgdDateTime | Time Stamp | ||
| CampaignScheduleDateTime | CampaignScheduleDateTime | |||
| CampaignExecutionFrqcyInterval | CampaignExecutionFrqcyInterval | |||
| CampaignExecutionFrequencyUnit | CampaignExecutionFrqcyUnitName | Unit Freq Perd | ||
| CampaignProcessType | CampaignProcessType | Type of Data | ||
| CampaignOwner | CampaignOwner | |||
| FullNameendasCampaignOwnerName | ||||
| CampaignLifecycleStatus | CampaignLifecycleStatus | Life Cycle | ||
| CampaignLifecycleStatusName | _Life_cycleText | CampaignLifecycleStatusName | ||
| CampaignStartDate | CampaignStartDate | Valn start date | ||
| CampaignEndDate | CampaignEndDate | Valn End date | ||
| MediaType | MediaType | |||
| MediaTypeName | _MediaTypeText | MediaTypeName | ||
| CampaignPriority | CampaignPriority | Workflow priority | ||
| CampaignPriorityName | _PriorityText | CampaignPriorityName | ||
| _MKT_CampTM | _MKT_CampTM | |||
| _MKT_IOI | _MKT_IOI | |||
| _MKT_CampTG | _MKT_CampTG | |||
| _MKT_CampEXT | _MKT_CampEXT | |||
| _MKT_CampSpend | _MKT_CampSpend | |||
| _MKT_CampSpend_hdr | _MKT_CampSpend_hdr | |||
| _MKT_agncy | _MKT_agncy | |||
| _CAMP_CAT_Text | _CAMP_CAT_Text | |||
| _Life_cycleText | _Life_cycleText | |||
| _MediaTypeText | _MediaTypeText | |||
| _MKT_MarketingAreaText | _MKT_MarketingAreaText | |||
| _PriorityText | _PriorityText | |||
| _CommunicationCategory | _CommunicationCategory | |||
| _camp_owner | _camp_owner | |||
| _camp_lc_usr | _camp_lc_usr | |||
| _MKT_PROGRAMTEXT | _MKT_PROGRAMTEXT |
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 A_MKT_Campaign.
-- 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: AMKTCAMP
CREATE VIEW A_MKT_Campaign AS
SELECT
Campaign AS CampaignUUID,
CampaignID,
CampaignName,
CampaignDescription,
CampaignCategory,
MarketingArea,
_MKT_MarketingAreaText.MarketingAreaName AS MarketingAreaName,
MarketingProgram AS MarketingProgramUUID,
_MKT_PROGRAMTEXT.MarketingProgramName AS MarketingProgramName,
CommunicationCategoryUUID,
_CommunicationCategory.CommunicationCategoryName AS CommunicationCategoryName,
_CAMP_CAT_Text.CampaignCategoryName AS CampaignCategoryName,
CampaignCreatedByUser AS CreatedByUser,
case when _camp_crea_usr.FullName is null then CampaignCreatedByUser else _camp_crea_usr.FullName end as CreatedByUserName AS FullNameendasCreatedByUserName,
CampaignLastChgdByUser AS LastChangeByUser,
case when _camp_lc_usr.FullName is null then CampaignLastChgdByUser else _camp_lc_usr.FullName end as LastChangeByUserName AS FullNameendasLastChangeByUserName,
CampaignCreationDateTime AS CreationDateTime,
CampaignLastChgdDateTime AS LastChangeDateTime,
CampaignScheduleDateTime,
CampaignExecutionFrqcyInterval,
CampaignExecutionFrqcyUnitName AS CampaignExecutionFrequencyUnit,
CampaignProcessType,
CampaignOwner,
case when _camp_owner.FullName is null then CampaignOwner else _camp_owner.FullName end as CampaignOwnerName AS FullNameendasCampaignOwnerName,
CampaignLifecycleStatus,
_Life_cycleText.CampaignLifecycleStatusName AS CampaignLifecycleStatusName,
CampaignStartDate,
CampaignEndDate,
MediaType,
_MediaTypeText.MediaTypeName AS MediaTypeName,
CampaignPriority,
_PriorityText.CampaignPriorityName AS CampaignPriorityName
FROM I_Mkt_Initiative AS _MKT_camp
LEFT OUTER JOIN E_MKT_INITIATIVE AS _Extension ON CampaignUUID = _Extension.Campaign -- association [1..1]
LEFT OUTER JOIN A_MKT_CampaignInterest AS _MKT_IOI ON CampaignUUID = _MKT_IOI.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CampaignTeamMember AS _MKT_CampTM ON CampaignUUID = _MKT_CampTM.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CampaignTargetGroup AS _MKT_CampTG ON CampaignUUID = _MKT_CampTG.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CmpgnCmtmtActlSpend AS _MKT_CampSpend ON CampaignUUID = _MKT_CampSpend.CampaignUUID -- association [0..1]
LEFT OUTER JOIN A_MKT_SpendHeader AS _MKT_CampSpend_hdr ON CampaignUUID = _MKT_CampSpend_hdr.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CampaignMktgAgency AS _MKT_agncy ON CampaignUUID = _MKT_agncy.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_ExtCampaignReference AS _MKT_CampEXT ON CampaignUUID = _MKT_CampEXT.CampaignUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CampaignCategoryText AS _CAMP_CAT_Text ON _MKT_camp.CampaignCategory = _CAMP_CAT_Text.CampaignCategory AND _CAMP_CAT_Text.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN A_MKT_CmpgnLifeCycleStsTxt AS _Life_cycleText ON _MKT_camp.CampaignLifecycleStatus = _Life_cycleText.CampaignLifecycleStatus AND _Life_cycleText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN A_MKT_MediaTypeText AS _MediaTypeText ON _MKT_camp.MediaType = _MediaTypeText.MediaType AND _MediaTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN A_MKT_MarketingAreaText AS _MKT_MarketingAreaText ON MarketingArea = _MKT_MarketingAreaText.MarketingArea AND _MKT_MarketingAreaText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN A_MKT_CampaignPriorityText AS _PriorityText ON _MKT_camp.CampaignPriority = _PriorityText.CampaignPriority AND _PriorityText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN A_MKT_CommunicationCat AS _CommunicationCategory ON _MKT_camp.CommunicationCategoryUUID = _CommunicationCategory.CommunicationCategoryUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_CampaignOwnerUser AS _camp_owner ON _MKT_camp.CampaignOwner = _camp_owner.UserID -- association [0..1]
LEFT OUTER JOIN A_MKT_CampaignUser AS _camp_crea_usr ON _MKT_camp.CampaignCreatedByUser = _camp_crea_usr.UserID -- association [0..1]
LEFT OUTER JOIN A_MKT_CampaignUser AS _camp_lc_usr ON _MKT_camp.CampaignLastChgdByUser = _camp_lc_usr.UserID -- association [0..1]
LEFT OUTER JOIN A_MKT_Program AS _MKT_PROGRAMTEXT ON _MKT_camp.MarketingProgram = _MKT_PROGRAMTEXT.MarketingProgramUUID -- 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