C_ProdnVersObjPgTP

DDL: C_PRODNVERSOBJPGTP SQL: CPVOBJPGTP Type: view CONSUMPTION Package: MPE_PLAN_PV

Manage Production Version

C_ProdnVersObjPgTP is a Consumption CDS View that provides data about "Manage Production Version" in SAP S/4HANA. It reads from 1 data source (I_ProdnVersTP) and exposes 86 fields with key fields Material, Plant, ProductionVersion. It has 24 associations to related views. Part of development package MPE_PLAN_PV.

Data Sources (1)

SourceAliasJoin Type
I_ProdnVersTP I_ProdnVersTP from

Associations (24)

CardinalityTargetAliasCondition
[0..1] I_MaterialText _MainProductText $projection.MainProduct = _MainProductText.Material and _MainProductText.Language = $session.system_language
[0..1] I_MaterialText _OriginalRefMaterialText $projection.OriginalBatchReferenceMaterial = _OriginalRefMaterialText.Material and _OriginalRefMaterialText.Language = $session.system_language
[0..*] C_ProdnVersRtgBOMVersObjPgTP _ProdnVersRtgBOMVers $projection.Material = _ProdnVersRtgBOMVers.Material and $projection.Plant = _ProdnVersRtgBOMVers.Plant and $projection.ProductionVersion = _ProdnVersRtgBOMVers.ProductionVersion
[0..*] I_MaterialText _MaterialText $projection.MaterialForEdit = _MaterialText.Material
[0..1] I_Plant _Plant $projection.PlantForEdit = _Plant.Plant
[0..1] C_ProdnVersMatlPlntVH _MaterialPlantVH $projection.MaterialForEdit = _MaterialPlantVH.Material and $projection.PlantForEdit = _MaterialPlantVH.Plant
[0..1] I_MRPController _MRPControllerVH $projection.PlantForEdit = _MRPControllerVH.Plant and $projection.MRPController = _MRPControllerVH.MRPController
[0..1] I_ProdnVersLock _ProdnVersLockVH $projection.ProductionVersionIsLocked = _ProdnVersLockVH.ProductionVersionIsLocked
[0..1] I_ProdnVersChkStsTxt _RoutingStatusText $projection.ProductionVersionStatus = _RoutingStatusText.ProductionVersionStatus and _RoutingStatusText.Language = $session.system_language
[0..1] I_ProdnVersChkStsTxt _BOMStatusText $projection.BOMCheckStatus = _BOMStatusText.ProductionVersionStatus and _BOMStatusText.Language = $session.system_language
[0..1] I_StorageLocation _IssuingStorageLocationVH $projection.IssuingStorageLocation = _IssuingStorageLocationVH.StorageLocation and $projection.PlantForEdit = _IssuingStorageLocationVH.Plant
[0..1] I_StorageLocation _ReceivingStorageLocationVH $projection.ReceivingStorageLocation = _ReceivingStorageLocationVH.StorageLocation and $projection.PlantForEdit = _ReceivingStorageLocationVH.Plant
[0..1] I_BillOfMaterialUsage _BOMVarUsgeVH $projection.BillOfMaterialVariantUsage = _BOMVarUsgeVH.BillOfMaterialVariantUsage and _BOMVarUsgeVH.Language = $session.system_language
[0..1] I_BillOfMaterialUsageText _Text $projection.ExecBillOfMaterialVariantUsage = _Text.BillOfMaterialVariantUsage and _Text.Language = $session.system_language
[0..1] I_BillOfOperationsTypeText _BillOfOperationsTypeText $projection.ExecBillOfOperationsType = _BillOfOperationsTypeText.BillOfOperationsType and _BillOfOperationsTypeText.Language = $session.system_language
[0..1] C_ProdnVersMatlBOMVH _MatlBOMVarVH $projection.MaterialForEdit = _MatlBOMVarVH.Material and $projection.PlantForEdit = _MatlBOMVarVH.Plant and $projection.BillOfMaterialVariantUsage = _MatlBOMVarVH.BillOfMaterialVariantUsage and $projection.BillOfMaterialVariant = _MatlBOMVarVH.BillOfMaterialVariant
[0..1] I_ProductionVersionGroup _ProdVersionGroupVH $projection.PlantForEdit = _ProdVersionGroupVH.Plant and $projection.ProductionVersionGroup = _ProdVersionGroupVH.ProductionVersionGroup
[0..1] I_MatlCostApportionmentStruc _ApportionmentStrucVH $projection.PlantForEdit = _ApportionmentStrucVH .Plant and $projection.MaterialForEdit = _ApportionmentStrucVH.Material and $projection.MaterialCostApportionmentStruc = _ApportionmentStrucVH.MaterialCostApportionmentStruc
[0..1] I_Material _Material $projection.MaterialForEdit = _Material.Material
[0..*] I_ProdnVersTaskListVH _BillOfOperationsGroupVH $projection.BillOfOperationsType = _BillOfOperationsGroupVH.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroupVH.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsGroupVH.BillOfOperationsVariant
[0..1] I_MRPQuantityDistributionKey _MRPQuantityDistributionKeyVH $projection.PlantForEdit = _MRPQuantityDistributionKeyVH.Plant and $projection.QuantityDistributionKey = _MRPQuantityDistributionKeyVH.QuantityDistributionKey
[0..1] I_User _CreatedUser $projection.CreatedByUser = _CreatedUser.UserID
[0..1] I_User _ChangedUser $projection.LastChangedByUser = _ChangedUser.UserID
[0..*] I_ProdnVersBillOfMatlUsageVH _ExecBillOfMatlUsageVH $projection.ExecBillOfMaterialVariantUsage = _ExecBillOfMatlUsageVH.BillOfMaterialVariantUsage

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CPVOBJPGTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
EndUserText.label Manage Production Version view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
UI.headerInfo.typeName Production Version view
UI.headerInfo.typeNamePlural Production Versions view
UI.headerInfo.title.value ProductionVersionText view
UI.headerInfo.description.value ProductionVersionForEdit view

