I_ProductionCampaignItem

DDL: I_PRODUCTIONCAMPAIGNITEM Type: view_entity BASIC

Production Campaign Item

I_ProductionCampaignItem is a Basic CDS View (Fact) that provides data about "Production Campaign Item" in SAP S/4HANA. It reads from 1 data source (pcmp) and exposes 17 fields with key fields ProductionCampaign, ProductionCampaignItem. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pcmp pcmp from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_ProductionCampaign _ProductionCampaign $projection.ProductionCampaign = _ProductionCampaign.ProductionCampaign
[1..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_ProductPlantBasic _ProductPlant $projection.Plant = _ProductPlant.Plant and $projection.Product = _ProductPlant.Product
[0..1] I_PlannedOrder _PlannedOrder $projection.PlannedOrder = _PlannedOrder.PlannedOrder
[0..1] I_PlannedOrderType _PlannedOrderType $projection.PlannedOrderType = _PlannedOrderType.PlannedOrderType
[0..1] I_LogisticsOrder _Order $projection.OrderID = _Order.OrderID
[0..1] I_OrderCategory _OrderCategory $projection.OrderCategory = _OrderCategory.OrderCategory

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Analytics.technicalName IPRODNCAMPNITEM view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE 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 Item view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY ProductionCampaign pcmp pcmnr Campaign
KEY ProductionCampaignItem
ProdnCampaignItemInternalID pcmp zaehl Sort pos.
Product
Plant pcmp werks Receiving Plant
PlannedOrder pcmp plnum Planned Order
PlannedOrderType pcmp aufart Planned Order Type
OrderID pcmp aufnr SettlementOrder
OrderCategory pcmp auftyp Order category
_ProductionCampaign _ProductionCampaign
_Product _Product
_Plant _Plant
_ProductPlant _ProductPlant
_PlannedOrder _PlannedOrder
_PlannedOrderType _PlannedOrderType
_Order _Order
_OrderCategory _OrderCategory

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_ProductionCampaignItem.
-- 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_ProductionCampaignItem AS
SELECT
  pcmp.pcmnr AS ProductionCampaign,
  cast(pcmp.posnr as vdm_pcm_posnr preserving type) AS ProductionCampaignItem,
  pcmp.zaehl AS ProdnCampaignItemInternalID,
  cast(pcmp.matnr as productnumber preserving type) AS Product,
  pcmp.werks AS Plant,
  pcmp.plnum AS PlannedOrder,
  pcmp.aufart AS PlannedOrderType,
  pcmp.aufnr AS OrderID,
  pcmp.auftyp AS OrderCategory
FROM pcmp
LEFT OUTER JOIN I_ProductionCampaign AS _ProductionCampaign ON ProductionCampaign = _ProductionCampaign.ProductionCampaign  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant ON Plant = _ProductPlant.Plant AND Product = _ProductPlant.Product  -- association [1..1]
LEFT OUTER JOIN I_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder  -- association [0..1]
LEFT OUTER JOIN I_PlannedOrderType AS _PlannedOrderType ON PlannedOrderType = _PlannedOrderType.PlannedOrderType  -- association [0..1]
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON OrderID = _Order.OrderID  -- association [0..1]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory  -- association [0..1]
;