R_ProdnRoutingOpCompAllocTP_2

DDL: R_PRODNROUTINGOPCOMPALLOCTP_2 Type: view_entity TRANSACTIONAL

Production Routing Component Allocation

R_ProdnRoutingOpCompAllocTP_2 is a Transactional CDS View that provides data about "Production Routing Component Allocation" in SAP S/4HANA. It reads from 1 data source (I_ProductionRoutingCompAlloc) and exposes 22 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingSequence, ProductionRoutingOpIntID, ProdnRtgOpBOMItemInternalID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductionRoutingCompAlloc I_ProductionRoutingCompAlloc from

Associations (1)

CardinalityTargetAliasCondition
[1..*] R_ProductionRoutingHeaderTP_2 _Header $projection.ProductionRoutingGroup = _Header.ProductionRoutingGroup and $projection.ProductionRouting = _Header.ProductionRouting and $projection.ValidityEndDate >= _Header.ValidityStartDate and $projection.ValidityStartDate <= _Header.ValidityEndDate

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Production Routing Component Allocation view
ObjectModel.representativeKey ProdnRtgOpBOMItemIntVersion view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY ProductionRoutingGroup BillOfOperationsGroup Group
KEY ProductionRouting BillOfOperationsVariant Group Counter
KEY ProductionRoutingSequence BillOfOperationsSequence Sequence
KEY ProductionRoutingOpIntID BOOOperationInternalID Task list node
KEY ProdnRtgOpBOMItemInternalID BOOOpBOMItemInternalID Allocation no.
KEY ProdnRtgOpBOMItemIntVersion BOOOpBOMItemIntVersCounter
BillOfMaterialCategory BillOfMaterialCategory BOM category
BillOfMaterial BillOfMaterial BOM
BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
BillOfMaterialItemNodeNumber BillOfMaterialItemNodeNumber Item node
MatlCompIsMarkedForBackflush MatlCompIsMarkedForBackflush Backflush
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
ValidityStartDate Validity Start Date
ValidityEndDate ValidTo
ChangeNumber ChangeNumber Change Number
ChangedDateTime _NonSqncTP ChangedDateTime Time Stamp
_Header _Header
_NonSqncTP _NonSqncTP
_ProdnRtgTP _ProdnRtgTP

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_ProdnRoutingOpCompAllocTP_2.
-- 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_ProdnRoutingOpCompAllocTP_2 AS
SELECT
  BillOfOperationsGroup AS ProductionRoutingGroup,
  BillOfOperationsVariant AS ProductionRouting,
  BillOfOperationsSequence AS ProductionRoutingSequence,
  BOOOperationInternalID AS ProductionRoutingOpIntID,
  BOOOpBOMItemInternalID AS ProdnRtgOpBOMItemInternalID,
  BOOOpBOMItemIntVersCounter AS ProdnRtgOpBOMItemIntVersion,
  BillOfMaterialCategory,
  BillOfMaterial,
  BillOfMaterialVariant,
  BillOfMaterialItemNodeNumber,
  MatlCompIsMarkedForBackflush,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  cast(ValidityStartDate as pph_begda preserving type) AS ValidityStartDate,
  cast(ValidityEndDate as pph_endda preserving type) AS ValidityEndDate,
  ChangeNumber,
  _NonSqncTP.ChangedDateTime AS ChangedDateTime
FROM I_ProductionRoutingCompAlloc
LEFT OUTER JOIN R_ProductionRoutingHeaderTP_2 AS _Header ON ProductionRoutingGroup = _Header.ProductionRoutingGroup AND ProductionRouting = _Header.ProductionRouting AND ValidityEndDate >= _Header.ValidityStartDate AND ValidityStartDate <= _Header.ValidityEndDate  -- association [1..*]
;