C_MKT_CampaignByCmpgnContent

DDL: C_MKT_CAMPAIGNBYCMPGNCONTENT SQL: CMKT_CPGBYCPGCNT Type: view CONSUMPTION Package: CUAN_CDS_INITIATIVE

Campaign By Campaign Content

C_MKT_CampaignByCmpgnContent is a Consumption CDS View that provides data about "Campaign By Campaign Content" in SAP S/4HANA. It reads from 7 data sources and exposes 24 fields with key fields CampaignContent, CampaignID. It has 2 associations to related views. Part of development package CUAN_CDS_INITIATIVE.

Data Sources (7)

SourceAliasJoin Type
I_MKT_CampaignCategoryText _CategoryText left_outer
I_MKT_CampaignLifeCycleStsText _LifeCycleStatusText left_outer
I_MKT_MarketingAreaText _MarketingAreaText left_outer
I_MKT_MediaTypeText _MediaTypeText left_outer
I_MKT_CampaignPriorityText _PriorityText left_outer
I_MKT_CampaignProcessTypeText _ProcessTypeText left_outer
I_MKT_CampaignContentUsgeTypeT _UsageTypeText left_outer

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_MKT_CampaignTeamMember _MKT_CampaignTeamMember $projection.Campaign = _MKT_CampaignTeamMember.Campaign
[0..*] I_MKT_CmpgnTmplTeamMember _MKT_CmpgnTmplTeamMember $projection.Campaign = _MKT_CmpgnTmplTeamMember.CampaignTemplateUUID

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CMKT_CPGBYCPGCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Campaign By Campaign Content view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
OData.entitySet.name CampaignByCampaignContents view
Search.searchable true view
UI.textArrangement #TEXT_ONLY view
VDM.viewType #CONSUMPTION view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY CampaignContent CampaignByCmpgnContent CampaignContent
KEY CampaignID CampaignByCmpgnContent CampaignID
IsCampaignTemplate IsCampaignTemplate
Campaign CampaignByCmpgnContent Campaign Mktg Campaign
CampaignName CampaignByCmpgnContent CampaignName
CampaignLifecycleStatus CampaignByCmpgnContent CampaignLifecycleStatus
CampaignLifecycleStatusName I_MKT_CampaignLifeCycleStsText CampaignLifecycleStatusName Short text
CampaignPriority CampaignByCmpgnContent CampaignPriority
CampaignPriorityName I_MKT_CampaignPriorityText CampaignPriorityName
CampaignCategory CampaignByCmpgnContent CampaignCategory TemplateCategoryID
CampaignCategoryName I_MKT_CampaignCategoryText CampaignCategoryName Text
CampaignProcessType CampaignByCmpgnContent CampaignProcessType
CampaignProcessTypeName I_MKT_CampaignProcessTypeText CampaignProcessTypeName Short text
MediaType CampaignByCmpgnContent MediaType
MediaTypeName I_MKT_MediaTypeText MediaTypeName
CampaignStartDate CampaignByCmpgnContent CampaignStartDate
CampaignEndDate CampaignByCmpgnContent CampaignEndDate
CampaignLastChgdDateTime CampaignByCmpgnContent CampaignLastChgdDateTime
CampaignIconName
CampaignIconURL
MarketingArea CampaignByCmpgnContent CampaignMktgArea Marketing Area
MarketingAreaName I_MKT_MarketingAreaText MarketingAreaName
_MKT_CampaignTeamMember _MKT_CampaignTeamMember
_MKT_CmpgnTmplTeamMember _MKT_CmpgnTmplTeamMember

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 C_MKT_CampaignByCmpgnContent.
-- 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: CMKT_CPGBYCPGCNT

CREATE VIEW C_MKT_CampaignByCmpgnContent AS
SELECT
  CampaignByCmpgnContent.CampaignContent AS CampaignContent,
  CampaignByCmpgnContent.CampaignID AS CampaignID,
  IsCampaignTemplate,
  CampaignByCmpgnContent.Campaign AS Campaign,
  CampaignByCmpgnContent.CampaignName AS CampaignName,
  CampaignByCmpgnContent.CampaignLifecycleStatus AS CampaignLifecycleStatus,
  _LifeCycleStatusText.CampaignLifecycleStatusName AS CampaignLifecycleStatusName,
  CampaignByCmpgnContent.CampaignPriority AS CampaignPriority,
  _PriorityText.CampaignPriorityName AS CampaignPriorityName,
  CampaignByCmpgnContent.CampaignCategory AS CampaignCategory,
  _CategoryText.CampaignCategoryName AS CampaignCategoryName,
  CampaignByCmpgnContent.CampaignProcessType AS CampaignProcessType,
  _ProcessTypeText.CampaignProcessTypeName AS CampaignProcessTypeName,
  CampaignByCmpgnContent.MediaType AS MediaType,
  _MediaTypeText.MediaTypeName AS MediaTypeName,
  CampaignByCmpgnContent.CampaignStartDate AS CampaignStartDate,
  CampaignByCmpgnContent.CampaignEndDate AS CampaignEndDate,
  CampaignByCmpgnContent.CampaignLastChgdDateTime AS CampaignLastChgdDateTime,
  cast('' as hpa_sapui5_icon_name ) AS CampaignIconName,
  cast('' as abap.char(1333) ) AS CampaignIconURL,
  CampaignByCmpgnContent.CampaignMktgArea AS MarketingArea,
  _MarketingAreaText.MarketingAreaName AS MarketingAreaName
LEFT OUTER JOIN I_MKT_CampaignLifeCycleStsText AS _LifeCycleStatusText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CampaignContentUsgeTypeT AS _UsageTypeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CampaignPriorityText AS _PriorityText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CampaignCategoryText AS _CategoryText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CampaignProcessTypeText AS _ProcessTypeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_MediaTypeText AS _MediaTypeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_MarketingAreaText AS _MarketingAreaText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MKT_CampaignTeamMember AS _MKT_CampaignTeamMember ON Campaign = _MKT_CampaignTeamMember.Campaign  -- association [0..*]
LEFT OUTER JOIN I_MKT_CmpgnTmplTeamMember AS _MKT_CmpgnTmplTeamMember ON Campaign = _MKT_CmpgnTmplTeamMember.CampaignTemplateUUID  -- association [0..*]
;