P_ProdnRoutingMatlAssgmtDEX

DDL: P_PRODNROUTINGMATLASSGMTDEX Type: view_entity BASIC Package: VDM_PP_MD_RTG

Production Routing Material Assignment

P_ProdnRoutingMatlAssgmtDEX is a Basic CDS View that provides data about "Production Routing Material Assignment" in SAP S/4HANA. It reads from 1 data source (mapl) and exposes 26 fields with key fields Product, Plant, BillOfOperationsType, ProductionRoutingGroup, ProductionRouting. It has 6 associations to related views. Part of development package VDM_PP_MD_RTG.

Data Sources (1)

SourceAliasJoin Type
mapl mapl from

Associations (6)

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_BillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.ProductionRoutingGroup = _BillOfOperations.BillOfOperationsGroup and $projection.ProductionRouting = _BillOfOperations.BillOfOperationsVariant
[1..1] I_BOOMaterialAssignment _BOOMaterialAssignment $projection.Plant = _BOOMaterialAssignment.Plant and $projection.Product = _BOOMaterialAssignment.Material and $projection.BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType and $projection.ProductionRoutingGroup = _BOOMaterialAssignment.BillOfOperationsGroup and $projection.ProductionRouting = _BOOMaterialAssignment.BillOfOperationsVariant and $projection.ProductionRoutingMatlAssgmt = _BOOMaterialAssignment.BOOToMaterialInternalID
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Product _Product $projection.Product = _Product.Product

Annotations (7)

NameValueLevelField
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey ProductionRtgMatlAssgmtIntVers view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY Product mapl matnr Vehicle Model
KEY Plant mapl werks Receiving Plant
KEY BillOfOperationsType mapl plnty Task List Type
KEY ProductionRoutingGroup mapl plnnr Task List Group
KEY ProductionRouting mapl plnal Referenced BOO Variant
KEY ProductionRoutingMatlAssgmt mapl zkriz Add. Crit. Cntr
KEY ProductionRtgMatlAssgmtIntVers mapl zaehl Sort pos.
datuvasValidityStartDate
ValidityEndDate mapl valid_to Validity End Time
aennrasChangeNumber
CreationDate mapl andat Created On
CreatedByUser
LastChangeDate mapl aedat Obsolete
LastChangedByUser
IsDeleted mapl loekz Status
IsImplicitlyDeleted mapl loekz_inherited Deletion Ind.
Supplier mapl lifnr Vendor no.
Customer mapl kunr Customer
SalesOrder mapl vbeln SD Sched. Agmt
SalesOrderItem mapl posnr WBS Element
Associations_Product
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperations _BillOfOperations
_BOOMaterialAssignment _BOOMaterialAssignment

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_ProdnRoutingMatlAssgmtDEX.
-- 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_ProdnRoutingMatlAssgmtDEX AS
SELECT
  mapl.matnr AS Product,
  mapl.werks AS Plant,
  mapl.plnty AS BillOfOperationsType,
  mapl.plnnr AS ProductionRoutingGroup,
  mapl.plnal AS ProductionRouting,
  mapl.zkriz AS ProductionRoutingMatlAssgmt,
  mapl.zaehl AS ProductionRtgMatlAssgmtIntVers,
  mapl.valid_to AS ValidityEndDate,
  mapl.andat AS CreationDate,
  cast(mapl.annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
  mapl.aedat AS LastChangeDate,
  cast(mapl.aenam as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
  mapl.loekz AS IsDeleted,
  mapl.loekz_inherited AS IsImplicitlyDeleted,
  mapl.lifnr AS Supplier,
  mapl.kunr AS Customer,
  mapl.vbeln AS SalesOrder,
  mapl.posnr AS SalesOrderItem
FROM mapl
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_BillOfOperations AS _BillOfOperations ON BillOfOperationsType = _BillOfOperations.BillOfOperationsType AND ProductionRoutingGroup = _BillOfOperations.BillOfOperationsGroup AND ProductionRouting = _BillOfOperations.BillOfOperationsVariant  -- association [1..1]
LEFT OUTER JOIN I_BOOMaterialAssignment AS _BOOMaterialAssignment ON Plant = _BOOMaterialAssignment.Plant AND Product = _BOOMaterialAssignment.Material AND BillOfOperationsType = _BOOMaterialAssignment.BillOfOperationsType AND ProductionRoutingGroup = _BOOMaterialAssignment.BillOfOperationsGroup AND ProductionRouting = _BOOMaterialAssignment.BillOfOperationsVariant AND ProductionRoutingMatlAssgmt = _BOOMaterialAssignment.BOOToMaterialInternalID  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
;