P_RSHMntSchdOrdOpWOExplRel
Schedule Operations w/o explicit rel
P_RSHMntSchdOrdOpWOExplRel is a Consumption CDS View that provides data about "Schedule Operations w/o explicit rel" in SAP S/4HANA. It reads from 4 data sources (I_OrderOperationBasic, I_LogisticsOrderBasic, P_RSHMntSchdOrdWOExplRel, I_SchedulingType) and exposes 5 fields with key fields OrderInternalID, OrderOperationInternalID.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderOperationBasic | op | inner |
| I_LogisticsOrderBasic | ord | inner |
| P_RSHMntSchdOrdWOExplRel | sim_ord | from |
| I_SchedulingType | st | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHSCHDOPWOREL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Schedule Operations w/o explicit rel | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | I_OrderOperationBasic | OrderInternalID | |
| KEY | OrderOperationInternalID | I_OrderOperationBasic | OrderOperationInternalID | |
| MaintSchedSimlnUUID | MaintSchedSimlnUUID | |||
| OrderID | I_LogisticsOrderBasic | OrderID | ||
| Operation | I_OrderOperationBasic | Operation |
@AbapCatalog.sqlViewName: 'PRSHSCHDOPWOREL'
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Schedule Operations w/o explicit rel'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #META
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey:true
define view P_RSHMntSchdOrdOpWOExplRel
as select from P_RSHMntSchdOrdWOExplRel as sim_ord
inner join I_LogisticsOrderBasic as ord on sim_ord.MaintOrderRoutingNumber = ord.OrderInternalID
inner join I_SchedulingType as st on ord.BasicSchedulingType = st.SchedulingType and
st.CalcOfCapacityRqmtsIsPerformed = ''
// do not consider sub-operations
inner join I_OrderOperationBasic as op on sim_ord.MaintOrderRoutingNumber = op.OrderInternalID and
op.SuperiorOperationInternalID = '00000000'
// do not consider deleted operations
left outer to one join I_StatusObjectStatusBasic as _OpIsDeleted on _OpIsDeleted.StatusObject = op.OrderOperationInternalID
and _OpIsDeleted.StatusCode = 'I0013'
and _OpIsDeleted.StatusIsInactive = ' '
//
//// get scheduled dates/times for relationship violation determination
// association [0..1] to I_RSHMaintScheduleOperations as _OperationSimulation on sim_ord.MaintSchedSimlnUUID = _OperationSimulation.MaintSchedSimlnUUID and
// op.OrderInternalID = _OperationSimulation.MaintOrderRoutingNumber and
// op.OrderOperationInternalID = _OperationSimulation.MaintOrderOperationCounter and
// _OperationSimulation.MaintOrdOpSimulationStatus = '10' //Scheduled
//
//// get original dates/times for relationship violation determination
// association [0..1] to I_MaintOrderOperPlanningValues as _OperationPlanningValues on op.OrderInternalID = _OperationPlanningValues.MaintOrderRoutingNumber and
// op.OrderOperationInternalID = _OperationPlanningValues.MaintOrderOperationCounter
//
{
key op.OrderInternalID,
key op.OrderOperationInternalID,
MaintSchedSimlnUUID,
ord.OrderID,
op.Operation
// st.SchedulingIsPerformedBackward,
// _OperationSimulation,
// _OperationPlanningValues
}
where
_OpIsDeleted.StatusObject is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDERBASIC",
"I_ORDEROPERATIONBASIC",
"I_SCHEDULINGTYPE",
"I_STATUSOBJECTSTATUSBASIC",
"P_RSHMNTSCHDORDWOEXPLREL"
],
"ASSOCIATED":
[],
"BASE":
[],
"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