P_RSHOperationsForKPI

DDL: P_RSHOPERATIONSFORKPI SQL: PRSHOPERATIONKPI Type: view CONSUMPTION Package: RSH_CDS_ORD

Operations and Sub Operations for overview page

P_RSHOperationsForKPI is a Consumption CDS View that provides data about "Operations and Sub Operations for overview page" in SAP S/4HANA. It reads from 7 data sources and exposes 19 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation. Part of development package RSH_CDS_ORD.

Data Sources (7)

SourceAliasJoin Type
I_StatusObjectStatusBasic excl_status left_outer
I_MaintOrderOperPlanningValues I_MaintOrderOperPlanningValues inner
I_StatusObjectStatusBasic incl_status inner
I_MaintOrderOperAndSubOper iop from
I_MaintenanceOrder iorder inner
I_OperationControlProfile operation_controlprofile inner
I_RSHAssignedWorkCenters user_var inner

Parameters (2)

NameTypeDefault
P_StartDate datum
P_EndDate datum

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRSHOPERATIONKPI view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Operations and Sub Operations for overview page view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintOrderOperAndSubOper MaintenanceOrder Order
KEY MaintenanceOrderOperation I_MaintOrderOperAndSubOper MaintenanceOrderOperation Suboperation
KEY MaintenanceOrderSubOperation I_MaintOrderOperAndSubOper MaintenanceOrderSubOperation Suboperation
MaintPriority I_MaintenanceOrder MaintPriority Priority
MaintenanceActivityType I_MaintenanceOrder MaintenanceActivityType MaintActivType
MaintenanceOrderType I_MaintenanceOrder MaintenanceOrderType Order Type
WorkCenterInternalID I_MaintOrderOperAndSubOper OperationWorkCenterInternalID Object ID
WorkCenterTypeCode I_MaintOrderOperAndSubOper OperationWorkCenterTypeCode
Plant I_MaintOrderOperAndSubOper Plant Valuation Area
ControllingArea
MaintenancePlannerGroup I_MaintenanceOrder MaintenancePlannerGroup Planner Group
MaintenancePlant
ResponsibleCostCenter
AuthorizationGroup
FunctionalLocation
FunctionalLocationLabelName
Equipment I_MaintenanceOrder Equipment Equipment check
MaintenanceRevision I_MaintenanceOrder MaintenanceRevision Revision
OperationControlKey I_MaintOrderOperAndSubOper OperationControlKey Control Key

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_RSHOperationsForKPI.
-- 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: PRSHOPERATIONKPI
-- Parameters: P_StartDate : datum, P_EndDate : datum

CREATE VIEW P_RSHOperationsForKPI AS
SELECT
  iop.MaintenanceOrder AS MaintenanceOrder,
  iop.MaintenanceOrderOperation AS MaintenanceOrderOperation,
  iop.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
  iorder.MaintPriority AS MaintPriority,
  iorder.MaintenanceActivityType AS MaintenanceActivityType,
  iorder.MaintenanceOrderType AS MaintenanceOrderType,
  iop.OperationWorkCenterInternalID AS WorkCenterInternalID,
  iop.OperationWorkCenterTypeCode AS WorkCenterTypeCode,
  iop.Plant AS Plant,
  iorder._Order.ControllingArea AS ControllingArea,
  iorder.MaintenancePlannerGroup AS MaintenancePlannerGroup,
  iorder._LocationAccountAssignment.MaintenancePlant AS MaintenancePlant,
  iorder._Order.ResponsibleCostCenter AS ResponsibleCostCenter,
  iorder._Equipment.AuthorizationGroup AS AuthorizationGroup,
  iorder._LocationAccountAssignment.FunctionalLocation AS FunctionalLocation,
  iorder._LocationAccountAssignment._FunctionalLocation._FunctionalLocationLabel.FunctionalLocationLabelName AS FunctionalLocationLabelName,
  iorder.Equipment AS Equipment,
  iorder.MaintenanceRevision AS MaintenanceRevision,
  iop.OperationControlKey AS OperationControlKey
FROM I_MaintOrderOperAndSubOper AS iop
INNER JOIN I_MaintenanceOrder AS iorder ON /* join condition not captured in parsed metadata */
INNER JOIN I_MaintOrderOperPlanningValues ON /* join condition not captured in parsed metadata */
INNER JOIN I_RSHAssignedWorkCenters AS user_var ON /* join condition not captured in parsed metadata */
INNER JOIN I_OperationControlProfile AS operation_controlprofile ON /* join condition not captured in parsed metadata */
INNER JOIN I_StatusObjectStatusBasic AS incl_status ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatusObjectStatusBasic AS excl_status ON /* join condition not captured in parsed metadata */
;