R_ProductionModelTP

DDL: R_PRODUCTIONMODELTP Type: view_entity TRANSACTIONAL

Production Model Header

R_ProductionModelTP is a Transactional CDS View that provides data about "Production Model Header" in SAP S/4HANA. It reads from 1 data source (I_ProductionModel) and exposes 51 fields with key fields ProductionModelUUID, BillOfOperationsVersion. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductionModel I_ProductionModel from

Associations (5)

CardinalityTargetAliasCondition
[0..1] R_ProdnModParamEffectivityTP _ParameterEffectivity _ParameterEffectivity.ProductionModelUUID = $projection.ProductionModelUUID and _ParameterEffectivity.BillOfOperationsVersion = $projection.BillOfOperationsVersion and _ParameterEffectivity.ParamEffctyObjectReferenceKey = $projection.ParamEffctyObjectReferenceKey and _ParameterEffectivity.ParamEffctyParentObjRefKey = $projection.ParamEffctyParentObjRefKey
[0..1] R_ProdnModParamEffectivityTP _ReleaseEffectivity _ReleaseEffectivity.ProductionModelUUID = $projection.ProductionModelUUID and _ReleaseEffectivity.BillOfOperationsVersion = $projection.BillOfOperationsVersion and _ReleaseEffectivity.ParamEffctyObjectReferenceKey = $projection.ParamEffctyRelObjReferenceKey and _ReleaseEffectivity.ParamEffctyParentObjRefKey = $projection.ParamEffctyRelParentObjRefKey
[0..*] R_ProductionModelComponentTP _HeaderComponent
[0..*] R_ProductionModelOperationTP _Operation
[0..*] R_ProdnModelSequenceTP _Sequence

Annotations (8)

