A_MKT_Program
Marketing Program
A_MKT_Program is a CDS View that provides data about "Marketing Program" in SAP S/4HANA. It reads from 1 data source (I_MKT_Program) and exposes 20 fields with key field MarketingProgramUUID. It has 4 associations to related views. Part of development package CUAN_CDS_MRM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MKT_Program | Program | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_MKT_PROGRAM | _Extension | _Extension.MarketingProgram = _Extension.MarketingProgram |
| [1..1] | A_MKT_PgmHeaderPrpsdSpend | _ProgramHeaderProposedSpend | $projection.MarketingProgramUUID = _ProgramHeaderProposedSpend.MarketingProgramUUID |
| [0..*] | A_MKT_MediaTypeSpend | _MediaTypeSpend | $projection.MarketingProgramUUID = _MediaTypeSpend.MarketingProgramUUID |
| [0..*] | A_MKT_ProgramPhase | _ProgramPhase | $projection.MarketingProgramUUID = _ProgramPhase.MarketingProgramUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AMKT_PROGRAM | view | |
| VDM.viewtype | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Marketing Program | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MarketingProgramUUID | |||
| MarketingProgramID | I_MKT_Program | MarketingProgramID | ||
| MarketingProgramName | I_MKT_Program | MarketingProgramName | ||
| MarketingProgramMarketingArea | I_MKT_Program | MarketingArea | ||
| MktgProgramMktgAreaName | ||||
| MarketingProgramValidFromDate | I_MKT_Program | MarketingProgramValidFromDate | ||
| MarketingProgramValidToDate | I_MKT_Program | MarketingProgramValidToDate | ||
| MarketingPlanUUID | I_MKT_Program | MarketingPlanUUID | ||
| MktgProgramDetailDimension | I_MKT_Program | MktgProgramDetailDimension | ||
| MktgProgramTimeDimension | I_MKT_Program | MktgProgramTimeDimension | ||
| MktgProgramCreationDateTime | ||||
| MktgProgramCreatedByUser | I_MKT_Program | MktgProgramCreatedByUser | Version Created By | |
| MktgProgramLastChgdDateTime | ||||
| MktgProgramLastChgdByUser | I_MKT_Program | MktgProgramLastChgdByUser | User Name | |
| MktgProgramCreatedByUserName | ||||
| MarketingPlanName | ||||
| MarketingProgramCurrency | _ProgramHeaderProposedSpend | MarketingProgramCurrency | ||
| _ProgramHeaderProposedSpend | _ProgramHeaderProposedSpend | |||
| _MediaTypeSpend | _MediaTypeSpend | |||
| _ProgramPhase | _ProgramPhase |
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_Program.
-- 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: AMKT_PROGRAM
CREATE VIEW A_MKT_Program AS
SELECT
cast(Program.MarketingProgram as cuan_programuuid preserving type ) AS MarketingProgramUUID,
Program.MarketingProgramID AS MarketingProgramID,
Program.MarketingProgramName AS MarketingProgramName,
Program.MarketingArea AS MarketingProgramMarketingArea,
cast(Program._MarketingProgramMktgArea._Text[1:Language=$session.system_language].MarketingAreaName as cuan_programmarketingareaname preserving type ) AS MktgProgramMktgAreaName,
Program.MarketingProgramValidFromDate AS MarketingProgramValidFromDate,
Program.MarketingProgramValidToDate AS MarketingProgramValidToDate,
Program.MarketingPlanUUID AS MarketingPlanUUID,
Program.MktgProgramDetailDimension AS MktgProgramDetailDimension,
Program.MktgProgramTimeDimension AS MktgProgramTimeDimension,
cast(Program.MktgProgramCreationDateTime as cuan_programcreationdatetime preserving type ) AS MktgProgramCreationDateTime,
Program.MktgProgramCreatedByUser AS MktgProgramCreatedByUser,
cast(Program.MktgProgramLastChgdDateTime as cuan_programlastchgddatetime preserving type ) AS MktgProgramLastChgdDateTime,
Program.MktgProgramLastChgdByUser AS MktgProgramLastChgdByUser,
cast(Program._MktgProgramCreatedByUser.FullName as cuan_programcreatedbyusername preserving type ) AS MktgProgramCreatedByUserName,
Program._MKT_MarketingPlan.MarketingPlanName AS MarketingPlanName,
_ProgramHeaderProposedSpend.MarketingProgramCurrency AS MarketingProgramCurrency
FROM I_MKT_Program AS Program
LEFT OUTER JOIN E_MKT_PROGRAM AS _Extension ON _Extension.MarketingProgram = _Extension.MarketingProgram -- association [1..1]
LEFT OUTER JOIN A_MKT_PgmHeaderPrpsdSpend AS _ProgramHeaderProposedSpend ON MarketingProgramUUID = _ProgramHeaderProposedSpend.MarketingProgramUUID -- association [1..1]
LEFT OUTER JOIN A_MKT_MediaTypeSpend AS _MediaTypeSpend ON MarketingProgramUUID = _MediaTypeSpend.MarketingProgramUUID -- association [0..*]
LEFT OUTER JOIN A_MKT_ProgramPhase AS _ProgramPhase ON MarketingProgramUUID = _ProgramPhase.MarketingProgramUUID -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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