A_PlannedOrderCapacity

DDL: A_PLANNEDORDERCAPACITY SQL: APLNDORDCAP Type: view COMPOSITE

Planned Order Capacity

A_PlannedOrderCapacity is a Composite CDS View that provides data about "Planned Order Capacity" in SAP S/4HANA. It reads from 2 data sources (I_CapacityRequirementItemCap, I_BillOfOperationsOpBasic) and exposes 36 fields with key fields CapacityRequirement, CapacityRequirementItem, CapacityRqmtItemCapacity. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_CapacityRequirementItemCap kbed from
I_BillOfOperationsOpBasic SubOperation left_outer

Associations (1)

CardinalityTargetAliasCondition
[0..1] A_PlannedOrder _PlannedOrder $projection.PlannedOrder = _PlannedOrder.PlannedOrder

Annotations (13)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName APLNDORDCAP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Planned Order Capacity view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY CapacityRequirement CapacityRequirement Id number
KEY CapacityRequirementItem CapacityRequirementItem
KEY CapacityRqmtItemCapacity CapacityRqmtItemCapacity
PlannedOrder PlannedOrder Planned Order
PlannedOrderType _PlannedOrder PlannedOrderType
Sequence BillOfOperationsSequence Sequence
Operation I_CapacityRequirementItemCap Operation Transaction
WorkCenter
CapacityCategoryCode _Capacity CapacityCategoryCode Capacity cat.
Capacity _Capacity Capacity Engine Capacity
MRPController _PlannedOrder MRPController MRP Controller
MRPPlant _PlannedOrder MRPPlant Plant
OperationLatestStartDate OperationLatestStartDate Ltst Start Date
OperationLatestStartTime OperationLatestStartTime Ltst Start Time
OperationLatestEndDate OperationLatestEndDate Ltst End Date
OperationLatestEndTime OperationLatestEndTime Ltst End Time
OperationEarliestStartDate OperationEarliestStartDate Erlst Strt Date
OperationEarliestStartTime OperationEarliestStartTime Erlst Strt Time
OperationEarliestEndDate OperationEarliestEndDate Erlst End Date
OperationEarliestEndTime OperationEarliestEndTime Erlst End Time
OpLtstSchedldProcgStrtDte LtstSchedldProcStrtDte
OpLtstSchedldProcgStrtTme LtstSchedldProcStrtTime
OpLtstSchedldTrdwnStrtDte LtstSchedldTrdwnStrtDte
OpLtstSchedldTrdwnStrtTme LtstSchedldTrdwnStrtTime
ScheduledBasicEndTime _CapacityRequirement ScheduledBasicEndTime
ScheduledBasicStartTime _CapacityRequirement ScheduledBasicStartTime
CapacityRequirementUnit CapacityRequirementUnit Capacity Unit
UnitOfMeasureISOCode _UnitOfMeasure UnitOfMeasureISOCode
ScheduledCapReqOpSegSetupDurn ScheduledCapReqOpSegSetupDurn Scheduled Setup
RemainingCapReqOpSegSetupDurn RemainingCapReqOpSegSetupDurn Remaining Setup
ScheduledCapReqOpSegProcgDurn ScheduledCapReqOpSegProcgDurn Sched. Process.
RemainingCapReqOpSegProcgDurn RemainingCapReqOpSegProcgDurn Rem. Processing
ScheduledCapReqOpSegTrdwnDurn ScheduledCapReqOpSegTrdwnDurn Sched. Teardown
RemainingCapReqOpSegTrdwnDurn RemainingCapReqOpSegTrdwnDurn Remain.Teardown
OperationTextendasOperationText
LastChangeDateTime _PlannedOrder LastChangeDateTime Timestamp

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 A_PlannedOrderCapacity.
-- 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: APLNDORDCAP

CREATE VIEW A_PlannedOrderCapacity AS
SELECT
  CapacityRequirement,
  CapacityRequirementItem,
  CapacityRqmtItemCapacity,
  PlannedOrder,
  _PlannedOrder.PlannedOrderType AS PlannedOrderType,
  BillOfOperationsSequence AS Sequence,
  kbed.Operation AS Operation,
  kbed._WorkCenter.WorkCenter AS WorkCenter,
  _Capacity.CapacityCategoryCode AS CapacityCategoryCode,
  _Capacity.Capacity AS Capacity,
  _PlannedOrder.MRPController AS MRPController,
  _PlannedOrder.MRPPlant AS MRPPlant,
  OperationLatestStartDate,
  OperationLatestStartTime,
  OperationLatestEndDate,
  OperationLatestEndTime,
  OperationEarliestStartDate,
  OperationEarliestStartTime,
  OperationEarliestEndDate,
  OperationEarliestEndTime,
  LtstSchedldProcStrtDte AS OpLtstSchedldProcgStrtDte,
  LtstSchedldProcStrtTime AS OpLtstSchedldProcgStrtTme,
  LtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
  LtstSchedldTrdwnStrtTime AS OpLtstSchedldTrdwnStrtTme,
  _CapacityRequirement.ScheduledBasicEndTime AS ScheduledBasicEndTime,
  _CapacityRequirement.ScheduledBasicStartTime AS ScheduledBasicStartTime,
  CapacityRequirementUnit,
  _UnitOfMeasure.UnitOfMeasureISOCode AS UnitOfMeasureISOCode,
  ScheduledCapReqOpSegSetupDurn,
  RemainingCapReqOpSegSetupDurn,
  ScheduledCapReqOpSegProcgDurn,
  RemainingCapReqOpSegProcgDurn,
  ScheduledCapReqOpSegTrdwnDurn,
  RemainingCapReqOpSegTrdwnDurn,
  case when SubOperation.SuperiorOperationInternalID > '00000000' then SubOperation.OperationText else _BOOOperationInternalVersion.OperationText end as OperationText AS OperationTextendasOperationText,
  _PlannedOrder.LastChangeDateTime AS LastChangeDateTime
FROM I_CapacityRequirementItemCap AS kbed
LEFT OUTER JOIN I_BillOfOperationsOpBasic AS SubOperation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder  -- association [0..1]
;