I_RSHORDER
Maintenance Orders
I_RSHORDER is a CDS View in S/4HANA. Maintenance Orders. It contains 44 fields. 5 CDS views read from this table.
CDS Views using this table (5)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_RSHMaintOperationAssgmtTP | view | inner | TRANSACTIONAL | Maintenance Operation Assignment TP |
| I_RSHMaintSchedExistingOp | view | inner | COMPOSITE | Existing Operations not part of Schedule |
| I_RSHOperationAndSubOperation | view | inner | COMPOSITE | Maintenance Order Operation and Suboperation |
| P_RSHMaintSchedAddlDispOp | view | inner | CONSUMPTION | Additional dispatched operations in frozen schedule |
| P_RSHMaintSchedOperations | view | inner | CONSUMPTION | Operations from frozen schedule |
Fields (44)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| _BasicSchedulingType | _BasicSchedulingType | 3 | |
| _Equipment | _Equipment | 3 | |
| _LocationAccountAssignment | _LocationAccountAssignment | 3 | |
| _MaintenanceActivityType | _MaintenanceActivityType | 3 | |
| _MaintenanceNotification | _MaintenanceNotification | 3 | |
| _MaintenancePriority | _MaintenancePriority | 3 | |
| _Project | _Project | 2 | |
| _WBSElement | _WBSElement | 2 | |
| BasicSchedulingType | BasicSchedulingType | 3 | |
| ControllingArea | ControllingArea | 3 | |
| Equipment | Equipment | 3 | |
| LatestAcceptableCompletionDate | LatestAcceptableCompletionDate | 3 | |
| MaintenanceActivityType | MaintenanceActivityType | 3 | |
| MaintenanceNotification | MaintenanceNotification | 3 | |
| MaintenanceOrder | MaintenanceOrder | 4 | |
| MaintenanceOrderDesc | MaintenanceOrderDesc | 3 | |
| MaintenanceOrderInternalID | MaintenanceOrderInternalID | 3 | |
| MaintenanceOrderType | MaintenanceOrderType | 3 | |
| MaintenancePlan | MaintenancePlan | 3 | |
| MaintenancePlannerGroup | MaintenancePlannerGroup | 3 | |
| MaintenancePlanningPlant | MaintenancePlanningPlant | 3 | |
| MaintenancePlant | MaintenancePlant | 3 | |
| MaintenanceRevision | MaintenanceRevision | 3 | |
| MaintenanceRevisionDesc | MaintenanceRevisionDesc | 1 | |
| MaintObjectLocAcctAssgmtNmbr | MaintObjectLocAcctAssgmtNmbr | 3 | |
| MaintOrdBasicEndDate | MaintOrdBasicEndDate | 3 | |
| MaintOrdBasicEndTime | MaintOrdBasicEndTime | 3 | |
| MaintOrdBasicStartDate | MaintOrdBasicStartDate | 3 | |
| MaintOrdBasicStartTime | MaintOrdBasicStartTime | 3 | |
| MaintOrdProcessPhaseCode | MaintOrdProcessPhaseCode | 1 | |
| MaintOrdProcessSubPhaseCode | MaintOrdProcessSubPhaseCode | 1 | |
| MaintPriority | MaintPriority | 3 | |
| MaintPriorityType | MaintPriorityType | 3 | |
| MainWorkCenter | MainWorkCenter | 3 | |
| MainWorkCenterPlant | MainWorkCenterPlant | 3 | |
| OperationSystemCondition | OrderSystemCondition | 3 | |
| OrderHasLongText | OrderHasLongText | 3 | |
| OrdIsNotSchedldAutomatically | OrdIsNotSchedldAutomatically | 1 | |
| ProjectInternalID | ProjectInternalID | 1 | |
| ResponsibleCostCenter | ResponsibleCostCenter | 3 | |
| SchedulingIsPerformedBackward | SchedulingIsPerformedBackward | 3 | |
| SchedulingType | SchedulingType | 3 | |
| SuperiorProjectNetwork | SuperiorProjectNetwork | 3 | |
| WBSElementInternalID | WBSElementInternalID | 2 |
@AbapCatalog.sqlViewName: 'IRSHORDER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance Orders'
@VDM.viewType: #COMPOSITE
//@VDM.private: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
/*
CONTRACT*************************************************************************************************************************
Name: Maintenance Order
Specification: This view will return the Maintenance Order
Requires: NA
Ensures: RSH relevant fields and associations of Maintenance Order are returned
Owners: CK
Contributors:
Unit Test required Y/N: Y
Additional comments For Performance reasons fields from _Order association of I_MaintenanceOrder shall not be exposed here.
Instead request field to be added to I_MaintenanceOrder!
MaterialStatus Association moved to I_RSHOperationAndSubOperation for performance reasons.
END OF CONTRACT******************************************************************************************************************
*/
define view I_RSHOrder
as select from I_MaintenanceOrder as _MaintenanceOrder
// association [1..1] to I_RSHOrderMaterialStatus as _MaterialStatus on _MaintenanceOrder.MaintenanceOrderInternalID = _MaterialStatus.StatusObject
// -> association moved to I_RSHOperationAndSubOperation for performance
{
key MaintenanceOrder,
MaintOrderRoutingNumber,
BasicSchedulingType,
OrdIsNotSchedldAutomatically,
MaintenanceOrderInternalID,
MaintPriority,
MaintPriorityType,
MaintenanceOrderType,
MaintenanceActivityType,
MaintenancePlanningPlant,
WBSElementInternalID,
cast( ProjectInternalID as rsh_eam_project_int_id preserving type ) as ProjectInternalID,
MaintenanceOrderDesc,
OrderHasLongText,
MaintOrdBasicStartDate,
MaintOrdBasicStartTime,
MaintOrdBasicEndDate,
MaintOrdBasicEndTime,
ScheduledBasicStartDate,
ScheduledBasicStartTime,
ScheduledBasicEndDate,
ScheduledBasicEndTime,
LatestAcceptableCompletionDate,
MaintenancePlannerGroup,
cast( MaintenanceRevision as rsh_eam_maint_event ) as MaintenanceRevision,
cast(_MaintenanceOrder._MaintenanceRevision.MaintenanceRevisionDesc as rsh_eam_maint_event_desc ) as MaintenanceRevisionDesc,
OperationSystemCondition,
MaintenanceNotification,
Equipment,
MaintObjectLocAcctAssgmtNmbr,
MaintenancePlan,
MaintenancePlant,
SuperiorProjectNetwork,
ControllingArea,
ResponsibleCostCenter,
_MaintenanceOrder._MainWorkCenter.WorkCenter as MainWorkCenter,
MainWorkCenterPlant,
_BasicSchedulingType.SchedulingIsPerformedBackward,
_BasicSchedulingType.SchedulingType,
MaintOrderProcessingContext,
// Order Phase and sub-phase
MaintOrdProcessPhaseCode,
MaintOrdProcessSubPhaseCode,
// _MaterialStatus, -> moved to I_RSHOperationAndSubOperation for performance
_BasicSchedulingType,
_MaintenancePriority,
_MaintenanceActivityType,
_MaintenanceNotification,
_Equipment,
_LocationAccountAssignment,
_OperationSystemCondition,
_EAMProcessPhase,
_EAMProcessSubPhase,
_WBSElement,
_Project
}
where
MaintOrderProcessingContext <> 'B'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MAINTENANCEORDER",
"I_MAINTENANCEREVISION",
"I_SCHEDULINGTYPE",
"I_WORKCENTER"
],
"ASSOCIATED":
[
"I_EAMPROCESSPHASE",
"I_EAMPROCESSSUBPHASE",
"I_EQUIPMENT",
"I_LOCATIONACCOUNTASSIGNMENT",
"I_MAINTENANCEACTIVITYTYPE",
"I_MAINTENANCENOTIFICATION",
"I_MAINTOPERATIONSYSTCONDITION",
"I_PMNOTIFICATIONPRIORITY",
"I_PROJECTBYINTERNALKEY",
"I_SCHEDULINGTYPE",
"I_WBSELEMENTBYINTERNALKEY"
],
"BASE":
[
"I_MAINTENANCEORDER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/