P_ProdnRoutingMatlAssgmtDEX
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)
| Source | Alias | Join Type |
|---|---|---|
| mapl | mapl | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA