P_RSHOperations

DDL: P_RSHOPERATIONS SQL: PRSHOPERATIONS Type: view CONSUMPTION

Maintenance Operations

P_RSHOperations is a Consumption CDS View that provides data about "Maintenance Operations" in SAP S/4HANA. It reads from 1 data source (P_RSHOperationsBase) and exposes 127 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_RSHOperationsBase P_RSHOperationsBase from

Associations (5)

CardinalityTargetAliasCondition
[0..*] C_RSHOpInMaintSchedSimulation _MaintSchedSimulation $projection.MaintOrderRoutingNumber = _MaintSchedSimulation.MaintOrderRoutingNumber and $projection.MaintOrderOperationCounter = _MaintSchedSimulation.MaintOrderOperationCounter
[1..1] P_RSHMaintOrdOpFirstMaintSched _FirstMaintSched $projection.MaintOrderRoutingNumber = _FirstMaintSched.MaintOrderRoutingNumber and $projection.MaintOrderOperationCounter = _FirstMaintSched.MaintOrderOperationCounter
[0..1] I_FunctionalLocationLabel _OperationFuncLocationLabel $projection.RelevantOperationFuncLocation = _OperationFuncLocationLabel.FunctionalLocation
[0..*] I_Equipment _OperationEquipment _OperationEquipment.Equipment = $projection.OperationEquipment
[0..*] I_FunctionalLocation _OperationFunctionalLocation _OperationFunctionalLocation.FunctionalLocation = $projection.RelevantOperationFuncLocation

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRSHOPERATIONS view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Maintenance Operations view
ObjectModel.representativeKey MaintenanceOrderOperation view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (127)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder MaintenanceOrder Order
KEY MaintenanceOrderOperation Suboperation
KEY MaintenanceOrderSubOperation MaintenanceOrderSubOperation Suboperation
MaintOrderRoutingNumber MaintOrderRoutingNumber Plan No.f.Oper.
MaintOrderOperationCounter MaintOrderOperationCounter Counter
MaintOrderConfirmation MaintOrderConfirmation Confirmation
OperationControlKey OperationControlKey Control Key
OperationDescription OperationDescription Op. Short Text
OperationPersonResponsible OperationPersonResponsible Personnel no.
PersonFullName PersonFullName Full Name
Plant Plant Valuation Area
MaintOrderOperationInternalID MaintOrderOperationInternalID Object number
WorkCenterInternalID WorkCenterInternalID Work Center
WorkCenterTypeCode WorkCenterTypeCode Object Type
WorkCenter WorkCenter Work Center
NumberOfCapacities NumberOfCapacities Number
SuperiorProjectNetwork SuperiorProjectNetwork Subnetwork of
ControllingArea ControllingArea Controlling Area
ResponsibleCostCenter ResponsibleCostCenter Responsible Cost Center
BasicSchedulingType BasicSchedulingType Scheduling type
OrdIsNotSchedldAutomatically OrdIsNotSchedldAutomatically No auto. cost.
MainWorkCenter MainWorkCenter Work Center
MainWorkCenterPlant MainWorkCenterPlant Plnt WorkCenter
OperationHasLongText OperationHasLongText
OrderHasLongText OrderHasLongText Order Has Long Text
MaintenanceOrderDesc MaintenanceOrderDesc Description
MaintenanceOrderType MaintenanceOrderType Order Type
MaintenanceActivityType MaintenanceActivityType MaintActivType
MaintOrdBasicStartDate MaintOrdBasicStartDate Bas. Start Date
MaintOrdBasicStartTime MaintOrdBasicStartTime
MaintOrdBasicEndDate MaintOrdBasicEndDate Basic fin. date
MaintOrdBasicEndTime MaintOrdBasicEndTime
MaintPriority MaintPriority Priority
MaintPriorityType MaintPriorityType PriorityType
MaintenanceNotification MaintenanceNotification Notification
Equipment Equipment Equipment check
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr Loc/AccAssmt
MaintenanceOrderInternalID MaintenanceOrderInternalID Object number
MaintenancePlanningPlant MaintenancePlanningPlant Planning Plant
MaintenancePlannerGroup MaintenancePlannerGroup Planner Group
MaintenanceRevision MaintenanceRevision Revision
OperationSystemCondition OperationSystemCondition SystemCondition
OrderSystemCondition OrderSystemCondition SystemCondition
MaintenancePlan MaintenancePlan MaintenancePlan
EquipmentName
AuthorizationGroup _Equipment AuthorizationGroup AuthorizGroup
FunctionalLocation
FunctionalLocationName
AssetRoom _LocationAccountAssignment AssetRoom Room
AssetLocation _LocationAccountAssignment AssetLocation Location
PlantSection _LocationAccountAssignment PlantSection Plant Section
MaintenancePlant _LocationAccountAssignment MaintenancePlant Plant
ABCIndicator _LocationAccountAssignment ABCIndicator ABC Indicator
ABCIndicatorDesc
Project _Project Project WBS Element
ProjectDescription _Project ProjectDescription Project Name
WBSElement _WBSElement WBSElement WBS Internal ID
WBSDescription _WBSElement WBSDescription WBS Element Name
OperationPlannedWork OperationPlannedWork
OperationPlannedWorkUnit OperationPlannedWorkUnit
OperationDuration OperationDuration
OperationDurationUnit OperationDurationUnit
OpErlstSchedldExecStrtDte OpErlstSchedldExecStrtDte Earl.start date
OpErlstSchedldExecStrtTme OpErlstSchedldExecStrtTme
OpErlstSchedldExecEndDte OpErlstSchedldExecEndDte EarliestEndDate
OpErlstSchedldExecEndTme OpErlstSchedldExecEndTme
OpLtstSchedldExecStrtDte OpLtstSchedldExecStrtDte Latest start
OpLtstSchedldExecStrtTme OpLtstSchedldExecStrtTme
OpLtstSchedldExecEndDte OpLtstSchedldExecEndDte Lat.finish date
OpLtstSchedldExecEndTme OpLtstSchedldExecEndTme
OpBscStartDateConstraintType OpBscStartDateConstraintType StartConstraint
ConstraintDateForBscStartDate ConstraintDateForBscStartDate
ConstraintTimeForBscStartTime ConstraintTimeForBscStartTime
OpBscEndDateConstraintType OpBscEndDateConstraintType Fin. constraint
ConstraintDateForBscFinishDate ConstraintDateForBscFinishDate
ConstraintTimeForBscFinishTime ConstraintTimeForBscFinishTime
MaintOrderProcessingContext MaintOrderProcessingContext Processing Context
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentItem ServiceDocumentItem Service Document
ServiceDocumentType ServiceDocumentType Transaction Type
ScheduledBasicStartDate ScheduledBasicStartDate Sched. start
ScheduledBasicStartTime ScheduledBasicStartTime
ScheduledBasicEndDate ScheduledBasicEndDate Sched. finish
ScheduledBasicEndTime ScheduledBasicEndTime
SchedulingIsPerformedBackward SchedulingIsPerformedBackward
SchedulingType SchedulingType
LatestAcceptableCompletionDate LatestAcceptableCompletionDate Final Due Date
MaintOperationExecStageCode MaintOperationExecStageCode Execution Stage
PlannedStartDate PlannedStartDate Latest Planned Start
PlannedStartTime PlannedStartTime
PlannedEndDate PlannedEndDate Ltst Planned Finish
PlannedEndTime PlannedEndTime
ProcessingStatus ProcessingStatus Worklist Status
MaintOrdOpIsDispatched MaintOrdOpIsDispatched
MaterialStatus
OperationHasSubOperations OperationHasSubOperations
OpActualExecutionStartDate _OperationPlanningValues OpActualExecutionStartDate Execution Start Date
OpActualExecutionStartTime _OperationPlanningValues OpActualExecutionStartTime
OpActualExecutionEndDate _OperationPlanningValues OpActualExecutionEndDate Execution End Date
OpActualExecutionEndTime _OperationPlanningValues OpActualExecutionEndTime
MaintOrdProcessPhaseCode MaintOrdProcessPhaseCode Process Phase
MaintOrdProcessSubPhaseCode MaintOrdProcessSubPhaseCode Process Subphase
MaintOrdOpProcessPhaseCode MaintOrdOpProcessPhaseCode Process Phase
MaintOrdOpProcessSubPhaseCode MaintOrdOpProcessSubPhaseCode Process Subphase
OperationEquipment OperationEquipment Equipment (Operation)
OperationEquipmentName
RelevantOperationFuncLocation RelevantOperationFuncLocation
OperationFunctionalLocation
OpFunctionalLocationName
ActualWorkQuantity _OperationPlanningValues ConfirmationTotalQuantity
ActualWorkQuantityUnit _OperationPlanningValues OperationPlannedWorkUnit
SortField _LocationAccountAssignment MaintObjectFreeDefinedAttrib Sort Field
SuperiorOperationInternalID SuperiorOperationInternalID Sup. Op. Node
_WorkCenter _WorkCenter
_BasicSchedulingType _BasicSchedulingType
_Equipment _Equipment
_LocationAccountAssignment _LocationAccountAssignment
_MaintenanceActivityType _MaintenanceActivityType
_MaintenanceNotification _MaintenanceNotification
_MaintenancePriority _MaintenancePriority
_MaterialStatus _MaterialStatus
_PersonResponsible _PersonResponsible
_MaintSchedSimulation _MaintSchedSimulation
_FirstMaintSched _FirstMaintSched
_MaintOrderOpObjectListLink _MaintOrderOpObjectListLink
_SuperiorOperation _SuperiorOperation
_MaintenanceRevision _MaintenanceRevision

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 P_RSHOperations.
-- 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.
-- SQL view name: PRSHOPERATIONS

