I_ProductionCampaignItem
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)
| Source | Alias | Join Type |
|---|---|---|
| pcmp | pcmp | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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