P_ProdnRoutingCompAllocDEX
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)
| Source | Alias | Join Type |
|---|---|---|
| plmz | plmz | from |
Associations (3)
| 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_BOOOpBOMItmIntId | _BOOOpBOMItemInternalID | $projection.BillOfOperationsType = _BOOOpBOMItemInternalID.BillOfOperationsType and $projection.ProductionRoutingGroup = _BOOOpBOMItemInternalID.BillOfOperationsGroup and $projection.ProdnRtgOpBOMItemInternalID = _BOOOpBOMItemInternalID.BOOOpBOMItemInternalID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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