NameValueLevelField
ObjectModel.sapObjectNodeType.name ProductionModel view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #TRANSACTIONAL view
EndUserText.label Production Model Header view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY ProductionModelUUID ProductionModelUUID Prodn Model UUID
KEY BillOfOperationsVersion BillOfOperationsVersion Routing Version
ProductionModelProcessType ProductionModelProcessType
ProdnModComplexAssemblyType ProdnModComplexAssemblyType
Material Material Vehicle Model
BillOfMaterial BillOfMaterial BOM
BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
BillOfMaterialCategory BillOfMaterialCategory BOM category
BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
BillOfMaterialVersion BillOfMaterialVersion BOM Version
BOMVersionStatus BOMVersionStatus BOM Version Status
Plant Plant Valuation Area
BillOfOperationsType BillOfOperationsType Task List Type
BillOfOperationsGroup BillOfOperationsGroup Group
BillOfOperationsVariant BillOfOperationsVariant Group Counter
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
BillOfOperationsVersionStatus BillOfOperationsVersionStatus
ProdnModelVersionIsLatest ProdnModelVersionIsLatest
ProdnModelVersionIsActive ProdnModelVersionIsActive
IsLatestBOOVersion IsLatestBOOVersion
ProdnModelCreationDateTime ProdnModelCreationDateTime
ProductionModelCreatedByUser ProductionModelCreatedByUser
ProdnModelChangedDateTime ProdnModelChangedDateTime
ProductionModelChangedByUser ProductionModelChangedByUser
ChangeNumber ChangeNumber Change Number
BOOVersionChangeNumber BOOVersionChangeNumber
ParamEffctyObjectReferenceKey
ParamEffctyParentObjRefKey
ParamEffctyObjectType
ParamEffctyRelObjReferenceKey
ParamEffctyRelParentObjRefKey
ParamEffctyRelObjectType
RoutingIsReworkRouting RoutingIsReworkRouting
ProdnProcgIsFlexible ProdnProcgIsFlexible
BillOfOpsBusinessProcess BillOfOpsBusinessProcess
BillOfOperationIsExecutedInMES BillOfOperationIsExecutedInMES
BOMIsConfigurable BOMIsConfigurable ConfigurableBOM
_HeaderComponent _HeaderComponent
_Operation _Operation
_Plant _Plant
_MaterialText _MaterialText
_BOOVersionStatusText _BOOVersionStatusText
_BOMVersStatusText _BOMVersStatusText
_BOMUsageText _BOMUsageText
_BOOTypeText _BOOTypeText
_SalesDocumentItemText _SalesDocumentItemText
_ParameterEffectivity _ParameterEffectivity
_ReleaseEffectivity _ReleaseEffectivity
_Sequence _Sequence
_BOOBusinessProcessText _BOOBusinessProcessText

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_ProductionModelTP.
-- 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_ProductionModelTP AS
SELECT
  ProductionModelUUID,
  BillOfOperationsVersion,
  ProductionModelProcessType,
  ProdnModComplexAssemblyType,
  Material,
  BillOfMaterial,
  BillOfMaterialVariant,
  BillOfMaterialCategory,
  BillOfMaterialVariantUsage,
  BillOfMaterialVersion,
  BOMVersionStatus,
  Plant,
  BillOfOperationsType,
  BillOfOperationsGroup,
  BillOfOperationsVariant,
  SalesOrder,
  SalesOrderItem,
  BillOfOperationsVersionStatus,
  ProdnModelVersionIsLatest,
  ProdnModelVersionIsActive,
  IsLatestBOOVersion,
  ProdnModelCreationDateTime,
  ProductionModelCreatedByUser,
  ProdnModelChangedDateTime,
  ProductionModelChangedByUser,
  ChangeNumber,
  BOOVersionChangeNumber,
  cast(concat(bintohex(ProductionModelUUID), BillOfOperationsVersion) as char60) AS ParamEffctyObjectReferenceKey,
  cast('' as char60) AS ParamEffctyParentObjRefKey,
  cast('HEADER' as char20) AS ParamEffctyObjectType,
  cast( concat(concat( BillOfOperationsType, BillOfOperationsGroup),concat(BillOfOperationsVariant, BillOfOperationsVersion) ) as char60) AS ParamEffctyRelObjReferenceKey,
  cast(concat(bintohex(ProductionModelUUID), BillOfOperationsVersion) as char60) AS ParamEffctyRelParentObjRefKey,
  cast('ROUTINGRELEASE' as char20) AS ParamEffctyRelObjectType,
  RoutingIsReworkRouting,
  ProdnProcgIsFlexible,
  BillOfOpsBusinessProcess,
  BillOfOperationIsExecutedInMES,
  BOMIsConfigurable
FROM I_ProductionModel
LEFT OUTER JOIN R_ProdnModParamEffectivityTP AS _ParameterEffectivity ON _ParameterEffectivity.ProductionModelUUID = ProductionModelUUID AND _ParameterEffectivity.BillOfOperationsVersion = BillOfOperationsVersion AND _ParameterEffectivity.ParamEffctyObjectReferenceKey = ParamEffctyObjectReferenceKey AND _ParameterEffectivity.ParamEffctyParentObjRefKey = ParamEffctyParentObjRefKey  -- association [0..1]
LEFT OUTER JOIN R_ProdnModParamEffectivityTP AS _ReleaseEffectivity ON _ReleaseEffectivity.ProductionModelUUID = ProductionModelUUID AND _ReleaseEffectivity.BillOfOperationsVersion = BillOfOperationsVersion AND _ReleaseEffectivity.ParamEffctyObjectReferenceKey = ParamEffctyRelObjReferenceKey AND _ReleaseEffectivity.ParamEffctyParentObjRefKey = ParamEffctyRelParentObjRefKey  -- association [0..1]
LEFT OUTER JOIN R_ProductionModelComponentTP AS _HeaderComponent ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_ProductionModelOperationTP AS _Operation ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_ProdnModelSequenceTP AS _Sequence ON /* condition not available in parsed metadata */  -- association [0..*]
;