C_MfgOrderProdVersionObjPg
Production Version
C_MfgOrderProdVersionObjPg is a Consumption CDS View (Dimension) that provides data about "Production Version" in SAP S/4HANA. It reads from 1 data source (I_ProductionVersion) and exposes 42 fields with key fields Material, Plant, ProductionVersion. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductionVersion | I_ProductionVersion | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BillOfMaterialUsage | I_BillOfMaterialUsage | $projection.BillOfMaterialVariantUsage = I_BillOfMaterialUsage.BillOfMaterialVariantUsage |
| [1..1] | I_Material | _OtherMaterial | $projection.MainProduct = _OtherMaterial.Material |
| [1..1] | I_StorageLocation | _IssuingStorageLocation | $projection.IssuingStorageLocation = _IssuingStorageLocation.StorageLocation and $projection.Plant = _IssuingStorageLocation.Plant |
| [1..1] | I_StorageLocation | _ReceivingStorageLocation | $projection.ReceivingStorageLocation = _ReceivingStorageLocation.StorageLocation and $projection.Plant = _ReceivingStorageLocation.Plant |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Production Version | view | |
| Search.searchable | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.representativeKey | ProductionVersion | view | |
| Analytics.technicalName | CPRODVEROBJPAG | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Production Version | view | |
| UI.headerInfo.typeNamePlural | List of Materials | view | |
| UI.headerInfo.title.value | Material | view | |
| UI.headerInfo.description.value | MaterialName | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | ProductionVersion | ProductionVersion | Version ID | |
| MaterialName | ||||
| PlantName | ||||
| ProductionVersionText | ProductionVersionText | Vertikalization Text | ||
| ProductionVersionIsLocked | ProductionVersionIsLocked | Lock | ||
| ChangeNumber | ChangeNumber | Change Number | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| MaterialMinLotSizeQuantity | MaterialMinLotSizeQuantity | Min. Lot Size | ||
| MaterialMaxLotSizeQuantity | MaterialMaxLotSizeQuantity | To Lot Size | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| BillOfOperationsType | Task List Type | |||
| BillOfOperationsGroup | Group | |||
| BillOfOperationsVariant | Group Counter | |||
| BillOfMaterialVariantUsage | BillOfMaterialVariantUsage | Usage | ||
| BillOfMaterialVariantUsageDesc | i_billofmaterialusage | BillOfMaterialVariantUsageDesc | BOM Usage | |
| BillOfMaterialVariant | BillOfMaterialVariant | AlternativeBOM | ||
| MaterialCostApportionmentStruc | MaterialCostApportionmentStruc | Apportionment | ||
| ProdnVersIsAllowedForRptvMfg | ProdnVersIsAllowedForRptvMfg | REM Allowed | ||
| ProductionLine | ProductionLine | Production Line | ||
| ProductionVersionGroup | ProductionVersionGroup | |||
| CreationDate | CreationDate | Time Stamp | ||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| MainProduct | MainProduct | Other Header Material | ||
| IssuingStorageLocation | IssuingStorageLocation | Issue Storage Location | ||
| ReceivingStorageLocation | ReceivingStorageLocation | RecStorLoc | ||
| OriginalBatchReferenceMaterial | OriginalBatchReferenceMaterial | OB Reference Material | ||
| ProductionSupplyArea | ProductionSupplyArea | Supply Area | ||
| _Material | _Material | |||
| _OtherMaterial | _OtherMaterial | |||
| _IssuingStorageLocation | _IssuingStorageLocation | |||
| _ReceivingStorageLocation | _ReceivingStorageLocation | |||
| _Plant | _Plant | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _ProductionLine | _ProductionLine | |||
| _ProductionSupplyArea | _ProductionSupplyArea | |||
| _MatlCostApportionmentStruc | _MatlCostApportionmentStruc | |||
| _ProductionVersionGroup | _ProductionVersionGroup |
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 C_MfgOrderProdVersionObjPg.
-- 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 C_MfgOrderProdVersionObjPg AS
SELECT
Material,
Plant,
ProductionVersion,
_Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
I_ProductionVersion._Plant.PlantName AS PlantName,
ProductionVersionText,
ProductionVersionIsLocked,
ChangeNumber,
MaterialBaseUnit,
MaterialMinLotSizeQuantity,
MaterialMaxLotSizeQuantity,
ValidityStartDate,
ValidityEndDate,
cast(BillOfOperationsType as plnty preserving type ) AS BillOfOperationsType,
cast(BillOfOperationsGroup as plnnr preserving type) AS BillOfOperationsGroup,
cast(BillOfOperationsVariant as plnal) AS BillOfOperationsVariant,
BillOfMaterialVariantUsage,
i_billofmaterialusage.BillOfMaterialVariantUsageDesc AS BillOfMaterialVariantUsageDesc,
BillOfMaterialVariant,
MaterialCostApportionmentStruc,
ProdnVersIsAllowedForRptvMfg,
ProductionLine,
ProductionVersionGroup,
CreationDate,
CreatedByUser,
LastChangeDate,
LastChangedByUser,
MainProduct,
IssuingStorageLocation,
ReceivingStorageLocation,
OriginalBatchReferenceMaterial,
ProductionSupplyArea
FROM I_ProductionVersion
LEFT OUTER JOIN I_BillOfMaterialUsage ON BillOfMaterialVariantUsage = I_BillOfMaterialUsage.BillOfMaterialVariantUsage -- association [1..1]
LEFT OUTER JOIN I_Material AS _OtherMaterial ON MainProduct = _OtherMaterial.Material -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _IssuingStorageLocation ON IssuingStorageLocation = _IssuingStorageLocation.StorageLocation AND Plant = _IssuingStorageLocation.Plant -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _ReceivingStorageLocation ON ReceivingStorageLocation = _ReceivingStorageLocation.StorageLocation AND Plant = _ReceivingStorageLocation.Plant -- 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