Fields (86)

KeyFieldSource TableSource FieldDescription
KEY Material I_ProdnVersTP Material Vehicle Model
KEY Plant I_ProdnVersTP Plant Valuation Area
KEY ProductionVersion I_ProdnVersTP ProductionVersion Version ID
MaterialForEdit I_ProdnVersTP MaterialForEdit Product
PlantForEdit I_ProdnVersTP PlantForEdit Plant ID
ProductionVersionForEdit I_ProdnVersTP ProductionVersionForEdit Version ID
BillOfMaterialVariant I_ProdnVersTP BillOfMaterialVariant AlternativeBOM
BillOfMaterialVariantUsage I_ProdnVersTP BillOfMaterialVariantUsage Usage
BillOfOperationsGroup Group
BillOfOperationsVariant Group Counter
ValidityEndDate I_ProdnVersTP ValidityEndDate ValidTo
MRPController MRP Controller
ValidityStartDate I_ProdnVersTP ValidityStartDate Validity Start Date
HasVersionCtrldBOMAndRouting I_ProdnVersTP HasVersionCtrldBOMAndRouting
BillOfOperationsType Task List Type
ProductionLine I_ProdnVersTP ProductionLine Production Line
ProductionVersionGroup I_ProdnVersTP ProductionVersionGroup
ProductionVersionText
QuantityDistributionKey I_ProdnVersTP QuantityDistributionKey Distribution
DistributionKey I_ProdnVersTP DistributionKey Distr. Number
ProdnVersIsAllowedForRptvMfg I_ProdnVersTP ProdnVersIsAllowedForRptvMfg
MaterialMinLotSizeQuantity I_ProdnVersTP MaterialMinLotSizeQuantity
MaterialMaxLotSizeQuantity I_ProdnVersTP MaterialMaxLotSizeQuantity
ReceivingStorageLocation I_ProdnVersTP ReceivingStorageLocation RecStorLoc
MaterialCostApportionmentStruc
MainProduct
IssuingStorageLocation Iss. Stor. Loc.
ProductionSupplyArea I_ProdnVersTP ProductionSupplyArea Supply Area
DestinationStorageBin I_ProdnVersTP DestinationStorageBin
EWMWarehouse I_ProdnVersTP EWMWarehouse Warehouse No.
ProductionVersionLastCheckDate
ProductionVersionIsLocked
ChangeNumber I_ProdnVersTP ChangeNumber Change Number
OriginalBatchReferenceMaterial
CreationDate I_ProdnVersTP CreationDate Time Stamp
CreatedByUser User Name
LastChangeDate I_ProdnVersTP LastChangeDate Time Stamp
LastChangedByUser I_ProdnVersTP LastChangedByUser User Name
UnitOfMeasure _Material MaterialBaseUnit Valuation Unit
ProductionVersionStatus
RateBasedPlanningStatus I_ProdnVersTP RateBasedPlanningStatus
PreliminaryPlanningStatus I_ProdnVersTP PreliminaryPlanningStatus
PlanningAndExecutionBOMIsDiff I_ProdnVersTP PlanningAndExecutionBOMIsDiff
BOMCheckStatus
OvrlProdnVersChkSts
CheckStatusCriticality
BOMStatusCriticality
RoutingStatusCriticality
ProductionVersionLotSize
PlanningVersionDetailIsReq
ExecBillOfMaterialVariant I_ProdnVersTP ExecBillOfMaterialVariant
ExecBillOfMaterialVariantUsage I_ProdnVersTP ExecBillOfMaterialVariantUsage
BillOfMaterialVariantUsageDesc _Text BillOfMaterialVariantUsageDesc
ExecBillOfOperationsType I_ProdnVersTP ExecBillOfOperationsType
BillOfOperationsTypeName _BillOfOperationsTypeText BillOfOperationsTypeName
ExecBillOfOperationsGroup
ExecBillOfOperationsVariant I_ProdnVersTP ExecBillOfOperationsVariant
CreatedByUserDescription _CreatedUser UserDescription Full Name
LastChangedByUserDescription _ChangedUser UserDescription Full Name
PlantName _Plant PlantName Plant Name
RoutingCheckStatusText _RoutingStatusText ProductionVersionStatusText
BOMCheckStatusText _BOMStatusText ProductionVersionStatusText
MaterialName _MainProductText MaterialName Material Description
MaterialDescription _OriginalRefMaterialText MaterialName Material Description
_MaterialText _MaterialText
_Plant _Plant
_MaterialPlantVH _MaterialPlantVH
_MRPControllerVH _MRPControllerVH
_ProdnVersLockVH _ProdnVersLockVH
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroupVH _BillOfOperationsGroupVH
_IssuingStorageLocationVH _IssuingStorageLocationVH
_ReceivingStorageLocationVH _ReceivingStorageLocationVH
_BOMVarUsgeVH _BOMVarUsgeVH
_MatlBOMVarVH _MatlBOMVarVH
_ProdVersionGroupVH _ProdVersionGroupVH
_ApportionmentStrucVH _ApportionmentStrucVH
_MRPQuantityDistributionKeyVH _MRPQuantityDistributionKeyVH
_BOMStatusText _BOMStatusText
_RoutingStatusText _RoutingStatusText
_Text _Text
_BillOfOperationsTypeText _BillOfOperationsTypeText
_ProdnVersRtgBOMVers _ProdnVersRtgBOMVers
_MainProductText _MainProductText
_OriginalRefMaterialText _OriginalRefMaterialText
_ExecBillOfMatlUsageVH _ExecBillOfMatlUsageVH

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_ProdnVersObjPgTP.
-- 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: CPVOBJPGTP

