I_ProductionVersionBasic
Production Version Basic
I_ProductionVersionBasic is a Basic CDS View (Dimension) that provides data about "Production Version Basic" in SAP S/4HANA. It reads from 1 data source (mkal) and exposes 60 fields with key fields Product, Plant, ProductionVersion. It has 19 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mkal | mkal | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductPlant | _ProductPlant | $projection.Product = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [0..1] | I_ProductPlantBasic | _ProductPlant2 | $projection.Plant = _ProductPlant2.Plant and $projection.Product = _ProductPlant2.Product |
| [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 |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRODNVERSNBASC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| Consumption.ranked | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | ProductionVersion | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | 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 Basic | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | Vehicle Model | ||
| KEY | Plant | werks | Receiving Plant | |
| KEY | ProductionVersion | verid | Version ID | |
| ProductionVersionText | text1 | Vertikalization Text | ||
| Material | matnr | Vehicle Model | ||
| BillOfOperationsType | Task List Type | |||
| BillOfOperationsGroup | Task List Group | |||
| BillOfOperationsVariant | Group counter | |||
| BillOfMaterialVariantUsage | stlan | Usage | ||
| BillOfMaterialVariant | stlal | AlternativeBOM | ||
| ProductionLine | mdv01 | Production Line | ||
| ProductionSupplyArea | Supply Area | |||
| ProductionVersionGroup | Planning ID | |||
| MainProduct | Header material | |||
| MaterialCostApportionmentStruc | csplt | Apportionment | ||
| IssuingStorageLocation | elpro | Issue stor.loc. | ||
| ReceivingStorageLocation | alort | Receiving SLoc | ||
| OriginalBatchReferenceMaterial | PB Material | |||
| QuantityDistributionKey | verto | Distribution | ||
| ProductionVersionStatus | prfg_f | Check Status | ||
| ProductionVersionLastCheckDate | Valid to | |||
| RateBasedPlanningStatus | CheckStsRatebasePlan | |||
| PreliminaryPlanningStatus | CheckStatus PrePlan | |||
| BOMCheckStatus | Check sts, BOM | |||
| ValidityStartDate | Valid From | |||
| ValidityEndDate | Valid To | |||
| ProdnVersIsAllowedForRptvMfg | serkz | REM Allowed | ||
| HasVersionCtrldBOMAndRouting | versind | BOM/RTG Vers. Exists | ||
| PlanningAndExecutionBOMIsDiff | diffplanexemstr | Plng Exec Mstr Diff | ||
| ExecBillOfMaterialVariantUsage | exe_stlan | SF BOM Usage | ||
| ExecBillOfMaterialVariant | exe_stlal | SF BOM Alt. | ||
| ExecBillOfOperationsType | exe_plnty | Task list Type | ||
| ExecBillOfOperationsGroup | exe_plnnr | Tasklist Group | ||
| ExecBillOfOperationsVariant | exe_alnal | Group Counter | ||
| Warehouse | ewm_lgnum | Warehouse No. | ||
| DestinationStorageBin | ewm_lgpla | Storage Bin | ||
| TargetProductionSupplyArea | Target PSA | |||
| MaterialBaseUnit | _Product | BaseUnit | Unit of Measure | |
| MaterialMinLotSizeQuantity | bstmi | Min. Lot Size | ||
| MaterialMaxLotSizeQuantity | bstma | To Lot Size | ||
| DistributionKey | verto | Distribution | ||
| _Product | _Product | |||
| _ProductPlant | _ProductPlant | |||
| _ProductPlant2 | _ProductPlant2 | |||
| _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 | |||
| _Material | _Material | |||
| _MaterialBaseUnit | _MaterialBaseUnit |
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_ProductionVersionBasic.
-- 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: IPRODNVERSNBASC
CREATE VIEW I_ProductionVersionBasic AS
SELECT
cast(matnr as productnumber preserving type) AS Product,
werks AS Plant,
verid AS ProductionVersion,
text1 AS ProductionVersionText,
matnr AS Material,
cast(plnty as billofoperationstype preserving type) AS BillOfOperationsType,
cast(plnnr as billofoperationsgroup preserving type) AS BillOfOperationsGroup,
cast(alnal as billofoperationsvariant preserving type) AS BillOfOperationsVariant,
stlan AS BillOfMaterialVariantUsage,
stlal AS BillOfMaterialVariant,
mdv01 AS ProductionLine,
cast(prvbe as pph_prvbe preserving type) AS ProductionSupplyArea,
cast(mdv02 as pph_mdv preserving type) AS ProductionVersionGroup,
cast(matko as pph_matko preserving type) AS MainProduct,
csplt AS MaterialCostApportionmentStruc,
elpro AS IssuingStorageLocation,
alort AS ReceivingStorageLocation,
cast(ucmat as pph_rfmat preserving type) AS OriginalBatchReferenceMaterial,
verto AS QuantityDistributionKey,
prfg_f AS ProductionVersionStatus,
cast(prdat as pph_mkprdat preserving type) AS ProductionVersionLastCheckDate,
cast(prfg_r as pph_prfgr preserving type) AS RateBasedPlanningStatus,
cast(prfg_g as pph_prfgg preserving type) AS PreliminaryPlanningStatus,
cast(prfg_s as pph_prfgs preserving type) AS BOMCheckStatus,
cast(adatu as vdm_v_validity_start_date preserving type) AS ValidityStartDate,
cast(bdatu as vdm_v_validity_end_date preserving type) AS ValidityEndDate,
serkz AS ProdnVersIsAllowedForRptvMfg,
versind AS HasVersionCtrldBOMAndRouting,
diffplanexemstr AS PlanningAndExecutionBOMIsDiff,
exe_stlan AS ExecBillOfMaterialVariantUsage,
exe_stlal AS ExecBillOfMaterialVariant,
exe_plnty AS ExecBillOfOperationsType,
exe_plnnr AS ExecBillOfOperationsGroup,
exe_alnal AS ExecBillOfOperationsVariant,
ewm_lgnum AS Warehouse,
ewm_lgpla AS DestinationStorageBin,
cast(tsa_prvbe as tsa_prvbe preserving type) AS TargetProductionSupplyArea,
_Product.BaseUnit AS MaterialBaseUnit,
bstmi AS MaterialMinLotSizeQuantity,
bstma AS MaterialMaxLotSizeQuantity,
verto AS DistributionKey
FROM mkal
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_ProductPlant AS _ProductPlant ON Product = _ProductPlant.Product AND Plant = _ProductPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant2 ON Plant = _ProductPlant2.Plant AND Product = _ProductPlant2.Product -- association [0..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_Material AS _Material ON Material = _Material.Material -- association [1..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