I_ProductionCampaign
Production Campaign Header
I_ProductionCampaign is a Basic CDS View (Fact) that provides data about "Production Campaign Header" in SAP S/4HANA. It reads from 1 data source (pcmh) and exposes 28 fields with key field ProductionCampaign. It has 9 associations to related views. Part of development package VDM_PP_PI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pcmh | pcmh | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProductionCampaignItem | _ProductionCampaignItem | $projection.ProductionCampaign = _ProductionCampaignItem.ProductionCampaign |
| [1..1] | I_ProductionCampaignCategory | _ProductionCampaignCategory | $projection.ProductionCampaignCategory = _ProductionCampaignCategory.ProductionCampaignCategory |
| [1..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_ProductPlantBasic | _ProductPlant | $projection.Plant = _ProductPlant.Plant and $projection.Product = _ProductPlant.Product |
| [1..1] | I_UnitOfMeasure | _TaktUnit | $projection.ProductionCampaignTaktUnit = _TaktUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.technicalName | IPRODNCAMPAIGN | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_FACT | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Production Campaign Header | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionCampaign | pcmh | pcmnr | Campaign |
| CreationDate | pcmh | erdat | Entered On | |
| CreatedByUser | pcmh | ernam | User Name | |
| LastChangeDate | pcmh | aedat | Obsolete | |
| LastChangedByUser | pcmh | aenam | User Name | |
| ValidityStartDate | ||||
| ValidityStartTime | pcmh | pcstt | Camp. Start | |
| ValidityEndDate | ||||
| ValidityEndTime | pcmh | pcent | Finish Time | |
| ProductionCampaignText | pcmh | pctxt | Description | |
| ProductionCampaignCategory | ||||
| ProductionCampaignTaktUnit | pcmh | uom | UoM: Conv. to | |
| ProductionCampaignTaktDuration | pcmh | takt | Takt Time | |
| BusinessProcess | pcmh | gproznr | Business Process | |
| BusinessProcessGroupName | pcmh | gprozgr | Group Name | |
| Product | ||||
| Plant | pcmo | werks | Receiving Plant | |
| BaseUnit | pcmo | gemein | ||
| ProductionCampaignQuantity | pcmo | menge | WarrCountValue | |
| _ProductionCampaignItem | _ProductionCampaignItem | |||
| _ProductionCampaignCategory | _ProductionCampaignCategory | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _ProductPlant | _ProductPlant | |||
| _BaseUnit | _BaseUnit | |||
| _TaktUnit | _TaktUnit |
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_ProductionCampaign.
-- 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_ProductionCampaign AS
SELECT
pcmh.pcmnr AS ProductionCampaign,
pcmh.erdat AS CreationDate,
pcmh.ernam AS CreatedByUser,
pcmh.aedat AS LastChangeDate,
pcmh.aenam AS LastChangedByUser,
cast(pcmh.pcstd as vdm_v_validity_start_date preserving type) AS ValidityStartDate,
pcmh.pcstt AS ValidityStartTime,
cast(pcmh.pcend as vdm_v_validity_end_date preserving type) AS ValidityEndDate,
pcmh.pcent AS ValidityEndTime,
pcmh.pctxt AS ProductionCampaignText,
cast(pcmh.pcart as vdm_pcart preserving type) AS ProductionCampaignCategory,
pcmh.uom AS ProductionCampaignTaktUnit,
pcmh.takt AS ProductionCampaignTaktDuration,
pcmh.gproznr AS BusinessProcess,
pcmh.gprozgr AS BusinessProcessGroupName,
cast(pcmo.matnr as productnumber preserving type) AS Product,
pcmo.werks AS Plant,
pcmo.gemein AS BaseUnit,
pcmo.menge AS ProductionCampaignQuantity
FROM pcmh
LEFT OUTER JOIN I_ProductionCampaignItem AS _ProductionCampaignItem ON ProductionCampaign = _ProductionCampaignItem.ProductionCampaign -- association [0..*]
LEFT OUTER JOIN I_ProductionCampaignCategory AS _ProductionCampaignCategory ON ProductionCampaignCategory = _ProductionCampaignCategory.ProductionCampaignCategory -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant ON Plant = _ProductPlant.Plant AND Product = _ProductPlant.Product -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TaktUnit ON ProductionCampaignTaktUnit = _TaktUnit.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- 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