I_ProductionCampaign

DDL: I_PRODUCTIONCAMPAIGN Type: view_entity BASIC Package: VDM_PP_PI

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)

SourceAliasJoin Type
pcmh pcmh from

Associations (9)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;