R_ProdnRoutingOpCompAllocTP_2

DDL: R_PRODNROUTINGOPCOMPALLOCTP_2 Type: view_entity TRANSACTIONAL Package: VDM_PP_MD_RTG

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 2 data sources (I_ProductionRoutingCompAlloc, I_ProdnRtgOpCompAllocToOp) and exposes 28 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingSequence, ProductionRoutingOpIntID, ProdnRtgOpBOMItemInternalID. It has 1 association to related views. Part of development package VDM_PP_MD_RTG.

Data Sources (2)

SourceAliasJoin Type
I_ProductionRoutingCompAlloc CompAlloc from
I_ProdnRtgOpCompAllocToOp OperCompAlloc inner

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 #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY ProductionRoutingGroup I_ProductionRoutingCompAlloc BillOfOperationsGroup Group
KEY ProductionRouting I_ProductionRoutingCompAlloc BillOfOperationsVariant Group Counter
KEY ProductionRoutingSequence I_ProductionRoutingCompAlloc BillOfOperationsSequence Sequence
KEY ProductionRoutingOpIntID I_ProductionRoutingCompAlloc BOOOperationInternalID Task list node
KEY ProdnRtgOpBOMItemInternalID I_ProductionRoutingCompAlloc BOOOpBOMItemInternalID Allocation no.
KEY ProdnRtgOpBOMItemIntVersion I_ProductionRoutingCompAlloc BOOOpBOMItemIntVersCounter
BillOfMaterialCategory I_ProductionRoutingCompAlloc BillOfMaterialCategory BOM category
BillOfMaterial I_ProductionRoutingCompAlloc BillOfMaterial BOM
BillOfMaterialComponent
BillOfMaterialVariant I_ProductionRoutingCompAlloc BillOfMaterialVariant AlternativeBOM
BillOfMaterialItemNodeNumber I_ProductionRoutingCompAlloc BillOfMaterialItemNodeNumber Item node
MatlCompIsMarkedForBackflush I_ProductionRoutingCompAlloc MatlCompIsMarkedForBackflush Backflush
CreationDate I_ProductionRoutingCompAlloc CreationDate Time Stamp
CreatedByUser I_ProductionRoutingCompAlloc CreatedByUser User Name
LastChangeDate I_ProductionRoutingCompAlloc LastChangeDate Time Stamp
LastChangedByUser I_ProductionRoutingCompAlloc LastChangedByUser User Name
ValidityStartDate
ValidityEndDate
ChangeNumber I_ProductionRoutingCompAlloc ChangeNumber Change Number
ChangedDateTime _NonSqncTP ChangedDateTime Time Stamp
BillOfMaterialHierarchyLevel I_ProductionRoutingCompAlloc BillOfMaterialHierarchyLevel
BillOfMaterialHierarchyPath I_ProductionRoutingCompAlloc BillOfMaterialHierarchyPath
BillOfMaterialRootCategory I_ProductionRoutingCompAlloc BillOfMaterialRootCategory
BillOfMaterialRoot I_ProductionRoutingCompAlloc BillOfMaterialRoot
BillOfMaterialRootVariant I_ProductionRoutingCompAlloc BillOfMaterialRootVariant
_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
  CompAlloc.BillOfOperationsGroup AS ProductionRoutingGroup,
  CompAlloc.BillOfOperationsVariant AS ProductionRouting,
  CompAlloc.BillOfOperationsSequence AS ProductionRoutingSequence,
  CompAlloc.BOOOperationInternalID AS ProductionRoutingOpIntID,
  CompAlloc.BOOOpBOMItemInternalID AS ProdnRtgOpBOMItemInternalID,
  CompAlloc.BOOOpBOMItemIntVersCounter AS ProdnRtgOpBOMItemIntVersion,
  CompAlloc.BillOfMaterialCategory AS BillOfMaterialCategory,
  CompAlloc.BillOfMaterial AS BillOfMaterial,
  CompAlloc._BillOfMaterialItem.BillOfMaterialComponent AS BillOfMaterialComponent,
  CompAlloc.BillOfMaterialVariant AS BillOfMaterialVariant,
  CompAlloc.BillOfMaterialItemNodeNumber AS BillOfMaterialItemNodeNumber,
  CompAlloc.MatlCompIsMarkedForBackflush AS MatlCompIsMarkedForBackflush,
  CompAlloc.CreationDate AS CreationDate,
  CompAlloc.CreatedByUser AS CreatedByUser,
  CompAlloc.LastChangeDate AS LastChangeDate,
  CompAlloc.LastChangedByUser AS LastChangedByUser,
  cast(CompAlloc.ValidityStartDate as pph_begda preserving type) AS ValidityStartDate,
  cast(CompAlloc.ValidityEndDate as pph_endda preserving type) AS ValidityEndDate,
  CompAlloc.ChangeNumber AS ChangeNumber,
  _NonSqncTP.ChangedDateTime AS ChangedDateTime,
  CompAlloc.BillOfMaterialHierarchyLevel AS BillOfMaterialHierarchyLevel,
  CompAlloc.BillOfMaterialHierarchyPath AS BillOfMaterialHierarchyPath,
  CompAlloc.BillOfMaterialRootCategory AS BillOfMaterialRootCategory,
  CompAlloc.BillOfMaterialRoot AS BillOfMaterialRoot,
  CompAlloc.BillOfMaterialRootVariant AS BillOfMaterialRootVariant
FROM I_ProductionRoutingCompAlloc AS CompAlloc
INNER JOIN I_ProdnRtgOpCompAllocToOp AS OperCompAlloc ON /* join condition not captured in parsed metadata */
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..*]
;