R_ProductionRoutingHeaderTP_2
Production Routing Header
R_ProductionRoutingHeaderTP_2 is a Transactional CDS View that provides data about "Production Routing Header" in SAP S/4HANA. It reads from 2 data sources (I_RoutingHeader, I_ProductionRouting) and exposes 35 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingInternalVers. It has 7 associations to related views. Part of development package VDM_PP_MD_RTG.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RoutingHeader | plko | from |
| I_ProductionRouting | plkz | inner |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_ProdnRoutingMatlAssgmtTP_2 | _MatlAssgmt | $projection.ProductionRoutingGroup = _MatlAssgmt.ProductionRoutingGroup and $projection.ProductionRouting = _MatlAssgmt.ProductionRouting and $projection.ValidityEndDate >= _MatlAssgmt.ValidityStartDate and $projection.ValidityStartDate <= _MatlAssgmt.ValidityEndDate |
| [1..*] | R_ProdnRoutingSequenceTP_2 | _Sequence | $projection.ProductionRoutingGroup = _Sequence.ProductionRoutingGroup and $projection.ProductionRouting = _Sequence.ProductionRouting and $projection.ValidityEndDate >= _Sequence.ValidityStartDate and $projection.ValidityStartDate <= _Sequence.ValidityEndDate |
| [0..1] | I_ProdnRtgMatlCount | _MatlCount | $projection.ProductionRoutingGroup = _MatlCount.ProductionRoutingGroup and $projection.ProductionRouting = _MatlCount.ProductionRouting |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID |
| [0..1] | I_WorkCenterType | _WorkCenterType | $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode |
| [1..1] | E_ProductionRoutingHeader | _Extension | $projection.ProductionRoutingGroup = _Extension.ProductionRoutingGroup and $projection.ProductionRouting = _Extension.ProductionRouting and $projection.ProductionRoutingInternalVers = _Extension.ProductionRoutingInternalVers and _Extension.BillOfOperationsType = 'N' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Production Routing Header | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.representativeKey | ProductionRoutingInternalVers | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionRoutingGroup | I_RoutingHeader | BillOfOperationsGroup | Group |
| KEY | ProductionRouting | I_RoutingHeader | BillOfOperationsVariant | Group Counter |
| KEY | ProductionRoutingInternalVers | I_RoutingHeader | BOOInternalVersionCounter | |
| IsMarkedForDeletion | I_ProductionRouting | IsMarkedForDeletion | Purch.org. data | |
| BillOfOperationsDesc | I_RoutingHeader | BillOfOperationsDesc | ||
| Plant | I_RoutingHeader | Plant | Valuation Area | |
| BillOfOperationsUsage | I_RoutingHeader | BillOfOperationsUsage | ||
| BillOfOperationsStatus | I_RoutingHeader | BillOfOperationsStatus | ||
| ResponsiblePlannerGroup | I_RoutingHeader | ResponsiblePlannerGroup | ||
| MinimumLotSizeQuantity | I_RoutingHeader | MinimumLotSizeQuantity | Min. Lot Size | |
| MaximumLotSizeQuantity | I_RoutingHeader | MaximumLotSizeQuantity | Max. Lot Size | |
| BillOfOperationsUnit | I_RoutingHeader | BillOfOperationsUnit | ||
| CreationDate | I_RoutingHeader | CreationDate | Time Stamp | |
| CreatedByUser | I_RoutingHeader | CreatedByUser | User Name | |
| LastChangeDate | I_RoutingHeader | LastChangeDate | Time Stamp | |
| LastChangedByUser | I_RoutingHeader | LastChangedByUser | User Name | |
| ValidityStartDate | I_RoutingHeader | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_RoutingHeader | ValidityEndDate | ValidTo | |
| ChangeNumber | I_RoutingHeader | ChangeNumber | Change Number | |
| ChangedDateTime | _ProdnRtgTP | ChangedDateTime | Time Stamp | |
| PlainLongText | I_RoutingHeader | PlainLongText | Long Text | |
| PlantName | _Plant | PlantName | Plant Name | |
| WorkCenterTypeCode | I_RoutingHeader | WorkCenterTypeCode | Object Type | |
| WorkCenterInternalID | I_RoutingHeader | WorkCenterInternalID | Work Center | |
| PlanningWorkCenter | ||||
| ReplacedBillOfOperations | I_RoutingHeader | ReplacedBillOfOperations | ||
| _MatlAssgmt | _MatlAssgmt | |||
| _ProdnRtgTP | _ProdnRtgTP | |||
| _Sequence | _Sequence | |||
| _UsageText | _UsageText | |||
| _StatusText | _StatusText | |||
| _MatlCount | _MatlCount | |||
| _Plant | _Plant | |||
| _WorkCenter | _WorkCenter | |||
| _WorkCenterType | _WorkCenterType |
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_ProductionRoutingHeaderTP_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_ProductionRoutingHeaderTP_2 AS
SELECT
plko.BillOfOperationsGroup AS ProductionRoutingGroup,
plko.BillOfOperationsVariant AS ProductionRouting,
plko.BOOInternalVersionCounter AS ProductionRoutingInternalVers,
plkz.IsMarkedForDeletion AS IsMarkedForDeletion,
plko.BillOfOperationsDesc AS BillOfOperationsDesc,
plko.Plant AS Plant,
plko.BillOfOperationsUsage AS BillOfOperationsUsage,
plko.BillOfOperationsStatus AS BillOfOperationsStatus,
plko.ResponsiblePlannerGroup AS ResponsiblePlannerGroup,
plko.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
plko.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
plko.BillOfOperationsUnit AS BillOfOperationsUnit,
plko.CreationDate AS CreationDate,
plko.CreatedByUser AS CreatedByUser,
plko.LastChangeDate AS LastChangeDate,
plko.LastChangedByUser AS LastChangedByUser,
plko.ValidityStartDate AS ValidityStartDate,
plko.ValidityEndDate AS ValidityEndDate,
plko.ChangeNumber AS ChangeNumber,
_ProdnRtgTP.ChangedDateTime AS ChangedDateTime,
plko.PlainLongText AS PlainLongText,
_Plant.PlantName AS PlantName,
plko.WorkCenterTypeCode AS WorkCenterTypeCode,
plko.WorkCenterInternalID AS WorkCenterInternalID,
plko._WorkCenter.WorkCenter AS PlanningWorkCenter,
plko.ReplacedBillOfOperations AS ReplacedBillOfOperations
FROM I_RoutingHeader AS plko
INNER JOIN I_ProductionRouting AS plkz ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_ProdnRoutingMatlAssgmtTP_2 AS _MatlAssgmt ON ProductionRoutingGroup = _MatlAssgmt.ProductionRoutingGroup AND ProductionRouting = _MatlAssgmt.ProductionRouting AND ValidityEndDate >= _MatlAssgmt.ValidityStartDate AND ValidityStartDate <= _MatlAssgmt.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN R_ProdnRoutingSequenceTP_2 AS _Sequence ON ProductionRoutingGroup = _Sequence.ProductionRoutingGroup AND ProductionRouting = _Sequence.ProductionRouting AND ValidityEndDate >= _Sequence.ValidityStartDate AND ValidityStartDate <= _Sequence.ValidityEndDate -- association [1..*]
LEFT OUTER JOIN I_ProdnRtgMatlCount AS _MatlCount ON ProductionRoutingGroup = _MatlCount.ProductionRoutingGroup AND ProductionRouting = _MatlCount.ProductionRouting -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode AND WorkCenterInternalID = _WorkCenter.WorkCenterInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN E_ProductionRoutingHeader AS _Extension ON ProductionRoutingGroup = _Extension.ProductionRoutingGroup AND ProductionRouting = _Extension.ProductionRouting AND ProductionRoutingInternalVers = _Extension.ProductionRoutingInternalVers AND _Extension.BillOfOperationsType = 'N' -- 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