I_MfgOrderSpecificRouting
Manufacturing Order Specific Routing
I_MfgOrderSpecificRouting is a Composite CDS View that provides data about "Manufacturing Order Specific Routing" in SAP S/4HANA. It reads from 2 data sources (P_LatestProductionRoutingVers, I_ProductionRoutingVersion) and exposes 13 fields with key fields BillOfOperationsGroup, BillOfOperationsType, BillOfOperationsVariant, BillOfOperationsVersion.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_LatestProductionRoutingVers | LatestVersion | inner |
| I_ProductionRoutingVersion | Routing | from |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMPEOSR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeActivePersistence | IMPEOSR | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Manufacturing Order Specific Routing | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfOperationsGroup | I_ProductionRoutingVersion | BillOfOperationsGroup | |
| KEY | BillOfOperationsType | I_ProductionRoutingVersion | BillOfOperationsType | |
| KEY | BillOfOperationsVariant | I_ProductionRoutingVersion | BillOfOperationsVariant | |
| KEY | BillOfOperationsVersion | I_ProductionRoutingVersion | BillOfOperationsVersion | |
| ManufacturingOrder | I_ProductionRoutingVersion | OrderID | ||
| BillOfOperationsDesc | I_ProductionRoutingVersion | BillOfOperationsDesc | ||
| BillOfOperationsVersionStatus | I_ProductionRoutingVersion | BillOfOperationsVersionStatus | ||
| BillOfOperationsVersionType | I_ProductionRoutingVersion | BillOfOperationsVersionType | ||
| ChangeRecordReferenceUUID | routingReference | ChangeRecordReferenceUUID | ||
| ChangeRecord | ||||
| ChangeRecordType | ||||
| ChgRecordDescriptionText | ||||
| _BillOfOperationsVersionType | _BillOfOperationsVersionType |
@AbapCatalog.sqlViewName: 'IMPEOSR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #L, dataClass: #MIXED}
@VDM.viewType: #COMPOSITE
@ObjectModel.compositionRoot: true
@ObjectModel.transactionalProcessingEnabled: true
@ObjectModel.writeActivePersistence: 'IMPEOSR'
@ObjectModel.createEnabled: false
@ObjectModel.deleteEnabled: false
@ObjectModel.updateEnabled: false
@AbapCatalog.preserveKey: true -- otherwise despiting the key below all the fields can be treated as key fields -> BOPF does not work
@EndUserText.label: 'Manufacturing Order Specific Routing'
define view I_MfgOrderSpecificRouting
as select from I_ProductionRoutingVersion as Routing
inner join P_LatestProductionRoutingVers as LatestVersion on LatestVersion.BillOfOperationsGroup = Routing.BillOfOperationsGroup
and LatestVersion.BillOfOperationsType = Routing.BillOfOperationsType
and LatestVersion.BillOfOperationsVariant = Routing.BillOfOperationsVariant
and LatestVersion.CreationDateTime = Routing.CreationDateTime
left outer to one join I_ChgRecdRefRoutingBsc as routingReference on routingReference.ChgRecRefInternalKey1 = Routing.BillOfOperationsGroup
and routingReference.ChgRecRefInternalKey2 = Routing.BillOfOperationsType
and routingReference.ChgRecRefInternalKey3 = Routing.BillOfOperationsVariant
and routingReference.ChgRecRefInternalKey4 = Routing.BillOfOperationsVersion
{
key Routing.BillOfOperationsGroup,
key Routing.BillOfOperationsType,
key Routing.BillOfOperationsVariant,
key Routing.BillOfOperationsVersion,
Routing.OrderID as ManufacturingOrder,
Routing.BillOfOperationsDesc,
Routing.BillOfOperationsVersionStatus, // 10 means in process; 20 - released
Routing.BillOfOperationsVersionType,
routingReference.ChangeRecordReferenceUUID, // if not empty then there is a change record
routingReference._ChangeRecordBsc.ChangeRecord,
routingReference._ChangeRecordBsc.ChangeRecordType,
routingReference._ChangeRecordBsc.ChgRecordDescriptionText,
_BillOfOperationsVersionType
}
where Routing.OrderID <> '';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHANGERECORDBSC",
"I_CHGRECDREFROUTINGBSC",
"I_PRODUCTIONROUTINGVERSION",
"P_LATESTPRODUCTIONROUTINGVERS"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSVERSIONTYPE"
],
"BASE":
[
"I_PRODUCTIONROUTINGVERSION"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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