C_MfgOrderProdVersionObjPg

DDL: C_MFGORDERPRODVERSIONOBJPG Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_ProductionVersion I_ProductionVersion from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;