CREATE VIEW C_ProdnVersObjPgTP AS
SELECT
  I_ProdnVersTP.Material AS Material,
  I_ProdnVersTP.Plant AS Plant,
  I_ProdnVersTP.ProductionVersion AS ProductionVersion,
  I_ProdnVersTP.MaterialForEdit AS MaterialForEdit,
  I_ProdnVersTP.PlantForEdit AS PlantForEdit,
  I_ProdnVersTP.ProductionVersionForEdit AS ProductionVersionForEdit,
  I_ProdnVersTP.BillOfMaterialVariant AS BillOfMaterialVariant,
  I_ProdnVersTP.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  cast(BillOfOperationsGroup as plnnr preserving type ) AS BillOfOperationsGroup,
  cast(BillOfOperationsVariant as plnal preserving type ) AS BillOfOperationsVariant,
  I_ProdnVersTP.ValidityEndDate AS ValidityEndDate,
  cast(MRPController as pph_dispo preserving type ) AS MRPController,
  I_ProdnVersTP.ValidityStartDate AS ValidityStartDate,
  I_ProdnVersTP.HasVersionCtrldBOMAndRouting AS HasVersionCtrldBOMAndRouting,
  cast (BillOfOperationsType as plnty preserving type ) AS BillOfOperationsType,
  I_ProdnVersTP.ProductionLine AS ProductionLine,
  I_ProdnVersTP.ProductionVersionGroup AS ProductionVersionGroup,
  cast (ProductionVersionText as prod_vers_text preserving type ) AS ProductionVersionText,
  I_ProdnVersTP.QuantityDistributionKey AS QuantityDistributionKey,
  I_ProdnVersTP.DistributionKey AS DistributionKey,
  I_ProdnVersTP.ProdnVersIsAllowedForRptvMfg AS ProdnVersIsAllowedForRptvMfg,
  I_ProdnVersTP.MaterialMinLotSizeQuantity AS MaterialMinLotSizeQuantity,
  I_ProdnVersTP.MaterialMaxLotSizeQuantity AS MaterialMaxLotSizeQuantity,
  I_ProdnVersTP.ReceivingStorageLocation AS ReceivingStorageLocation,
  cast(MaterialCostApportionmentStruc as mpe_pv_apportionment_struct preserving type ) AS MaterialCostApportionmentStruc,
  cast(MainProduct as mpe_pv_hdr_mat preserving type ) AS MainProduct,
  cast(IssuingStorageLocation as mpe_pv_issue_sloc preserving type ) AS IssuingStorageLocation,
  I_ProdnVersTP.ProductionSupplyArea AS ProductionSupplyArea,
  I_ProdnVersTP.DestinationStorageBin AS DestinationStorageBin,
  I_ProdnVersTP.EWMWarehouse AS EWMWarehouse,
  cast(ProductionVersionLastCheckDate as mpe_pv_lastcheck_date preserving type ) AS ProductionVersionLastCheckDate,
  cast(ProductionVersionIsLocked as mpe_pv_lock_status preserving type ) AS ProductionVersionIsLocked,
  I_ProdnVersTP.ChangeNumber AS ChangeNumber,
  cast(OriginalBatchReferenceMaterial as mpe_pv_ob_rfmat preserving type ) AS OriginalBatchReferenceMaterial,
  I_ProdnVersTP.CreationDate AS CreationDate,
  cast(CreatedByUser as vdm_createdbyuserid preserving type ) AS CreatedByUser,
  I_ProdnVersTP.LastChangeDate AS LastChangeDate,
  I_ProdnVersTP.LastChangedByUser AS LastChangedByUser,
  _Material.MaterialBaseUnit AS UnitOfMeasure,
  cast(ProductionVersionStatus as mpe_pv_rtg_chksts preserving type ) AS ProductionVersionStatus,
  I_ProdnVersTP.RateBasedPlanningStatus AS RateBasedPlanningStatus,
  I_ProdnVersTP.PreliminaryPlanningStatus AS PreliminaryPlanningStatus,
  I_ProdnVersTP.PlanningAndExecutionBOMIsDiff AS PlanningAndExecutionBOMIsDiff,
  cast(BOMCheckStatus as mpe_pv_bom_chksts preserving type ) AS BOMCheckStatus,
  cast ( '' as mpe_pv_ovrl_chksts) AS OvrlProdnVersChkSts,
  cast ( 0 as abap.int1) AS CheckStatusCriticality,
  cast ( 0 as abap.int1) AS BOMStatusCriticality,
  cast ( 0 as abap.int1) AS RoutingStatusCriticality,
  cast ('' as abap.char( 35 )) AS ProductionVersionLotSize,
  cast( ' ' as boole_d) AS PlanningVersionDetailIsReq,
  I_ProdnVersTP.ExecBillOfMaterialVariant AS ExecBillOfMaterialVariant,
  I_ProdnVersTP.ExecBillOfMaterialVariantUsage AS ExecBillOfMaterialVariantUsage,
  _Text.BillOfMaterialVariantUsageDesc AS BillOfMaterialVariantUsageDesc,
  I_ProdnVersTP.ExecBillOfOperationsType AS ExecBillOfOperationsType,
  _BillOfOperationsTypeText.BillOfOperationsTypeName AS BillOfOperationsTypeName,
  cast(I_ProdnVersTP.ExecBillOfOperationsGroup as mpe_pv_exe_plnnr preserving type ) AS ExecBillOfOperationsGroup,
  I_ProdnVersTP.ExecBillOfOperationsVariant AS ExecBillOfOperationsVariant,
  _CreatedUser.UserDescription AS CreatedByUserDescription,
  _ChangedUser.UserDescription AS LastChangedByUserDescription,
  _Plant.PlantName AS PlantName,
  _RoutingStatusText.ProductionVersionStatusText AS RoutingCheckStatusText,
  _BOMStatusText.ProductionVersionStatusText AS BOMCheckStatusText,
  _MainProductText.MaterialName AS MaterialName,
  _OriginalRefMaterialText.MaterialName AS MaterialDescription
