I_ProductionRoutingHeaderTP

DDL: I_PRODUCTIONROUTINGHEADERTP SQL: IRTGHDRTP Type: view_entity TRANSACTIONAL

Transaction View for Production Routing Header

I_ProductionRoutingHeaderTP is a Transactional CDS View that provides data about "Transaction View for Production Routing Header" in SAP S/4HANA. It reads from 2 data sources (I_RoutingHeader, I_ProductionRouting) and exposes 29 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingInternalVers. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_RoutingHeader plko from
I_ProductionRouting plkz inner

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_ProdnRoutingMatlAssgmtTP _MatlAssgmt $projection.ProductionRoutingGroup = _MatlAssgmt.ProductionRoutingGroup and $projection.ProductionRouting = _MatlAssgmt.ProductionRouting and $projection.ValidityEndDate >= _MatlAssgmt.ValidityStartDate and $projection.ValidityStartDate <= _MatlAssgmt.ValidityEndDate
[1..*] I_ProdnRtgSequenceTP _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

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Transaction View for 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 (29)

KeyFieldSource TableSource FieldDescription
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
_MatlAssgmt _MatlAssgmt
_ProdnRtgTP _ProdnRtgTP
_Sequence _Sequence
_UsageText _UsageText
_StatusText _StatusText
_MatlCount _MatlCount
_Plant _Plant

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 I_ProductionRoutingHeaderTP.
-- 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.
-- SQL view name: IRTGHDRTP

CREATE VIEW I_ProductionRoutingHeaderTP 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
FROM I_RoutingHeader AS plko
INNER JOIN I_ProductionRouting AS plkz ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProdnRoutingMatlAssgmtTP AS _MatlAssgmt ON ProductionRoutingGroup = _MatlAssgmt.ProductionRoutingGroup AND ProductionRouting = _MatlAssgmt.ProductionRouting AND ValidityEndDate >= _MatlAssgmt.ValidityStartDate AND ValidityStartDate <= _MatlAssgmt.ValidityEndDate  -- association [0..*]
LEFT OUTER JOIN I_ProdnRtgSequenceTP 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]
;