CREATE VIEW P_RSHOperations AS
SELECT
  MaintenanceOrder,
  cast( MaintenanceOrderOperation as imrc_woobk ) AS MaintenanceOrderOperation,
  MaintenanceOrderSubOperation,
  MaintOrderRoutingNumber,
  MaintOrderOperationCounter,
  MaintOrderConfirmation,
  OperationControlKey,
  OperationDescription,
  OperationPersonResponsible,
  PersonFullName,
  Plant,
  MaintOrderOperationInternalID,
  WorkCenterInternalID,
  WorkCenterTypeCode,
  WorkCenter,
  NumberOfCapacities,
  SuperiorProjectNetwork,
  ControllingArea,
  ResponsibleCostCenter,
  BasicSchedulingType,
  OrdIsNotSchedldAutomatically,
  MainWorkCenter,
  MainWorkCenterPlant,
  OperationHasLongText,
  OrderHasLongText,
  MaintenanceOrderDesc,
  MaintenanceOrderType,
  MaintenanceActivityType,
  MaintOrdBasicStartDate,
  MaintOrdBasicStartTime,
  MaintOrdBasicEndDate,
  MaintOrdBasicEndTime,
  MaintPriority,
  MaintPriorityType,
  MaintenanceNotification,
  Equipment,
  MaintObjectLocAcctAssgmtNmbr,
  MaintenanceOrderInternalID,
  MaintenancePlanningPlant,
  MaintenancePlannerGroup,
  MaintenanceRevision,
  OperationSystemCondition,
  OrderSystemCondition,
  MaintenancePlan,
  coalesce(_Equipment._EquipmentText[ 1: Language = $session.system_language ].EquipmentName,'') AS EquipmentName,
  _Equipment.AuthorizationGroup AS AuthorizationGroup,
  cast(_LocationAccountAssignment.FunctionalLocation as vdm_eam_tplnr) AS FunctionalLocation,
  coalesce(cast( _LocationAccountAssignment._FunctionalLocation._FunctionalLocationText[ 1: Language = $session.system_language ].FunctionalLocationName as rsh_eam_func_location_name preserving type ),'') AS FunctionalLocationName,
  _LocationAccountAssignment.AssetRoom AS AssetRoom,
  _LocationAccountAssignment.AssetLocation AS AssetLocation,
  _LocationAccountAssignment.PlantSection AS PlantSection,
  _LocationAccountAssignment.MaintenancePlant AS MaintenancePlant,
  _LocationAccountAssignment.ABCIndicator AS ABCIndicator,
  _LocationAccountAssignment._ABCIndicator._Text[1:Language = $session.system_language].ABCIndicatorDesc AS ABCIndicatorDesc,
  _Project.Project AS Project,
  _Project.ProjectDescription AS ProjectDescription,
  _WBSElement.WBSElement AS WBSElement,
  _WBSElement.WBSDescription AS WBSDescription,
  OperationPlannedWork,
  OperationPlannedWorkUnit,
  OperationDuration,
  OperationDurationUnit,
  OpErlstSchedldExecStrtDte,
  OpErlstSchedldExecStrtTme,
  OpErlstSchedldExecEndDte,
  OpErlstSchedldExecEndTme,
  OpLtstSchedldExecStrtDte,
  OpLtstSchedldExecStrtTme,
  OpLtstSchedldExecEndDte,
  OpLtstSchedldExecEndTme,
  OpBscStartDateConstraintType,
  ConstraintDateForBscStartDate,
  ConstraintTimeForBscStartTime,
  OpBscEndDateConstraintType,
  ConstraintDateForBscFinishDate,
  ConstraintTimeForBscFinishTime,
  MaintOrderProcessingContext,
  ServiceDocument,
  ServiceDocumentItem,
  ServiceDocumentType,
  ScheduledBasicStartDate,
  ScheduledBasicStartTime,
  ScheduledBasicEndDate,
  ScheduledBasicEndTime,
  SchedulingIsPerformedBackward,
  SchedulingType,
  LatestAcceptableCompletionDate,
  MaintOperationExecStageCode,
  PlannedStartDate,
  PlannedStartTime,
  PlannedEndDate,
  PlannedEndTime,
  ProcessingStatus,
  MaintOrdOpIsDispatched,
  coalesce( _MaterialStatus.MaterialStatus , 30 ) AS MaterialStatus,
  OperationHasSubOperations,
  _OperationPlanningValues.OpActualExecutionStartDate AS OpActualExecutionStartDate,
  _OperationPlanningValues.OpActualExecutionStartTime AS OpActualExecutionStartTime,
  _OperationPlanningValues.OpActualExecutionEndDate AS OpActualExecutionEndDate,
  _OperationPlanningValues.OpActualExecutionEndTime AS OpActualExecutionEndTime,
  MaintOrdProcessPhaseCode,
  MaintOrdProcessSubPhaseCode,
  MaintOrdOpProcessPhaseCode,
  MaintOrdOpProcessSubPhaseCode,
  OperationEquipment,
  _OperationEquipment._EquipmentText[ 1: Language = $session.system_language ].EquipmentName AS OperationEquipmentName,
  RelevantOperationFuncLocation,
  cast(_OperationFuncLocationLabel.FunctionalLocationLabelName as rsh_eams_oper_func_loc preserving type ) AS OperationFunctionalLocation,
  _OperationFunctionalLocation._FunctionalLocationText[ 1: Language = $session.system_language ].FunctionalLocationName AS OpFunctionalLocationName,
  _OperationPlanningValues.ConfirmationTotalQuantity AS ActualWorkQuantity,
  _OperationPlanningValues.OperationPlannedWorkUnit AS ActualWorkQuantityUnit,
  _LocationAccountAssignment.MaintObjectFreeDefinedAttrib AS SortField,
  SuperiorOperationInternalID
FROM P_RSHOperationsBase
LEFT OUTER JOIN C_RSHOpInMaintSchedSimulation AS _MaintSchedSimulation ON MaintOrderRoutingNumber = _MaintSchedSimulation.MaintOrderRoutingNumber AND MaintOrderOperationCounter = _MaintSchedSimulation.MaintOrderOperationCounter  -- association [0..*]
LEFT OUTER JOIN P_RSHMaintOrdOpFirstMaintSched AS _FirstMaintSched ON MaintOrderRoutingNumber = _FirstMaintSched.MaintOrderRoutingNumber AND MaintOrderOperationCounter = _FirstMaintSched.MaintOrderOperationCounter  -- association [1..1]
LEFT OUTER JOIN I_FunctionalLocationLabel AS _OperationFuncLocationLabel ON RelevantOperationFuncLocation = _OperationFuncLocationLabel.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _OperationEquipment ON _OperationEquipment.Equipment = OperationEquipment  -- association [0..*]
LEFT OUTER JOIN I_FunctionalLocation AS _OperationFunctionalLocation ON _OperationFunctionalLocation.FunctionalLocation = RelevantOperationFuncLocation  -- association [0..*]
;