C_LinkedExistingProdnVers

DDL: C_LINKEDEXISTINGPRODNVERS Type: view_entity CONSUMPTION

Linked Existing Production Version

C_LinkedExistingProdnVers is a Consumption CDS View that provides data about "Linked Existing Production Version" in SAP S/4HANA. It reads from 1 data source (R_ProductionVersionTP) and exposes 85 fields with key fields Material, Plant, ProductionVersion. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_ProductionVersionTP R_ProductionVersionTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_LinkedProdnVersBOO _RoutingStatusText $projection.Material = _RoutingStatusText.Material and $projection.Plant = _RoutingStatusText.Plant and $projection.BillOfOperationsType = _RoutingStatusText.BillOfOperationsType and $projection.BillOfOperationsGroup = _RoutingStatusText.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _RoutingStatusText.BillOfOperationsVariant and _RoutingStatusText.ValidityStartDate <= $session.system_date and _RoutingStatusText.ValidityEndDate >= $session.system_date
[1..1] C_LinkedProdnVersBOM _BillOfMaterial $projection.Material = _BillOfMaterial.Material and $projection.Plant = _BillOfMaterial.Plant and $projection.BillOfMaterialVariant = _BillOfMaterial.BillOfMaterialVariant and _BillOfMaterial.ValidityStartDate <= $session.system_date and _BillOfMaterial.ValidityEndDate >= $session.system_date

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Linked Existing Production Version view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY ProductionVersion ProductionVersion Version ID
ProductionVersionText ProductionVersionText
ChangeHistoryCount ChangeHistoryCount
ChangeNumber ChangeNumber Change Number
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
BillOfOperationsType BillOfOperationsType Task List Type
BillOfOperationsGroup BillOfOperationsGroup Group
BillOfOperationsVariant BillOfOperationsVariant Group Counter
BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
ProductionLine ProductionLine Production Line
ProductionSupplyArea ProductionSupplyArea Supply Area
ProductionVersionGroup ProductionVersionGroup
MainProduct MainProduct
MaterialCostApportionmentStruc MaterialCostApportionmentStruc
IssuingStorageLocation IssuingStorageLocation Iss. Stor. Loc.
ReceivingStorageLocation ReceivingStorageLocation RecStorLoc
OriginalBatchReferenceMaterial OriginalBatchReferenceMaterial
QuantityDistributionKey QuantityDistributionKey Distribution
ProductionVersionStatus ProductionVersionStatus
ProductionVersionLastCheckDate ProductionVersionLastCheckDate
RateBasedPlanningStatus RateBasedPlanningStatus
PreliminaryPlanningStatus PreliminaryPlanningStatus
BOMCheckStatus BOMCheckStatus
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
ProductionVersionLock ProductionVersionLock
ProdnVersIsAllowedForRptvMfg ProdnVersIsAllowedForRptvMfg
HasVersionCtrldBOMAndRouting HasVersionCtrldBOMAndRouting
PlanningAndExecutionBOMIsDiff PlanningAndExecutionBOMIsDiff
ExecBillOfMaterialVariantUsage ExecBillOfMaterialVariantUsage
ExecBillOfMaterialVariant ExecBillOfMaterialVariant
ExecBillOfOperationsType ExecBillOfOperationsType
ExecBillOfOperationsGroup ExecBillOfOperationsGroup
ExecBillOfOperationsVariant ExecBillOfOperationsVariant
EWMWarehouse EWMWarehouse Warehouse No.
DestinationStorageBin DestinationStorageBin
ProcurementType ProcurementType Procurement
MaterialProcurementProfile MaterialProcurementProfile Special Procur.
UsgeProbltyWthVersCtrlInPct UsgeProbltyWthVersCtrlInPct
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MaterialMinLotSizeQuantity MaterialMinLotSizeQuantity
MaterialMaxLotSizeQuantity MaterialMaxLotSizeQuantity
CostingLotSize CostingLotSize
TargetProductionSupplyArea TargetProductionSupplyArea
MRPController MRPController MRP Controller
MaterialName MaterialName Material Description
PlantName PlantName Plant Name
MRPResponsible MRPResponsible MRP Controller
RoutingCheckStatusText RoutingCheckStatusText Routing CheckStatus Text
ProductionVersionLockText ProductionVersionLockText
BillOfOperationsTypeName BillOfOperationsTypeName
OvrlProdnVersChkSts OvrlProdnVersChkSts
BillOfOperationsDesc _RoutingStatusText BillOfOperationsDesc
BOMHeaderText _BillOfMaterial BOMHeaderText BOM Description
_BillOfOperations _BillOfOperations
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsTypeText _BillOfOperationsTypeText
_ChangeMaster _ChangeMaster
_IssuingStorageLocation _IssuingStorageLocation
_MainProduct _MainProduct
_Material _Material
_MaterialBaseUnit _MaterialBaseUnit
_MaterialText _MaterialText
_MatlCostApportionmentStruc _MatlCostApportionmentStruc
_MatlProcurementProfile _MatlProcurementProfile
_OriglBatchReferenceMaterial _OriglBatchReferenceMaterial
_Plant _Plant
_ProdnVersLockText _ProdnVersLockText
_ProdnVersLockVH _ProdnVersLockVH
_Product _Product
_ProductionLine _ProductionLine
_ProductionSupplyArea _ProductionSupplyArea
_ProductionVersionGroup _ProductionVersionGroup
_ProductPlant _ProductPlant
_QuantityDistributionKey _QuantityDistributionKey
_ReceivingStorageLocation _ReceivingStorageLocation
_RoutingStatusText _RoutingStatusText
_TargetProductionSupplyArea _TargetProductionSupplyArea

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_LinkedExistingProdnVers.
-- 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_LinkedExistingProdnVers AS
SELECT
  Material,
  Plant,
  ProductionVersion,
  ProductionVersionText,
  ChangeHistoryCount,
  ChangeNumber,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  BillOfOperationsType,
  BillOfOperationsGroup,
  BillOfOperationsVariant,
  BillOfMaterialVariantUsage,
  BillOfMaterialVariant,
  ProductionLine,
  ProductionSupplyArea,
  ProductionVersionGroup,
  MainProduct,
  MaterialCostApportionmentStruc,
  IssuingStorageLocation,
  ReceivingStorageLocation,
  OriginalBatchReferenceMaterial,
  QuantityDistributionKey,
  ProductionVersionStatus,
  ProductionVersionLastCheckDate,
  RateBasedPlanningStatus,
  PreliminaryPlanningStatus,
  BOMCheckStatus,
  ValidityStartDate,
  ValidityEndDate,
  ProductionVersionLock,
  ProdnVersIsAllowedForRptvMfg,
  HasVersionCtrldBOMAndRouting,
  PlanningAndExecutionBOMIsDiff,
  ExecBillOfMaterialVariantUsage,
  ExecBillOfMaterialVariant,
  ExecBillOfOperationsType,
  ExecBillOfOperationsGroup,
  ExecBillOfOperationsVariant,
  EWMWarehouse,
  DestinationStorageBin,
  ProcurementType,
  MaterialProcurementProfile,
  UsgeProbltyWthVersCtrlInPct,
  MaterialBaseUnit,
  MaterialMinLotSizeQuantity,
  MaterialMaxLotSizeQuantity,
  CostingLotSize,
  TargetProductionSupplyArea,
  MRPController,
  MaterialName,
  PlantName,
  MRPResponsible,
  RoutingCheckStatusText,
  ProductionVersionLockText,
  BillOfOperationsTypeName,
  OvrlProdnVersChkSts,
  _RoutingStatusText.BillOfOperationsDesc AS BillOfOperationsDesc,
  _BillOfMaterial.BOMHeaderText AS BOMHeaderText
FROM R_ProductionVersionTP
LEFT OUTER JOIN C_LinkedProdnVersBOO AS _RoutingStatusText ON Material = _RoutingStatusText.Material AND Plant = _RoutingStatusText.Plant AND BillOfOperationsType = _RoutingStatusText.BillOfOperationsType AND BillOfOperationsGroup = _RoutingStatusText.BillOfOperationsGroup AND BillOfOperationsVariant = _RoutingStatusText.BillOfOperationsVariant AND _RoutingStatusText.ValidityStartDate <= $session.system_date AND _RoutingStatusText.ValidityEndDate >= $session.system_date  -- association [1..1]
LEFT OUTER JOIN C_LinkedProdnVersBOM AS _BillOfMaterial ON Material = _BillOfMaterial.Material AND Plant = _BillOfMaterial.Plant AND BillOfMaterialVariant = _BillOfMaterial.BillOfMaterialVariant AND _BillOfMaterial.ValidityStartDate <= $session.system_date AND _BillOfMaterial.ValidityEndDate >= $session.system_date  -- association [1..1]
;