R_ProdnRoutingOpCompAllocTP_2
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductionRoutingCompAlloc | CompAlloc | from |
| I_ProdnRtgOpCompAllocToOp | OperCompAlloc | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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