C_ObjPgMaintOrdOpCapReq

DDL: C_OBJPGMAINTORDOPCAPREQ Type: view_entity CONSUMPTION Package: ODATA_EAM_ORD_MAN

Maint Order Oper Capacity Requirements

C_ObjPgMaintOrdOpCapReq is a Consumption CDS View that provides data about "Maint Order Oper Capacity Requirements" in SAP S/4HANA. It reads from 1 data source (I_CapacityRequirementItemCapC) and exposes 21 fields with key fields CapacityRequirement, CapacityRequirementItem, CapacityCategoryAllocation. It has 1 association to related views. Part of development package ODATA_EAM_ORD_MAN.

Data Sources (1)

SourceAliasJoin Type
I_CapacityRequirementItemCapC I_CapacityRequirementItemCapC from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_MaintenanceOrder _MaintenanceOrder _MaintenanceOrder.MaintenanceOrder = $projection.OrderID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maint Order Oper Capacity Requirements view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CapacityRequirement I_CapacityRequirementItemCapC CapacityRequirement
KEY CapacityRequirementItem I_CapacityRequirementItemCapC CapacityRequirementItem Capacity Requirement Item
KEY CapacityCategoryAllocation I_CapacityRequirementItemCapC CapacityCategoryAllocation Capacity Category Allocation
WorkCenter
WorkCenterText
CapacityRequirementSplit I_CapacityRequirementItemCapC CapacityRequirementSplit
CapacitySplitIsDispatched I_CapacityRequirementItemCapC CapacitySplitIsDispatched Split Dispatched
PersonnelNumber I_CapacityRequirementItemCapC PersonnelNumber Personnel Number
PersonnelName Personnel Name
PlannedWorkQuantity I_CapacityRequirementItemCapC PlannedWorkQuantity Planned Work
ActualWorkQuantity I_CapacityRequirementItemCapC ActualWorkQuantity Actual work
StandardWorkQuantityUnit I_CapacityRequirementItemCapC StandardWorkQuantityUnit
OperationLatestStartDate I_CapacityRequirementItemCapC OperationLatestStartDate
OperationLatestStartTime I_CapacityRequirementItemCapC OperationLatestStartTime
OperationLatestEndDate I_CapacityRequirementItemCapC OperationLatestEndDate
OperationLatestEndTime I_CapacityRequirementItemCapC OperationLatestEndTime
OrderID I_CapacityRequirementItemCapC OrderID Order ID
Operation I_CapacityRequirementItemCapC Operation Transaction
ObjectInternalID I_CapacityRequirementItemCapC ObjectInternalID Object number
_MaintenanceOrder _MaintenanceOrder
_Employee I_CapacityRequirementItemCapC _Employee

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 C_ObjPgMaintOrdOpCapReq.
-- 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.

CREATE VIEW C_ObjPgMaintOrdOpCapReq AS
SELECT
  I_CapacityRequirementItemCapC.CapacityRequirement AS CapacityRequirement,
  I_CapacityRequirementItemCapC.CapacityRequirementItem AS CapacityRequirementItem,
  I_CapacityRequirementItemCapC.CapacityCategoryAllocation AS CapacityCategoryAllocation,
  I_CapacityRequirementItemCapC._WorkCenter.WorkCenter AS WorkCenter,
  I_CapacityRequirementItemCapC._WorkCenter._Text[1:Language = $session.system_language].WorkCenterText AS WorkCenterText,
  I_CapacityRequirementItemCapC.CapacityRequirementSplit AS CapacityRequirementSplit,
  I_CapacityRequirementItemCapC.CapacitySplitIsDispatched AS CapacitySplitIsDispatched,
  I_CapacityRequirementItemCapC.PersonnelNumber AS PersonnelNumber,
  I_CapacityRequirementItemCapC._Employment.PersonFullName AS PersonnelName,
  I_CapacityRequirementItemCapC.PlannedWorkQuantity AS PlannedWorkQuantity,
  I_CapacityRequirementItemCapC.ActualWorkQuantity AS ActualWorkQuantity,
  I_CapacityRequirementItemCapC.StandardWorkQuantityUnit AS StandardWorkQuantityUnit,
  I_CapacityRequirementItemCapC.OperationLatestStartDate AS OperationLatestStartDate,
  I_CapacityRequirementItemCapC.OperationLatestStartTime AS OperationLatestStartTime,
  I_CapacityRequirementItemCapC.OperationLatestEndDate AS OperationLatestEndDate,
  I_CapacityRequirementItemCapC.OperationLatestEndTime AS OperationLatestEndTime,
  I_CapacityRequirementItemCapC.OrderID AS OrderID,
  I_CapacityRequirementItemCapC.Operation AS Operation,
  I_CapacityRequirementItemCapC.ObjectInternalID AS ObjectInternalID,
  I_CapacityRequirementItemCapC._Employee AS _Employee
FROM I_CapacityRequirementItemCapC
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON _MaintenanceOrder.MaintenanceOrder = OrderID  -- association [1..1]
;