R_ProductionRoutingSubopTP_2

DDL: R_PRODUCTIONROUTINGSUBOPTP_2 Type: view_entity TRANSACTIONAL

Production Routing Sub Operation

R_ProductionRoutingSubopTP_2 is a Transactional CDS View that provides data about "Production Routing Sub Operation" in SAP S/4HANA. It reads from 2 data sources (I_ProdnRtgSubordOpToOperation, I_ProductionRoutingSubOp) and exposes 80 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingSequence, ProductionRoutingOpIntID, ProdnRtgSubOpIntVersion. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ProdnRtgSubordOpToOperation OprSubOpr inner
I_ProductionRoutingSubOp SubOP from

Associations (4)

CardinalityTargetAliasCondition
[1..*] R_ProductionRoutingHeaderTP_2 _Header $projection.ProductionRoutingGroup = _Header.ProductionRoutingGroup and $projection.ProductionRouting = _Header.ProductionRouting and $projection.ValidityEndDate >= _Header.ValidityStartDate and $projection.ValidityStartDate <= _Header.ValidityEndDate
[0..1] I_TaskListOperationLongText _LongText $projection.ProductionRoutingGroup = _LongText.TaskListGroup and $projection.ProductionRoutingOpIntID = _LongText.BOOOperationInternalID and $projection.ProdnRtgSubOpIntVersion = _LongText.BOOInternalVersionCounter and $projection.LongTextLanguageCode is not null and _LongText.TaskListType = 'N'
[1..1] E_ProductionRoutingOperation _Extension $projection.ProductionRoutingGroup = _Extension.ProductionRoutingGroup and $projection.ProductionRoutingOpIntID = _Extension.ProductionRoutingOpIntID and $projection.ProdnRtgSubOpIntVersion = _Extension.ProductionRoutingOpIntVersion and _Extension.BillOfOperationsType = 'N'
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Production Routing Sub Operation view
ObjectModel.representativeKey ProdnRtgSubOpIntVersion view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (80)

