P_ProdnRoutingCompAllocDEX

DDL: P_PRODNROUTINGCOMPALLOCDEX Type: view_entity BASIC

P_ProdnRoutingCompAllocDEX is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (plmz) and exposes 33 fields with key fields BillOfOperationsType, ProductionRoutingGroup, ProdnRtgOpBOMItemInternalID, ProdnRtgOpBOMItemIntVersion. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
plmz plmz from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[1..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.ProductionRoutingGroup = _BillOfOperationsGroup.BillOfOperationsGroup
[1..1] I_BOOOpBOMItmIntId _BOOOpBOMItemInternalID $projection.BillOfOperationsType = _BOOOpBOMItemInternalID.BillOfOperationsType and $projection.ProductionRoutingGroup = _BOOOpBOMItemInternalID.BillOfOperationsGroup and $projection.ProdnRtgOpBOMItemInternalID = _BOOOpBOMItemInternalID.BOOOpBOMItemInternalID

Annotations (8)

NameValueLevelField
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ProdnRtgOpBOMItemIntVersion view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY BillOfOperationsType plnty Task List Type
KEY ProductionRoutingGroup plnnr Task List Group
KEY ProdnRtgOpBOMItemInternalID zuonr Finance Project
KEY ProdnRtgOpBOMItemIntVersion zaehl Sort pos.
ProductionRouting plnal Referenced BOO Variant
ProductionRoutingSequence plnfl Sequence
ProductionRoutingOpIntID plnkn Task list node
BillOfOperationsVersion versn Version
ValidityStartDate datuv Valid-from date
ValidityEndDate valid_to Validity End Time
AdministrationDataandatasCreationDate
CreatedByUser Created By
LastChangeDate aedat Obsolete
LastChangedByUser User Name
IsDeleted loekz Status
IsImplicitlyDeleted loekz_inherited Deletion Ind.
ChangeNumber aennr Change Number
GoodsRecipientName Recipient
UnloadingPointName Unloading Point
BillOfMaterial BOM
BillOfMaterialVariant stlal AlternativeBOM
BillOfMaterialItemNodeNumber stlkn Single-Character Flag
BillOfMaterialRootCategory stlty_w BOM category
BillOfMaterialRoot BOM
BillOfMaterialRootVariant stlal_w Alternative
BillOfMaterialEdgeNumber kante Path
MatlCompIsMarkedForBackflush rgekz Backflushing
QMdispasResvnIsMRPRlvtOrPurReqnIsCrted
BillOfMaterialItemQuantity imeng Quantity
BillOfMaterialItemUnit imein Component UoM
Associations_BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BOOOpBOMItemInternalID _BOOOpBOMItemInternalID

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 P_ProdnRoutingCompAllocDEX.
-- 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 P_ProdnRoutingCompAllocDEX AS
SELECT
  plnty AS BillOfOperationsType,
  plnnr AS ProductionRoutingGroup,
  zuonr AS ProdnRtgOpBOMItemInternalID,
  zaehl AS ProdnRtgOpBOMItemIntVersion,
  plnal AS ProductionRouting,
  plnfl AS ProductionRoutingSequence,
  plnkn AS ProductionRoutingOpIntID,
  versn AS BillOfOperationsVersion,
  datuv AS ValidityStartDate,
  valid_to AS ValidityEndDate,
  cast(annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
  aedat AS LastChangeDate,
  cast(aenam as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
  loekz AS IsDeleted,
  loekz_inherited AS IsImplicitlyDeleted,
  aennr AS ChangeNumber,
  cast(wempf as pph_wempf preserving type) AS GoodsRecipientName,
  cast(ablad as ablad preserving type) AS UnloadingPointName,
  cast(stlnr as cs_stlnr preserving type) AS BillOfMaterial,
  stlal AS BillOfMaterialVariant,
  stlkn AS BillOfMaterialItemNodeNumber,
  stlty_w AS BillOfMaterialRootCategory,
  cast(stlnr_w as pph_stnum preserving type) AS BillOfMaterialRoot,
  stlal_w AS BillOfMaterialRootVariant,
  kante AS BillOfMaterialEdgeNumber,
  rgekz AS MatlCompIsMarkedForBackflush,
  imeng AS BillOfMaterialItemQuantity,
  imein AS BillOfMaterialItemUnit
FROM plmz
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND ProductionRoutingGroup = _BillOfOperationsGroup.BillOfOperationsGroup  -- association [1..1]
LEFT OUTER JOIN I_BOOOpBOMItmIntId AS _BOOOpBOMItemInternalID ON BillOfOperationsType = _BOOOpBOMItemInternalID.BillOfOperationsType AND ProductionRoutingGroup = _BOOOpBOMItemInternalID.BillOfOperationsGroup AND ProdnRtgOpBOMItemInternalID = _BOOOpBOMItemInternalID.BOOOpBOMItemInternalID  -- association [1..1]
;