R_RecmddProductionVersionTP

DDL: R_RECMDDPRODUCTIONVERSIONTP Type: view_entity TRANSACTIONAL Package: VDM_PP_MD_PRV

Recommended Production Version

R_RecmddProductionVersionTP is a Transactional CDS View that provides data about "Recommended Production Version" in SAP S/4HANA. It reads from 1 data source (I_RecommendedProductionVersion) and exposes 77 fields with key fields Material, Plant, RecommendedProductionVersion. It has 4 associations to related views. Part of development package VDM_PP_MD_PRV.

Data Sources (1)

SourceAliasJoin Type
I_RecommendedProductionVersion I_RecommendedProductionVersion from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] I_ProdnVersLock _ProdnVersLockVH $projection.ProductionVersionLock = _ProdnVersLockVH.ProductionVersionIsLocked
[0..1] I_ProdnVersLockText _ProdnVersLockText $projection.ProductionVersionLock = _ProdnVersLockText.ProductionVersionIsLocked and _ProdnVersLockText.Language = $session.system_language
[0..1] I_RecmddProdnVersMatlBOM _MaterialBOM $projection.Material = _MaterialBOM.Material and $projection.Plant = _MaterialBOM.Plant and $projection.BillOfMaterialVariant = _MaterialBOM.BillOfMaterialVariant and $projection.BillOfMaterialVariantUsage = _MaterialBOM.BillOfMaterialVariantUsage and $projection.ValidityStartDate >= _MaterialBOM.HeaderValidityStartDate and $projection.ValidityStartDate <= _MaterialBOM.HeaderValidityEndDate

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Recommended Production Version view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.sapObjectNodeType.name RecommendedProductionVersion view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY RecommendedProductionVersion RecommendedProductionVersion Recommended Production Version ID
ProductionVersion ProductionVersion Version ID
ProductionVersionText ProductionVersionText Vertikalization Text
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 Apportionment
IssuingStorageLocation IssuingStorageLocation Iss. Stor. Loc.
ReceivingStorageLocation ReceivingStorageLocation RecStorLoc
OriginalBatchReferenceMaterial OriginalBatchReferenceMaterial
QuantityDistributionKey QuantityDistributionKey Distribution
ProductionVersionStatus ProductionVersionStatus Check Status
ProductionVersionLastCheckDate ProductionVersionLastCheckDate
RateBasedPlanningStatus RateBasedPlanningStatus
PreliminaryPlanningStatus PreliminaryPlanningStatus
BOMCheckStatus BOMCheckStatus
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
ProductionVersionLock Prodn Version Lock
ProdnVersIsAllowedForRptvMfg ProdnVersIsAllowedForRptvMfg REM Allowed
HasVersionCtrldBOMAndRouting HasVersionCtrldBOMAndRouting BOM/RTG Vers. Exists
PlanningAndExecutionBOMIsDiff PlanningAndExecutionBOMIsDiff Plng Exec Mstr Diff
ExecBillOfMaterialVariantUsage ExecBillOfMaterialVariantUsage SF BOM Usage
ExecBillOfMaterialVariant ExecBillOfMaterialVariant SF BOM Alt.
ExecBillOfOperationsType ExecBillOfOperationsType Task list Type
ExecBillOfOperationsGroup ExecBillOfOperationsGroup Tasklist Group
ExecBillOfOperationsVariant ExecBillOfOperationsVariant Group Counter
EWMWarehouse EWMWarehouse Warehouse No.
DestinationStorageBin DestinationStorageBin Storage Bin
ProcurementType ProcurementType Procurement
MaterialProcurementProfile MaterialProcurementProfile Special Procur.
UsgeProbltyWthVersCtrlInPct UsgeProbltyWthVersCtrlInPct Usg Probability
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MaterialMinLotSizeQuantity MaterialMinLotSizeQuantity Min. Lot Size
MaterialMaxLotSizeQuantity MaterialMaxLotSizeQuantity To Lot Size
CostingLotSize CostingLotSize Cstg Lot Size
TargetProductionSupplyArea TargetProductionSupplyArea
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
ProdnVersLastChangeDateTime ProdnVersLastChangeDateTime
RecmddProductionVersionStatus RecmddProductionVersionStatus Workflow Status
ProducerEventType ProducerEventType Event responsible for Production Version
ProducerBusinessObjectType ProducerBusinessObjectType Business Object responsible for Production Version
_ProdnVersLockVH _ProdnVersLockVH
ProdnVersProposalAgeInDays
_BillOfOperations _BillOfOperations
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsType _BillOfOperationsType
_IssuingStorageLocation _IssuingStorageLocation
_MainProduct _MainProduct
_Material _Material
_MaterialBaseUnit _MaterialBaseUnit
_MatlCostApportionmentStruc _MatlCostApportionmentStruc
_MatlProcurementProfile _MatlProcurementProfile
_OriglBatchReferenceMaterial _OriglBatchReferenceMaterial
_Plant _Plant
_Product _Product
_ProductionLine _ProductionLine
_ProductionSupplyArea _ProductionSupplyArea
_ProductionVersionGroup _ProductionVersionGroup
_ProductPlant _ProductPlant
_QuantityDistributionKey _QuantityDistributionKey
_ReceivingStorageLocation _ReceivingStorageLocation
_TargetProductionSupplyArea _TargetProductionSupplyArea
_MaterialText _MaterialText
_ProdnVersLockText _ProdnVersLockText
_MaterialBOM _MaterialBOM

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 R_RecmddProductionVersionTP.
-- 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 R_RecmddProductionVersionTP AS
SELECT
  Material,
  Plant,
  RecommendedProductionVersion,
  ProductionVersion,
  ProductionVersionText,
  BillOfOperationsType,
  BillOfOperationsGroup,
  BillOfOperationsVariant,
  BillOfMaterialVariantUsage,
  BillOfMaterialVariant,
  ProductionLine,
  ProductionSupplyArea,
  ProductionVersionGroup,
  MainProduct,
  MaterialCostApportionmentStruc,
  IssuingStorageLocation,
  ReceivingStorageLocation,
  OriginalBatchReferenceMaterial,
  QuantityDistributionKey,
  ProductionVersionStatus,
  ProductionVersionLastCheckDate,
  RateBasedPlanningStatus,
  PreliminaryPlanningStatus,
  BOMCheckStatus,
  ValidityStartDate,
  ValidityEndDate,
  cast(ProductionVersionLock as mpe_pv_lock_status preserving type ) AS ProductionVersionLock,
  ProdnVersIsAllowedForRptvMfg,
  HasVersionCtrldBOMAndRouting,
  PlanningAndExecutionBOMIsDiff,
  ExecBillOfMaterialVariantUsage,
  ExecBillOfMaterialVariant,
  ExecBillOfOperationsType,
  ExecBillOfOperationsGroup,
  ExecBillOfOperationsVariant,
  EWMWarehouse,
  DestinationStorageBin,
  ProcurementType,
  MaterialProcurementProfile,
  UsgeProbltyWthVersCtrlInPct,
  MaterialBaseUnit,
  MaterialMinLotSizeQuantity,
  MaterialMaxLotSizeQuantity,
  CostingLotSize,
  TargetProductionSupplyArea,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  ProdnVersLastChangeDateTime,
  RecmddProductionVersionStatus,
  ProducerEventType,
  ProducerBusinessObjectType,
  dats_days_between(CreationDate, $session.system_date) AS ProdnVersProposalAgeInDays
FROM I_RecommendedProductionVersion
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_ProdnVersLock AS _ProdnVersLockVH ON ProductionVersionLock = _ProdnVersLockVH.ProductionVersionIsLocked  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersLockText AS _ProdnVersLockText ON ProductionVersionLock = _ProdnVersLockText.ProductionVersionIsLocked AND _ProdnVersLockText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_RecmddProdnVersMatlBOM AS _MaterialBOM ON Material = _MaterialBOM.Material AND Plant = _MaterialBOM.Plant AND BillOfMaterialVariant = _MaterialBOM.BillOfMaterialVariant AND BillOfMaterialVariantUsage = _MaterialBOM.BillOfMaterialVariantUsage AND ValidityStartDate >= _MaterialBOM.HeaderValidityStartDate AND ValidityStartDate <= _MaterialBOM.HeaderValidityEndDate  -- association [0..1]
;