I_ProductionVersion
Production Version
I_ProductionVersion (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Production Version · Manufacturing
I_ProductionVersion is a Basic CDS View (Dimension) that provides data about "Production Version" in SAP S/4HANA. It reads from 1 data source (mkal) and exposes 72 fields with key fields Material, Plant, ProductionVersion. It has 19 associations to related views.
SAP Help Documentation
| Category | CDS Views for Basic Routing Data |
|---|---|
| Data Category | Basic, Dimension |
| Status | Released |
Purpose
This CDS view provides the prerequisites for answering the following business questions: Which production versions exist for a specific plant material? Which production versions are assigned to a bill of operations? Which production versions are assigned to a bill of material? Which production version (and thus bill of operations and bill of material) can be used to produce a specific amount of material at a certain date?
Prerequisites
You have authorizations to display: Production Version in a plant ( C_FVER_WRK )
Structure
Object types This view is built on the main object types. Measures and attributes The following main attributes are provided: Material Plant Production Version Production Version Description Bill of Operations Bill of Material Lot Size from/to Validity Date Start/End
This CDS view provides the prerequisites for answering the following business questions: Which production versions exist for a specific plant material? Which production versions are assigned to a bill of operations? Which production versions are assigned to a bill of material? Which production version (and thus bill of operations and bill of material) can be used to produce a specific amount of material at a certain date?
Prerequisites
You have authorizations to display: Production Version in a plant ( C_FVER_WRK )
Structure
Object types This view is built on the main object types. Measures and attributes The following main attributes are provided: Material Plant Production Version Production Version Description Bill of Operations Bill of Material Lot Size from/to Validity Date Start/End
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM-MD |
| Capabilities | Analytical Dimension, Data Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Search, Data Source for Data Extraction |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which production versions exist for a specific plant material?</p></li> <li><p>Which production versions are assigned to a bill of operations?</p></li> <li><p>Which production versions are assigned to a bill of material?</p></li> <li><p>Which production version (and thus bill of operations and bill of material) can be used to produce a specific amount of material at a certain date?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mkal | mkal | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..1] | I_ProductPlant | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [0..1] | I_Product | _MainProduct | $projection.MainProduct = _MainProduct.Product |
| [0..1] | I_Product | _OriglBatchReferenceMaterial | $projection.OriginalBatchReferenceMaterial = _OriglBatchReferenceMaterial.Product |
| [1..1] | I_BillOfOperationsType | _BillOfOperationsType | $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType |
| [1..1] | I_BillOfOperationsGroup | _BillOfOperationsGroup | $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup |
| [1..1] | I_BillOfOperations | _BillOfOperations | $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant |
| [0..1] | I_ProductionLine | _ProductionLine | $projection.Plant = _ProductionLine.Plant and $projection.ProductionLine = _ProductionLine.ProductionLine |
| [0..1] | I_ProductionVersionGroup | _ProductionVersionGroup | $projection.Plant = _ProductionVersionGroup.Plant and $projection.ProductionVersionGroup = _ProductionVersionGroup.ProductionVersionGroup |
| [0..1] | I_ProductionSupplyArea | _ProductionSupplyArea | $projection.Plant = _ProductionSupplyArea.Plant and $projection.ProductionSupplyArea = _ProductionSupplyArea.ProductionSupplyArea |
| [0..1] | I_ProductionSupplyArea | _TargetProductionSupplyArea | $projection.Plant = _TargetProductionSupplyArea.Plant and $projection.TargetProductionSupplyArea = _TargetProductionSupplyArea.ProductionSupplyArea |
| [0..1] | I_StorageLocation | _IssuingStorageLocation | $projection.Plant = _IssuingStorageLocation.Plant and $projection.IssuingStorageLocation = _IssuingStorageLocation.StorageLocation |
| [0..1] | I_StorageLocation | _ReceivingStorageLocation | $projection.Plant = _ReceivingStorageLocation.Plant and $projection.ReceivingStorageLocation = _ReceivingStorageLocation.StorageLocation |
| [0..1] | I_MatlCostApportionmentStruc | _MatlCostApportionmentStruc | $projection.Material = _MatlCostApportionmentStruc.Material and $projection.Plant = _MatlCostApportionmentStruc.Plant and $projection.MaterialCostApportionmentStruc = _MatlCostApportionmentStruc.MaterialCostApportionmentStruc |
| [0..1] | I_MRPQuantityDistributionKey | _QuantityDistributionKey | $projection.Plant = _QuantityDistributionKey.Plant and $projection.QuantityDistributionKey = _QuantityDistributionKey.QuantityDistributionKey |
| [0..1] | I_UnitOfMeasure | _MaterialBaseUnit | $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure |
| [0..1] | I_MatlProcurementProfile | _MatlProcurementProfile | $projection.Plant = _MatlProcurementProfile.Plant and $projection.MaterialProcurementProfile = _MatlProcurementProfile.MaterialProcurementProfile |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.sapObjectNodeType.name | ProductionVersion | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | ProductionVersion | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Production Version | view |
Fields (72)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | mkal | matnr | Material Number |
| KEY | Plant | mkal | werks | Receiving Plant |
| KEY | ProductionVersion | mkal | verid | Production Version |
| ProductionVersionText | mkal | text1 | Short Text for Production Version | |
| ChangeHistoryCount | mkal_aend | ChangeHistoryCount | Count parameters | |
| ChangeNumber | mkal_aend | ChangeNumber | Change Number | |
| CreationDate | mkal_aend | CreationDate | Date Record Created On | |
| CreatedByUser | mkal_aend | CreatedByUser | Created By User | |
| LastChangeDate | mkal_aend | LastChangeDate | Last Changed On | |
| LastChangedByUser | mkal_aend | LastChangedByUser | Last Changed By User | |
| BillOfOperationsType | Bill of Operations Type | |||
| BillOfOperationsGroup | Bill of Operations Group | |||
| BillOfOperationsVariant | Bill of Operations Variant | |||
| BillOfMaterialVariantUsage | mkal | stlan | BOM Usage | |
| BillOfMaterialVariant | mkal | stlal | Alternative BOM | |
| ProductionLine | mkal | mdv01 | Production Line for Repetitive Manufacturing | |
| ProductionSupplyArea | Production Supply Area | |||
| ProductionVersionGroup | Group of Production Versions | |||
| MainProduct | Main Product | |||
| MaterialCostApportionmentStruc | mkal | csplt | Apportionment Structure | |
| IssuingStorageLocation | mkal | elpro | Proposed Issue Storage Location for Components | |
| ReceivingStorageLocation | mkal | alort | Receiving Storage Location for Repetitive Manufacturing | |
| OriginalBatchReferenceMaterial | Reference Material for Original Batches | |||
| QuantityDistributionKey | mkal | verto | Distribution key for quantity produced | |
| ProductionVersionStatus | mkal | prfg_f | Check Status of Production Version | |
| ProductionVersionLastCheckDate | Date of Last Check of Production Version | |||
| RateBasedPlanningStatus | Rate-Based Planning - Check Status of Production Version | |||
| PreliminaryPlanningStatus | Preliminary Planning - Check Status of Production Version | |||
| BOMCheckStatus | BOM - Check Status of Production Version | |||
| ValidityStartDate | Validity Start Date | |||
| ValidityEndDate | Validity End Date | |||
| ProductionVersionIsLocked | mkal | mksp | Production Version Lock | |
| ProdnVersIsAllowedForRptvMfg | mkal | serkz | Repetitive Manufacturing Allowed for Version | |
| HasVersionCtrldBOMAndRouting | mkal | versind | Indicator: BOM and Routing Version Exists | |
| PlanningAndExecutionBOMIsDiff | mkal | diffplanexemstr | Planning and Execution Master Differ | |
| ExecBillOfMaterialVariantUsage | mkal | exe_stlan | Shop Floor BOM Usage | |
| ExecBillOfMaterialVariant | mkal | exe_stlal | Shop Floor BOM Alternative | |
| ExecBillOfOperationsType | mkal | exe_plnty | Shop Floor Routing Task List Type | |
| ExecBillOfOperationsGroup | mkal | exe_plnnr | Shop Floor Routing Tasklist Group | |
| ExecBillOfOperationsVariant | mkal | exe_alnal | Shop Floor Routing Tasklist Group Counter | |
| Warehouse | mkal | ewm_lgnum | Warehouse Number/Warehouse Complex | |
| DestinationStorageBin | mkal | ewm_lgpla | Destination Storage Bin | |
| ProcurementType | mkal | beskz | Procurement Type | |
| MaterialProcurementProfile | mkal | sobsl | Special Procurement Type | |
| UsgeProbltyWthVersCtrlInPct | mkal | ewahr | Usage Probability with Version Control | |
| MaterialBaseUnit | _Product | BaseUnit | Base Unit of Measure | |
| MaterialMinLotSizeQuantity | mkal | bstmi | Minimum Lot Size Quantity | |
| MaterialMaxLotSizeQuantity | mkal | bstma | Material Maximum Lot Size Quantity | |
| CostingLotSize | mkal | losgr | Lot Size for Product Costing | |
| DistributionKey | mkal | verto | Distribution key for quantity produced | |
| TargetProductionSupplyArea | Production Supply Area | |||
| ConfigblProdProductionVersion | mkal | configblprodprodnvers | Production Version of Corresponding Configurable Product | |
| _Material | _Material | |||
| _Product | _Product | |||
| _ProductPlant | _ProductPlant | |||
| _Plant | _Plant | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _BillOfOperationsGroup | _BillOfOperationsGroup | |||
| _BillOfOperations | _BillOfOperations | |||
| _ProductionLine | _ProductionLine | |||
| _ProductionVersionGroup | _ProductionVersionGroup | |||
| _ProductionSupplyArea | _ProductionSupplyArea | |||
| _TargetProductionSupplyArea | _TargetProductionSupplyArea | |||
| _MainProduct | _MainProduct | |||
| _OriglBatchReferenceMaterial | _OriglBatchReferenceMaterial | |||
| _IssuingStorageLocation | _IssuingStorageLocation | |||
| _ReceivingStorageLocation | _ReceivingStorageLocation | |||
| _MatlCostApportionmentStruc | _MatlCostApportionmentStruc | |||
| _QuantityDistributionKey | _QuantityDistributionKey | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _MatlProcurementProfile | _MatlProcurementProfile | |||
| _ChangeMaster | mkal_aend | _ChangeMaster |
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_ProductionVersion.
-- 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: IPPPRODVERSION
CREATE VIEW I_ProductionVersion AS
SELECT
mkal.matnr AS Material,
mkal.werks AS Plant,
mkal.verid AS ProductionVersion,
mkal.text1 AS ProductionVersionText,
mkal_aend.ChangeHistoryCount AS ChangeHistoryCount,
mkal_aend.ChangeNumber AS ChangeNumber,
mkal_aend.CreationDate AS CreationDate,
mkal_aend.CreatedByUser AS CreatedByUser,
mkal_aend.LastChangeDate AS LastChangeDate,
mkal_aend.LastChangedByUser AS LastChangedByUser,
cast(mkal.plnty as billofoperationstype preserving type) AS BillOfOperationsType,
cast(mkal.plnnr as billofoperationsgroup preserving type) AS BillOfOperationsGroup,
cast(mkal.alnal as billofoperationsvariant preserving type) AS BillOfOperationsVariant,
mkal.stlan AS BillOfMaterialVariantUsage,
mkal.stlal AS BillOfMaterialVariant,
mkal.mdv01 AS ProductionLine,
cast(mkal.prvbe as pph_prvbe preserving type) AS ProductionSupplyArea,
cast(mkal.mdv02 as pph_mdv preserving type) AS ProductionVersionGroup,
cast(mkal.matko as pph_matko preserving type) AS MainProduct,
mkal.csplt AS MaterialCostApportionmentStruc,
mkal.elpro AS IssuingStorageLocation,
mkal.alort AS ReceivingStorageLocation,
cast(mkal.ucmat as pph_rfmat preserving type) AS OriginalBatchReferenceMaterial,
mkal.verto AS QuantityDistributionKey,
mkal.prfg_f AS ProductionVersionStatus,
cast(mkal.prdat as pph_mkprdat preserving type) AS ProductionVersionLastCheckDate,
cast(mkal.prfg_r as pph_prfgr preserving type) AS RateBasedPlanningStatus,
cast(mkal.prfg_g as pph_prfgg preserving type) AS PreliminaryPlanningStatus,
cast(mkal.prfg_s as pph_prfgs preserving type) AS BOMCheckStatus,
cast(mkal.adatu as vdm_v_validity_start_date preserving type) AS ValidityStartDate,
cast(mkal.bdatu as vdm_v_validity_end_date preserving type) AS ValidityEndDate,
mkal.mksp AS ProductionVersionIsLocked,
mkal.serkz AS ProdnVersIsAllowedForRptvMfg,
mkal.versind AS HasVersionCtrldBOMAndRouting,
mkal.diffplanexemstr AS PlanningAndExecutionBOMIsDiff,
mkal.exe_stlan AS ExecBillOfMaterialVariantUsage,
mkal.exe_stlal AS ExecBillOfMaterialVariant,
mkal.exe_plnty AS ExecBillOfOperationsType,
mkal.exe_plnnr AS ExecBillOfOperationsGroup,
mkal.exe_alnal AS ExecBillOfOperationsVariant,
mkal.ewm_lgnum AS Warehouse,
mkal.ewm_lgpla AS DestinationStorageBin,
mkal.beskz AS ProcurementType,
mkal.sobsl AS MaterialProcurementProfile,
mkal.ewahr AS UsgeProbltyWthVersCtrlInPct,
_Product.BaseUnit AS MaterialBaseUnit,
mkal.bstmi AS MaterialMinLotSizeQuantity,
mkal.bstma AS MaterialMaxLotSizeQuantity,
mkal.losgr AS CostingLotSize,
mkal.verto AS DistributionKey,
cast(mkal.tsa_prvbe as pph_prvbe preserving type) AS TargetProductionSupplyArea,
mkal.configblprodprodnvers AS ConfigblProdProductionVersion,
mkal_aend._ChangeMaster AS _ChangeMaster
FROM mkal
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_Product AS _MainProduct ON MainProduct = _MainProduct.Product -- association [0..1]
LEFT OUTER JOIN I_Product AS _OriglBatchReferenceMaterial ON OriginalBatchReferenceMaterial = _OriglBatchReferenceMaterial.Product -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup -- association [1..1]
LEFT OUTER JOIN I_BillOfOperations AS _BillOfOperations ON BillOfOperationsType = _BillOfOperations.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant -- association [1..1]
LEFT OUTER JOIN I_ProductionLine AS _ProductionLine ON Plant = _ProductionLine.Plant AND ProductionLine = _ProductionLine.ProductionLine -- association [0..1]
LEFT OUTER JOIN I_ProductionVersionGroup AS _ProductionVersionGroup ON Plant = _ProductionVersionGroup.Plant AND ProductionVersionGroup = _ProductionVersionGroup.ProductionVersionGroup -- association [0..1]
LEFT OUTER JOIN I_ProductionSupplyArea AS _ProductionSupplyArea ON Plant = _ProductionSupplyArea.Plant AND ProductionSupplyArea = _ProductionSupplyArea.ProductionSupplyArea -- association [0..1]
LEFT OUTER JOIN I_ProductionSupplyArea AS _TargetProductionSupplyArea ON Plant = _TargetProductionSupplyArea.Plant AND TargetProductionSupplyArea = _TargetProductionSupplyArea.ProductionSupplyArea -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _IssuingStorageLocation ON Plant = _IssuingStorageLocation.Plant AND IssuingStorageLocation = _IssuingStorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _ReceivingStorageLocation ON Plant = _ReceivingStorageLocation.Plant AND ReceivingStorageLocation = _ReceivingStorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_MatlCostApportionmentStruc AS _MatlCostApportionmentStruc ON Material = _MatlCostApportionmentStruc.Material AND Plant = _MatlCostApportionmentStruc.Plant AND MaterialCostApportionmentStruc = _MatlCostApportionmentStruc.MaterialCostApportionmentStruc -- association [0..1]
LEFT OUTER JOIN I_MRPQuantityDistributionKey AS _QuantityDistributionKey ON Plant = _QuantityDistributionKey.Plant AND QuantityDistributionKey = _QuantityDistributionKey.QuantityDistributionKey -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialBaseUnit ON MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_MatlProcurementProfile AS _MatlProcurementProfile ON Plant = _MatlProcurementProfile.Plant AND MaterialProcurementProfile = _MatlProcurementProfile.MaterialProcurementProfile -- 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