KeyFieldSource TableSource FieldDescription
KEY ProductionRoutingGroup I_ProductionRoutingSubOp BillOfOperationsGroup Group
KEY ProductionRouting I_ProductionRoutingSubOp BillOfOperationsVariant Group Counter
KEY ProductionRoutingSequence I_ProductionRoutingSubOp BillOfOperationsSequence Sequence
KEY ProductionRoutingOpIntID I_ProductionRoutingSubOp BOOOperationInternalID Task list node
KEY ProdnRtgSubOpIntVersion I_ProductionRoutingSubOp BOOOpInternalVersionCounter Counter
SuperiorOperationInternalID I_ProductionRoutingSubOp SuperiorOperationInternalID Sup. Op. Node
Operation I_ProductionRoutingSubOp Operation Transaction
OperationText I_ProductionRoutingSubOp OperationText Description
LongTextLanguageCode I_ProductionRoutingSubOp LongTextLanguageCode Language
WorkCenterTypeCode I_ProductionRoutingSubOp WorkCenterTypeCode Object Type
WorkCenterInternalID I_ProductionRoutingSubOp WorkCenterInternalID Work Center
Plant I_ProductionRoutingSubOp Plant Valuation Area
OperationControlProfile I_ProductionRoutingSubOp OperationControlProfile Control Key
OperationStandardTextCode I_ProductionRoutingSubOp OperationStandardTextCode Std Text Key
OperationReferenceQuantity I_ProductionRoutingSubOp OperationReferenceQuantity Base Quantity
OperationUnit I_ProductionRoutingSubOp OperationUnit Act/op UoM
OpQtyToBaseQtyNmrtr I_ProductionRoutingSubOp OpQtyToBaseQtyNmrtr
OpQtyToBaseQtyDnmntr I_ProductionRoutingSubOp OpQtyToBaseQtyDnmntr
StandardWorkQuantity1 I_ProductionRoutingSubOp StandardWorkQuantity1 Standard Value
StandardWorkQuantityUnit1 I_ProductionRoutingSubOp StandardWorkQuantityUnit1 Std value unit
CostCtrActivityType1 I_ProductionRoutingSubOp CostCtrActivityType1 Activity Type
StandardWorkQuantity2 I_ProductionRoutingSubOp StandardWorkQuantity2 Standard Value
StandardWorkQuantityUnit2 I_ProductionRoutingSubOp StandardWorkQuantityUnit2 Std value unit
CostCtrActivityType2 I_ProductionRoutingSubOp CostCtrActivityType2 Activity Type
StandardWorkQuantity3 I_ProductionRoutingSubOp StandardWorkQuantity3 Standard Value
StandardWorkQuantityUnit3 I_ProductionRoutingSubOp StandardWorkQuantityUnit3 Std value unit
CostCtrActivityType3 I_ProductionRoutingSubOp CostCtrActivityType3 Activity Type
StandardWorkQuantity4 I_ProductionRoutingSubOp StandardWorkQuantity4 Standard Value
StandardWorkQuantityUnit4 I_ProductionRoutingSubOp StandardWorkQuantityUnit4 Std value unit
CostCtrActivityType4 I_ProductionRoutingSubOp CostCtrActivityType4 Activity Type
StandardWorkQuantity5 I_ProductionRoutingSubOp StandardWorkQuantity5 Standard Value
StandardWorkQuantityUnit5 I_ProductionRoutingSubOp StandardWorkQuantityUnit5 Std value unit
CostCtrActivityType5 I_ProductionRoutingSubOp CostCtrActivityType5 Activity Type
StandardWorkQuantity6 I_ProductionRoutingSubOp StandardWorkQuantity6 Standard Value
StandardWorkQuantityUnit6 I_ProductionRoutingSubOp StandardWorkQuantityUnit6 Std value unit
CostCtrActivityType6 I_ProductionRoutingSubOp CostCtrActivityType6 Activity Type
NumberOfTimeTickets I_ProductionRoutingSubOp NumberOfTimeTickets No.TimeTickets
EmployeeWageType I_ProductionRoutingSubOp EmployeeWageType Wage type
EmployeeWageGroup I_ProductionRoutingSubOp EmployeeWageGroup Wage Group
NumberOfConfirmationSlips I_ProductionRoutingSubOp NumberOfConfirmationSlips No. of Conf. Slips
NumberOfEmployees I_ProductionRoutingSubOp NumberOfEmployees No. employees
OperationCostingRelevancyType I_ProductionRoutingSubOp OperationCostingRelevancyType Operation Costing Relevancy Type
BusinessProcess I_ProductionRoutingSubOp BusinessProcess Business Process
OpIsExtlyProcdWithSubcontrg
InspectionLotType I_ProductionRoutingSubOp InspectionLotType Inspection Type
PurchasingInfoRecord I_ProductionRoutingSubOp PurchasingInfoRecord Info Record
PurchasingOrganization I_ProductionRoutingSubOp PurchasingOrganization Purchasing Organization
PurchaseContract I_ProductionRoutingSubOp PurchaseContract Purchasing Doc.
PurchaseContractItem I_ProductionRoutingSubOp PurchaseContractItem Item
PurchasingInfoRecdAddlGrpgName I_ProductionRoutingSubOp PurchasingInfoRecdAddlGrpgName Sort Term
PlannedDeliveryDuration I_ProductionRoutingSubOp PlannedDeliveryDuration Pl. Deliv. Time
MaterialGroup I_ProductionRoutingSubOp MaterialGroup Product Group
PurchasingGroup I_ProductionRoutingSubOp PurchasingGroup Purchasing Group
Supplier I_ProductionRoutingSubOp Supplier Supplier
NumberOfOperationPriceUnits I_ProductionRoutingSubOp NumberOfOperationPriceUnits Price Unit
CostElement I_ProductionRoutingSubOp CostElement G/L Account
OpExternalProcessingPrice I_ProductionRoutingSubOp OpExternalProcessingPrice Price
OpExternalProcessingCurrency I_ProductionRoutingSubOp OpExternalProcessingCurrency Currency
CreationDate I_ProductionRoutingSubOp CreationDate Time Stamp
CreatedByUser I_ProductionRoutingSubOp CreatedByUser User Name
LastChangeDate I_ProductionRoutingSubOp LastChangeDate Time Stamp
LastChangedByUser I_ProductionRoutingSubOp LastChangedByUser User Name
ValidityStartDate I_ProductionRoutingSubOp ValidityStartDate Validity Start Date
ValidityEndDate I_ProductionRoutingSubOp ValidityEndDate ValidTo
ChangeNumber I_ProductionRoutingSubOp ChangeNumber Change Number
OperationSetupType I_ProductionRoutingSubOp OperationSetupType Setup Type Key
OperationSetupGroupCategory I_ProductionRoutingSubOp OperationSetupGroupCategory Setup group cat
OperationSetupGroup I_ProductionRoutingSubOp OperationSetupGroup Setup group key
CapacityCategoryCode I_ProductionRoutingSubOp CapacityCategoryCode
OperationScrapPercent I_ProductionRoutingSubOp OperationScrapPercent Scrap
ChangedDateTime _NonSqncTP ChangedDateTime Time Stamp
PlainLongText _LongText PlainLongText Long Text
_Supplier I_ProductionRoutingSubOp _Supplier
_SupplierCompanyByPlant I_ProductionRoutingSubOp _SupplierCompanyByPlant
WorkCenter _WorkCenter WorkCenter Work Center
_Header _Header
_NonSqncTP _NonSqncTP
_LongText _LongText
_ProdnRtgTP _ProdnRtgTP
_Operation _Operation

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_ProductionRoutingSubopTP_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_ProductionRoutingSubopTP_2 AS
SELECT
  SubOP.BillOfOperationsGroup AS ProductionRoutingGroup,
  SubOP.BillOfOperationsVariant AS ProductionRouting,
  SubOP.BillOfOperationsSequence AS ProductionRoutingSequence,
  SubOP.BOOOperationInternalID AS ProductionRoutingOpIntID,
  SubOP.BOOOpInternalVersionCounter AS ProdnRtgSubOpIntVersion,
  SubOP.SuperiorOperationInternalID AS SuperiorOperationInternalID,
  SubOP.Operation AS Operation,
  SubOP.OperationText AS OperationText,
  SubOP.LongTextLanguageCode AS LongTextLanguageCode,
  SubOP.WorkCenterTypeCode AS WorkCenterTypeCode,
  SubOP.WorkCenterInternalID AS WorkCenterInternalID,
  SubOP.Plant AS Plant,
  SubOP.OperationControlProfile AS OperationControlProfile,
  SubOP.OperationStandardTextCode AS OperationStandardTextCode,
  SubOP.OperationReferenceQuantity AS OperationReferenceQuantity,
  SubOP.OperationUnit AS OperationUnit,
  SubOP.OpQtyToBaseQtyNmrtr AS OpQtyToBaseQtyNmrtr,
  SubOP.OpQtyToBaseQtyDnmntr AS OpQtyToBaseQtyDnmntr,
  SubOP.StandardWorkQuantity1 AS StandardWorkQuantity1,
  SubOP.StandardWorkQuantityUnit1 AS StandardWorkQuantityUnit1,
  SubOP.CostCtrActivityType1 AS CostCtrActivityType1,
  SubOP.StandardWorkQuantity2 AS StandardWorkQuantity2,
  SubOP.StandardWorkQuantityUnit2 AS StandardWorkQuantityUnit2,
  SubOP.CostCtrActivityType2 AS CostCtrActivityType2,
  SubOP.StandardWorkQuantity3 AS StandardWorkQuantity3,
  SubOP.StandardWorkQuantityUnit3 AS StandardWorkQuantityUnit3,
  SubOP.CostCtrActivityType3 AS CostCtrActivityType3,
  SubOP.StandardWorkQuantity4 AS StandardWorkQuantity4,
  SubOP.StandardWorkQuantityUnit4 AS StandardWorkQuantityUnit4,
  SubOP.CostCtrActivityType4 AS CostCtrActivityType4,
  SubOP.StandardWorkQuantity5 AS StandardWorkQuantity5,
  SubOP.StandardWorkQuantityUnit5 AS StandardWorkQuantityUnit5,
  SubOP.CostCtrActivityType5 AS CostCtrActivityType5,
  SubOP.StandardWorkQuantity6 AS StandardWorkQuantity6,
  SubOP.StandardWorkQuantityUnit6 AS StandardWorkQuantityUnit6,
  SubOP.CostCtrActivityType6 AS CostCtrActivityType6,
  SubOP.NumberOfTimeTickets AS NumberOfTimeTickets,
  SubOP.EmployeeWageType AS EmployeeWageType,
  SubOP.EmployeeWageGroup AS EmployeeWageGroup,
  SubOP.NumberOfConfirmationSlips AS NumberOfConfirmationSlips,
  SubOP.NumberOfEmployees AS NumberOfEmployees,
  SubOP.OperationCostingRelevancyType AS OperationCostingRelevancyType,
  SubOP.BusinessProcess AS BusinessProcess,
  cast( SubOP.OpIsExtlyProcdWithSubcontrg as pph_frdlb) AS OpIsExtlyProcdWithSubcontrg,
  SubOP.InspectionLotType AS InspectionLotType,
  SubOP.PurchasingInfoRecord AS PurchasingInfoRecord,
  SubOP.PurchasingOrganization AS PurchasingOrganization,
  SubOP.PurchaseContract AS PurchaseContract,
  SubOP.PurchaseContractItem AS PurchaseContractItem,
  SubOP.PurchasingInfoRecdAddlGrpgName AS PurchasingInfoRecdAddlGrpgName,
  SubOP.PlannedDeliveryDuration AS PlannedDeliveryDuration,
  SubOP.MaterialGroup AS MaterialGroup,
  SubOP.PurchasingGroup AS PurchasingGroup,
  SubOP.Supplier AS Supplier,
  SubOP.NumberOfOperationPriceUnits AS NumberOfOperationPriceUnits,
  SubOP.CostElement AS CostElement,
  SubOP.OpExternalProcessingPrice AS OpExternalProcessingPrice,
  SubOP.OpExternalProcessingCurrency AS OpExternalProcessingCurrency,
  SubOP.CreationDate AS CreationDate,
  SubOP.CreatedByUser AS CreatedByUser,
  SubOP.LastChangeDate AS LastChangeDate,
  SubOP.LastChangedByUser AS LastChangedByUser,
  SubOP.ValidityStartDate AS ValidityStartDate,
  SubOP.ValidityEndDate AS ValidityEndDate,
  SubOP.ChangeNumber AS ChangeNumber,
  SubOP.OperationSetupType AS OperationSetupType,
  SubOP.OperationSetupGroupCategory AS OperationSetupGroupCategory,
  SubOP.OperationSetupGroup AS OperationSetupGroup,
  SubOP.CapacityCategoryCode AS CapacityCategoryCode,
  SubOP.OperationScrapPercent AS OperationScrapPercent,
  _NonSqncTP.ChangedDateTime AS ChangedDateTime,
  _LongText.PlainLongText AS PlainLongText,
  SubOP._Supplier AS _Supplier,
  SubOP._SupplierCompanyByPlant AS _SupplierCompanyByPlant,
  _WorkCenter.WorkCenter AS WorkCenter
FROM I_ProductionRoutingSubOp AS SubOP
INNER JOIN I_ProdnRtgSubordOpToOperation AS OprSubOpr 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..*]
LEFT OUTER JOIN I_TaskListOperationLongText AS _LongText ON ProductionRoutingGroup = _LongText.TaskListGroup AND ProductionRoutingOpIntID = _LongText.BOOOperationInternalID AND ProdnRtgSubOpIntVersion = _LongText.BOOInternalVersionCounter AND LongTextLanguageCode is not null AND _LongText.TaskListType = 'N'  -- association [0..1]
LEFT OUTER JOIN E_ProductionRoutingOperation AS _Extension ON ProductionRoutingGroup = _Extension.ProductionRoutingGroup AND ProductionRoutingOpIntID = _Extension.ProductionRoutingOpIntID AND ProdnRtgSubOpIntVersion = _Extension.ProductionRoutingOpIntVersion AND _Extension.BillOfOperationsType = 'N'  -- association [1..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode AND WorkCenterInternalID = _WorkCenter.WorkCenterInternalID  -- association [0..1]
;