FROM I_ProdnVersTP
LEFT OUTER JOIN I_MaterialText AS _MainProductText ON MainProduct = _MainProductText.Material AND _MainProductText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _OriginalRefMaterialText ON OriginalBatchReferenceMaterial = _OriginalRefMaterialText.Material AND _OriginalRefMaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_ProdnVersRtgBOMVersObjPgTP AS _ProdnVersRtgBOMVers ON Material = _ProdnVersRtgBOMVers.Material AND Plant = _ProdnVersRtgBOMVers.Plant AND ProductionVersion = _ProdnVersRtgBOMVers.ProductionVersion  -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON MaterialForEdit = _MaterialText.Material  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON PlantForEdit = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProdnVersMatlPlntVH AS _MaterialPlantVH ON MaterialForEdit = _MaterialPlantVH.Material AND PlantForEdit = _MaterialPlantVH.Plant  -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPControllerVH ON PlantForEdit = _MRPControllerVH.Plant AND MRPController = _MRPControllerVH.MRPController  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersLock AS _ProdnVersLockVH ON ProductionVersionIsLocked = _ProdnVersLockVH.ProductionVersionIsLocked  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersChkStsTxt AS _RoutingStatusText ON ProductionVersionStatus = _RoutingStatusText.ProductionVersionStatus AND _RoutingStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersChkStsTxt AS _BOMStatusText ON BOMCheckStatus = _BOMStatusText.ProductionVersionStatus AND _BOMStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _IssuingStorageLocationVH ON IssuingStorageLocation = _IssuingStorageLocationVH.StorageLocation AND PlantForEdit = _IssuingStorageLocationVH.Plant  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _ReceivingStorageLocationVH ON ReceivingStorageLocation = _ReceivingStorageLocationVH.StorageLocation AND PlantForEdit = _ReceivingStorageLocationVH.Plant  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BOMVarUsgeVH ON BillOfMaterialVariantUsage = _BOMVarUsgeVH.BillOfMaterialVariantUsage AND _BOMVarUsgeVH.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsageText AS _Text ON ExecBillOfMaterialVariantUsage = _Text.BillOfMaterialVariantUsage AND _Text.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsTypeText AS _BillOfOperationsTypeText ON ExecBillOfOperationsType = _BillOfOperationsTypeText.BillOfOperationsType AND _BillOfOperationsTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_ProdnVersMatlBOMVH AS _MatlBOMVarVH ON MaterialForEdit = _MatlBOMVarVH.Material AND PlantForEdit = _MatlBOMVarVH.Plant AND BillOfMaterialVariantUsage = _MatlBOMVarVH.BillOfMaterialVariantUsage AND BillOfMaterialVariant = _MatlBOMVarVH.BillOfMaterialVariant  -- association [0..1]
LEFT OUTER JOIN I_ProductionVersionGroup AS _ProdVersionGroupVH ON PlantForEdit = _ProdVersionGroupVH.Plant AND ProductionVersionGroup = _ProdVersionGroupVH.ProductionVersionGroup  -- association [0..1]
LEFT OUTER JOIN I_MatlCostApportionmentStruc AS _ApportionmentStrucVH ON PlantForEdit = _ApportionmentStrucVH .Plant AND MaterialForEdit = _ApportionmentStrucVH.Material AND MaterialCostApportionmentStruc = _ApportionmentStrucVH.MaterialCostApportionmentStruc  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON MaterialForEdit = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersTaskListVH AS _BillOfOperationsGroupVH ON BillOfOperationsType = _BillOfOperationsGroupVH.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroupVH.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsGroupVH.BillOfOperationsVariant  -- association [0..*]
LEFT OUTER JOIN I_MRPQuantityDistributionKey AS _MRPQuantityDistributionKeyVH ON PlantForEdit = _MRPQuantityDistributionKeyVH.Plant AND QuantityDistributionKey = _MRPQuantityDistributionKeyVH.QuantityDistributionKey  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedUser ON CreatedByUser = _CreatedUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedUser ON LastChangedByUser = _ChangedUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_ProdnVersBillOfMatlUsageVH AS _ExecBillOfMatlUsageVH ON ExecBillOfMaterialVariantUsage = _ExecBillOfMatlUsageVH.BillOfMaterialVariantUsage  -- association [0..*]
;