I_ProductionRoutingVersion
Production Routing Version
I_ProductionRoutingVersion is a Composite CDS View that provides data about "Production Routing Version" in SAP S/4HANA. It reads from 3 data sources (I_BillOfOperationsChangeState, I_BillOfOperations, I_BillOfOperationsVersion) and exposes 80 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant, BillOfOperationsVersion. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_BillOfOperationsChangeState | BillOfOperationChangeState | inner |
| I_BillOfOperations | BillOfOperations | inner |
| I_BillOfOperationsVersion | ProdnRtgVersion | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkCenterBySemanticKey | _WorkCenterBySemanticKey | $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter and $projection.Plant = _WorkCenterBySemanticKey.Plant |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_ProductionRoutingVersion | _ProdnRtgReferenceVersion | $projection.BillOfOperationsType = _ProdnRtgReferenceVersion.BillOfOperationsType and $projection.BillOfOperationsGroup = _ProdnRtgReferenceVersion.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _ProdnRtgReferenceVersion.BillOfOperationsVariant and $projection.BOOReferenceVersion = _ProdnRtgReferenceVersion.BillOfOperationsVersion |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | Production Routing Version | view |
Fields (80)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfOperationsType | I_BillOfOperationsVersion | BillOfOperationsType | |
| KEY | BillOfOperationsGroup | I_BillOfOperationsVersion | BillOfOperationsGroup | |
| KEY | BillOfOperationsVariant | I_BillOfOperationsVersion | BillOfOperationsVariant | |
| KEY | BillOfOperationsVersion | I_BillOfOperationsVersion | BillOfOperationsVersion | |
| BOOInternalVersionCounter | I_BillOfOperationsChangeState | BOOInternalVersionCounter | ||
| IsDeleted | I_BillOfOperationsChangeState | IsDeleted | ||
| WorkCenterTypeCode | I_BillOfOperationsChangeState | WorkCenterTypeCode | ||
| WorkCenterInternalID | I_BillOfOperationsChangeState | WorkCenterInternalID | ||
| BillOfOperationsVersionType | I_BillOfOperations | BillOfOperationsVersionType | ||
| BillOfOperationsSubtype | I_BillOfOperations | BillOfOperationsSubtype | ||
| BillOfOperationsVariantDesc | I_BillOfOperations | BillOfOperationsVariantDesc | ||
| RoutingIsReworkRouting | I_BillOfOperations | RoutingIsReworkRouting | ||
| ProdnProcgIsFlexible | I_BillOfOperations | ProdnProcgIsFlexible | ||
| BillOfOperationIsExecutedInMES | I_BillOfOperations | BillOfOperationIsExecutedInMES | ||
| BillOfOperationsIsTrnsfdToERP | I_BillOfOperations | BillOfOperationsIsTrnsfdToERP | ||
| ShopFloorRtgTemplateCategory | I_BillOfOperations | ShopFloorRtgTemplateCategory | ||
| ShopFloorRoutingTemplateType | I_BillOfOperations | ShopFloorRoutingTemplateType | ||
| ShopFloorRtgTemplateSubType | I_BillOfOperations | ShopFloorRtgTemplateSubType | ||
| ShopFloorRoutingTemplateOwner | I_BillOfOperations | ShopFloorRoutingTemplateOwner | ||
| Plant | ||||
| BillOfOperationsUsage | I_BillOfOperationsChangeState | BillOfOperationsUsage | ||
| BillOfOperationsStatus | I_BillOfOperationsChangeState | BillOfOperationsStatus | ||
| ResponsiblePlannerGroup | I_BillOfOperationsChangeState | ResponsiblePlannerGroup | ||
| WorkCenter | ||||
| MinimumLotSizeQuantity | I_BillOfOperationsChangeState | MinimumLotSizeQuantity | ||
| MaximumLotSizeQuantity | I_BillOfOperationsChangeState | MaximumLotSizeQuantity | ||
| BillOfOperationsUnit | ||||
| ReplacedBillOfOperations | I_BillOfOperationsChangeState | ReplacedBillOfOperations | ||
| IsMarkedForDeletion | I_BillOfOperationsChangeState | IsMarkedForDeletion | ||
| InspSubsetFieldCombination | ||||
| InspectionPartialLot | I_BillOfOperationsChangeState | InspectionPartialLot | ||
| SmplDrawingProcedure | I_BillOfOperationsChangeState | SmplDrawingProcedure | ||
| SmplDrawingProcedureVersion | I_BillOfOperationsChangeState | SmplDrawingProcedureVersion | ||
| InspectionLotDynamicLevel | I_BillOfOperationsChangeState | InspectionLotDynamicLevel | ||
| InspLotDynamicRule | I_BillOfOperationsChangeState | InspLotDynamicRule | ||
| MaintenanceStrategy | I_BillOfOperationsChangeState | MaintenanceStrategy | ||
| InspExternalNumberingOfValues | ||||
| CreationDateTime | ||||
| CreatedByUser | I_BillOfOperationsVersion | CreatedByUser | ||
| LastChangeDateTime | I_BillOfOperationsVersion | LastChangeDateTime | ||
| LastChangedByUser | I_BillOfOperationsVersion | LastChangedByUser | ||
| ChangeNumber | I_BillOfOperationsChangeState | ChangeNumber | ||
| ValidityStartDate | ||||
| ValidityEndDate | I_BillOfOperationsChangeState | ValidityEndDate | ||
| LastReorganizationDate | ||||
| LastUsageDate | I_BillOfOperationsChangeState | LastUsageDate | ||
| NumberOfUsages | I_BillOfOperationsChangeState | NumberOfUsages | ||
| BillOfOperationsVersionStatus | I_BillOfOperationsVersion | BillOfOperationsVersionStatus | ||
| IsLatestBOOVersion | I_BillOfOperationsVersion | IsLatestBOOVersion | ||
| NumberOfBOOVersionSuccessors | I_BillOfOperationsVersion | NumberOfBOOVersionSuccessors | ||
| BillOfOperationsRefType | I_BillOfOperationsVersion | BillOfOperationsRefType | ||
| BillOfOperationsRefGroup | I_BillOfOperationsVersion | BillOfOperationsRefGroup | ||
| BillOfOperationsRefVariant | I_BillOfOperationsVersion | BillOfOperationsRefVariant | ||
| BOOReferenceVersion | I_BillOfOperationsVersion | BOOReferenceVersion | ||
| OrderID | I_BillOfOperationsVersion | OrderID | ||
| _BillOfOperationsStatus | I_BillOfOperationsChangeState | _BillOfOperationsStatus | ||
| _BillOfOperationsUnit | I_BillOfOperationsChangeState | _BillOfOperationsUnit | ||
| _BillOfOperationsUsage | I_BillOfOperationsChangeState | _BillOfOperationsUsage | ||
| _ChangeMaster | I_BillOfOperationsChangeState | _ChangeMaster | ||
| _InspExtNumbering | I_BillOfOperationsChangeState | _InspExtNumbering | ||
| _InspLotDynamicRule | I_BillOfOperationsChangeState | _InspLotDynamicRule | ||
| _InspPartialLotAssignment | I_BillOfOperationsChangeState | _InspPartialLotAssignment | ||
| _InspSubsetFieldCombination | I_BillOfOperationsChangeState | _InspSubsetFieldCombination | ||
| _InspectionLotDynamicLevel | I_BillOfOperationsChangeState | _InspectionLotDynamicLevel | ||
| _MaintenanceStrategy | I_BillOfOperationsChangeState | _MaintenanceStrategy | ||
| _ProdnRtgReferenceVersion | _ProdnRtgReferenceVersion | |||
| _ResponsiblePlannerGroup | I_BillOfOperationsChangeState | _ResponsiblePlannerGroup | ||
| _SampleDrawingProcedure | I_BillOfOperationsChangeState | _SampleDrawingProcedure | ||
| _SmplDrwgProcedureVersion | I_BillOfOperationsChangeState | _SmplDrwgProcedureVersion | ||
| _WorkCenter | I_BillOfOperationsChangeState | _WorkCenter | ||
| _WorkCenterType | I_BillOfOperationsChangeState | _WorkCenterType | ||
| _Plant | _Plant | |||
| _BOOVersionStatus | I_BillOfOperationsVersion | _BOOVersionStatus | ||
| _BillOfOperations | I_BillOfOperationsVersion | _BillOfOperations | ||
| _BillOfOperationsGroup | I_BillOfOperationsVersion | _BillOfOperationsGroup | ||
| _BillOfOperationsType | I_BillOfOperationsVersion | _BillOfOperationsType | ||
| _CreatedByUser | I_BillOfOperationsVersion | _CreatedByUser | ||
| _LastChangedByUser | I_BillOfOperationsVersion | _LastChangedByUser | ||
| _WorkCenterBySemanticKey | _WorkCenterBySemanticKey | |||
| _BillOfOperationsVersionType | I_BillOfOperations | _BillOfOperationsVersionType |
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@EndUserText.label: 'Production Routing Version'
define view entity I_ProductionRoutingVersion
as select from I_BillOfOperationsVersion as ProdnRtgVersion
inner join I_BillOfOperationsChangeState as BillOfOperationChangeState on BillOfOperationChangeState.BillOfOperationsType = ProdnRtgVersion.BillOfOperationsType
and BillOfOperationChangeState.BillOfOperationsGroup = ProdnRtgVersion.BillOfOperationsGroup
and BillOfOperationChangeState.BillOfOperationsVariant = ProdnRtgVersion.BillOfOperationsVariant
and BillOfOperationChangeState.BillOfOperationsVersion = ProdnRtgVersion.BillOfOperationsVersion
inner join I_BillOfOperations as BillOfOperations on BillOfOperations.BillOfOperationsType = ProdnRtgVersion.BillOfOperationsType
and BillOfOperations.BillOfOperationsGroup = ProdnRtgVersion.BillOfOperationsGroup
and BillOfOperations.BillOfOperationsVariant = ProdnRtgVersion.BillOfOperationsVariant
association [0..1] to I_WorkCenterBySemanticKey as _WorkCenterBySemanticKey on $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter
and $projection.Plant = _WorkCenterBySemanticKey.Plant
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_ProductionRoutingVersion as _ProdnRtgReferenceVersion on $projection.BillOfOperationsType = _ProdnRtgReferenceVersion.BillOfOperationsType
and $projection.BillOfOperationsGroup = _ProdnRtgReferenceVersion.BillOfOperationsGroup
and $projection.BillOfOperationsVariant = _ProdnRtgReferenceVersion.BillOfOperationsVariant
and $projection.BOOReferenceVersion = _ProdnRtgReferenceVersion.BillOfOperationsVersion
{
@ObjectModel.foreignKey.association: '_BillOfOperationsType'
key ProdnRtgVersion.BillOfOperationsType,
@ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
key ProdnRtgVersion.BillOfOperationsGroup,
@ObjectModel.foreignKey.association: '_BillOfOperations'
key ProdnRtgVersion.BillOfOperationsVariant,
@ObjectModel.text.element: ['BillOfOperationsDesc']
key ProdnRtgVersion.BillOfOperationsVersion,
// ***************** Technical fields not on the CEWB-UI *****************
@ObjectModel.text.element: null
BillOfOperationChangeState.BOOInternalVersionCounter,
BillOfOperationChangeState.IsDeleted,
BillOfOperationChangeState.WorkCenterTypeCode as WorkCenterTypeCode,
BillOfOperationChangeState.WorkCenterInternalID,
BillOfOperations.BillOfOperationsVersionType,
BillOfOperations.BillOfOperationsSubtype, //same as BillOfOperationsVersionType, kept for compatibility reasons
BillOfOperations.BillOfOperationsVariantDesc,
BillOfOperations.RoutingIsReworkRouting,
BillOfOperations.ProdnProcgIsFlexible,
BillOfOperations.BillOfOperationIsExecutedInMES,
BillOfOperations.BillOfOperationsIsTrnsfdToERP,
BillOfOperations.ShopFloorRtgTemplateCategory,
BillOfOperations.ShopFloorRoutingTemplateType,
BillOfOperations.ShopFloorRtgTemplateSubType,
BillOfOperations.ShopFloorRoutingTemplateOwner,
// *************************** Header General ****************************
-- General data
cast(BillOfOperationChangeState.BillOfOperationsDesc as mpe_rtg_version_description preserving type) as BillOfOperationsDesc,
@ObjectModel.foreignKey.association: '_Plant'
cast(BillOfOperationChangeState.Plant as pwwrk preserving type) as Plant,
BillOfOperationChangeState.BillOfOperationsUsage,
BillOfOperationChangeState.BillOfOperationsStatus,
BillOfOperationChangeState.ResponsiblePlannerGroup,
@ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'
BillOfOperationChangeState._WorkCenter.WorkCenter as WorkCenter,
@Semantics.quantity.unitOfMeasure: 'BillOfOperationsUnit'
@DefaultAggregation: #MIN
BillOfOperationChangeState.MinimumLotSizeQuantity,
@Semantics.quantity.unitOfMeasure: 'BillOfOperationsUnit'
@DefaultAggregation: #MAX
BillOfOperationChangeState.MaximumLotSizeQuantity,
cast(BillOfOperationChangeState.BillOfOperationsUnit as mpe_rtg_unit preserving type) as BillOfOperationsUnit,
BillOfOperationChangeState.ReplacedBillOfOperations,
BillOfOperationChangeState.IsMarkedForDeletion,
// ************************* Quality Management **************************
-- Parameter for dynamic modification/inspection points
BillOfOperationChangeState.InspSubsetFieldCombination,
BillOfOperationChangeState.InspectionPartialLot,
BillOfOperationChangeState.SmplDrawingProcedure,
BillOfOperationChangeState.SmplDrawingProcedureVersion,
BillOfOperationChangeState.InspectionLotDynamicLevel,
BillOfOperationChangeState.InspLotDynamicRule,
BillOfOperationChangeState.MaintenanceStrategy,
-- Further QM data
BillOfOperationChangeState.InspExternalNumberingOfValues,
// *************************** Administration ****************************
-- Administrative Data
ProdnRtgVersion.CreationDateTime,
ProdnRtgVersion.CreatedByUser,
ProdnRtgVersion.LastChangeDateTime,
ProdnRtgVersion.LastChangedByUser,
BillOfOperationChangeState.ChangeNumber,
-- Validity
BillOfOperationChangeState.ValidityStartDate,
BillOfOperationChangeState.ValidityEndDate,
-- Additional Data
BillOfOperationChangeState.LastReorganizationDate,
BillOfOperationChangeState.LastUsageDate,
BillOfOperationChangeState.NumberOfUsages,
// ************************* Version (not CEWB) **************************
ProdnRtgVersion.BillOfOperationsVersionStatus,
ProdnRtgVersion.IsLatestBOOVersion,
ProdnRtgVersion.NumberOfBOOVersionSuccessors,
ProdnRtgVersion.BillOfOperationsRefType,
ProdnRtgVersion.BillOfOperationsRefGroup,
ProdnRtgVersion.BillOfOperationsRefVariant,
@ObjectModel.foreignKey.association: '_ProdnRtgReferenceVersion'
ProdnRtgVersion.BOOReferenceVersion,
// ************************* Order specific Routing **************************
ProdnRtgVersion.OrderID,
// **************************** Associations *****************************
BillOfOperationChangeState._BillOfOperationsStatus,
BillOfOperationChangeState._BillOfOperationsUnit,
BillOfOperationChangeState._BillOfOperationsUsage,
BillOfOperationChangeState._ChangeMaster,
BillOfOperationChangeState._InspExtNumbering,
BillOfOperationChangeState._InspLotDynamicRule,
BillOfOperationChangeState._InspPartialLotAssignment,
BillOfOperationChangeState._InspSubsetFieldCombination,
BillOfOperationChangeState._InspectionLotDynamicLevel,
BillOfOperationChangeState._MaintenanceStrategy,
// BillOfOperationChangeState._Plant
_ProdnRtgReferenceVersion,
BillOfOperationChangeState._ResponsiblePlannerGroup,
BillOfOperationChangeState._SampleDrawingProcedure,
BillOfOperationChangeState._SmplDrwgProcedureVersion,
BillOfOperationChangeState._WorkCenter,
BillOfOperationChangeState._WorkCenterType,
_Plant,
ProdnRtgVersion._BOOVersionStatus,
ProdnRtgVersion._BillOfOperations,
ProdnRtgVersion._BillOfOperationsGroup,
ProdnRtgVersion._BillOfOperationsType,
ProdnRtgVersion._CreatedByUser,
ProdnRtgVersion._LastChangedByUser,
_WorkCenterBySemanticKey,
BillOfOperations._BillOfOperationsVersionType
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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