I_PlannedOrderCapacity

DDL: I_PLANNEDORDERCAPACITY SQL: IPLNDORDERCAP Type: view COMPOSITE

Planned Order Capacity

I_PlannedOrderCapacity (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

PlannedOrderCapacity · Manufacturing

I_PlannedOrderCapacity is a Composite CDS View (Dimension) that provides data about "Planned Order Capacity" in SAP S/4HANA. It reads from 1 data source (I_CapacityRequirementItemCap) and exposes 48 fields with key fields CapacityRequirement, CapacityRequirementItem. It has 5 associations to related views.

SAP Help Documentation

CategoryCDS Views for Material Requirements Planning
Data CategoryDIMENSION
Purpose
This CDS view helps to select the single capacities of the capacity requirements of planned orders. This CDS view provides the data to answer the following business questions: Which single capacities are assigned to a planned order? What are the scheduled start and end dates and times? Which routing operations are exploded? Which work centers are assigned to a planned order? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: M_PLAF_ORG Organizational Levels for Planned Order Processing, authorization field: MDAKT = A

Structure
Fields used for filtering The main filters are as follows: CapacityCategory used to filter by capacity category. PlannedOrder used to filter by planned order. Further important fields Important fields in this view include the following: Field Name Description CapacityRequirement Capacity Requirement CapacityRequirementItem Capacity Requirement Item CapacityRqmtItemCapacity Capacity Requirement Item - Single Capacity PlannedOrder Planned Order WorkCenterInternalID Internal ID of Work Center CapacityInternalID Internal ID of Capacity CapacityCategory Capacity Category Sequence Sequence Operation Operation OperationText Operation Text OperationLatestStartDate Latest Scheduled Start Date OperationLatestEndDate Latest Scheduled End Date OperationEarliestStartDate Earliest Scheduled Start Date OperationEarliestEndDate Earliest Scheduled End Date CapacityRequirementUnit Unit of Measurement

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction, Analytical Dimension, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view helps to select the single capacities of the capacity requirements of planned orders.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>Which single capacities are assigned to a planned order?</p></li> <li><p>What are the scheduled start and end dates and times?</p></li> <li><p>Which routing operations are exploded? </p></li> <li><p>Which work centers are assigned to a planned order?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_CapacityRequirementItemCap kbed from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_CapacityCategory _CapacityCategory $projection.CapacityCategory = _CapacityCategory.CapacityCategoryCode
[0..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterType = _WorkCenterType.WorkCenterTypeCode
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterType = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
[0..1] I_StatusObject _OrderStatusObject $projection.OrderObjectInternalID = _OrderStatusObject.StatusObject -- to root
[1..1] I_PlannedOrder _PlannedOrder $projection.PlannedOrder = _PlannedOrder.PlannedOrder

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName IPLNDORDERCAP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey CapacityRqmtItemCapacity view
ObjectModel.sapObjectNodeType.name PlannedOrderCapacity view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Planned Order Capacity view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY CapacityRequirement I_CapacityRequirementItemCap CapacityRequirement ID of the Capacity Requirements Record
KEY CapacityRequirementItem I_CapacityRequirementItemCap CapacityRequirementItem Capacity Requirement Item
CapacityRqmtItemCapacity Individual Capacity of a Capacity Requirement Item
PlannedOrder I_CapacityRequirementItemCap PlannedOrder Planned Order
WorkCenterInternalID I_CapacityRequirementItemCap WorkCenterInternalID Work Center ID
WorkCenterType I_CapacityRequirementItemCap WorkCenterTypeCode_2 Work Center Type
CapacityInternalID I_CapacityRequirementItemCap CapacityInternalID Capacity ID
CapacityCategory Capacity Category
CapacityRqmtConfirmation I_CapacityRequirementItemCap CapacityRqmtConfirmation Capacity Requirement Availability Confirmation Code
OrderObjectInternalID I_CapacityRequirementItemCap OrderObjectInternalID Object Internal ID of an Order
Sequence I_CapacityRequirementItemCap BillOfOperationsSequence Sequence
Operation I_CapacityRequirementItemCap Operation_2 Operation or Phase Number
OperationTextendasOperationText
ActualNumberOfSplits I_CapacityRequirementItemCap ActualNumberOfSplits Actual Number of Splits
CapacityRequirementSplit I_CapacityRequirementItemCap CapacityRequirementSplit Capacity Split Number
OperationLatestStartDate I_CapacityRequirementItemCap OperationLatestStartDate Latest Start Date
OperationLatestStartTime I_CapacityRequirementItemCap OperationLatestStartTime Latest Start Time
OperationLatestEndDate I_CapacityRequirementItemCap OperationLatestEndDate Latest End Date
OperationLatestEndTime I_CapacityRequirementItemCap OperationLatestEndTime Latest End Time
OperationEarliestStartDate I_CapacityRequirementItemCap OperationEarliestStartDate Earliest Start Date
OperationEarliestStartTime I_CapacityRequirementItemCap OperationEarliestStartTime Earliest Start Time
OperationEarliestEndDate I_CapacityRequirementItemCap OperationEarliestEndDate Earliest End Date
OperationEarliestEndTime I_CapacityRequirementItemCap OperationEarliestEndTime Earliest End Time
OpErlstSchedldProcgStrtDte I_CapacityRequirementItemCap ErlstSchedldProcStrtDte Earliest Scheduled Processing Start Date
OpErlstSchedldProcgStrtTme I_CapacityRequirementItemCap ErlstSchedldProcStrtTime Earliest Scheduled Processing Start Time
OpErlstSchedldTrdwnStrtDte I_CapacityRequirementItemCap ErlstSchedldTrdwnStrtDte Earliest Scheduled Teardown Start Date
OpErlstSchedldTrdwnStrtTme I_CapacityRequirementItemCap ErlstSchedldTrdwnStrtTime Earliest Scheduled Teardown Start Time
OpLtstSchedldProcgStrtDte I_CapacityRequirementItemCap LtstSchedldProcStrtDte Latest Scheduled Processing Start Date
OpLtstSchedldProcgStrtTme I_CapacityRequirementItemCap LtstSchedldProcStrtTime Latest Scheduled Processing Start Time
OpLtstSchedldTrdwnStrtDte I_CapacityRequirementItemCap LtstSchedldTrdwnStrtDte Latest Scheduled Teardown Start Date
OpLtstSchedldTrdwnStrtTme I_CapacityRequirementItemCap LtstSchedldTrdwnStrtTime Latest Scheduled Teardown Start Time
CapacityRequirementUnit I_CapacityRequirementItemCap CapacityRequirementUnit Unit of Measure for Capacity Requirements
ScheduledCapReqOpSegSetupDurn I_CapacityRequirementItemCap ScheduledCapReqOpSegSetupDurn Scheduled Capacity Requirements for Setup
RemainingCapReqOpSegSetupDurn I_CapacityRequirementItemCap RemainingCapReqOpSegSetupDurn Remaining Capacity Requirements for Setup
ScheduledCapReqOpSegProcgDurn I_CapacityRequirementItemCap ScheduledCapReqOpSegProcgDurn Scheduled Capacity Requirements for Processing
RemainingCapReqOpSegProcgDurn I_CapacityRequirementItemCap RemainingCapReqOpSegProcgDurn Remaining Capacity Requirements for Processing
ScheduledCapReqOpSegTrdwnDurn I_CapacityRequirementItemCap ScheduledCapReqOpSegTrdwnDurn Scheduled Capacity Requirements for the Teardown
RemainingCapReqOpSegTrdwnDurn I_CapacityRequirementItemCap RemainingCapReqOpSegTrdwnDurn Remaining Capacity Requirements for Teardown
_PlannedOrder _PlannedOrder
_WorkCenter _WorkCenter
_WorkCenterType _WorkCenterType
_CapacityCategory _CapacityCategory
_OrderStatusObject _OrderStatusObject
_CapacityRequirementConf I_CapacityRequirementItemCap _CapacityRequirementConf
_CapacityRequirement I_CapacityRequirementItemCap _CapacityRequirement
_CapacityRequirementItem I_CapacityRequirementItemCap _CapacityRequirementItem
_Capacity I_CapacityRequirementItemCap _Capacity
_UnitOfMeasure I_CapacityRequirementItemCap _UnitOfMeasure

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 I_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: IPLNDORDERCAP

CREATE VIEW I_PlannedOrderCapacity AS
SELECT
  kbed.CapacityRequirement AS CapacityRequirement,
  kbed.CapacityRequirementItem AS CapacityRequirementItem,
  kbed.PlannedOrder AS PlannedOrder,
  kbed.WorkCenterInternalID AS WorkCenterInternalID,
  kbed.WorkCenterTypeCode_2 AS WorkCenterType,
  kbed.CapacityInternalID AS CapacityInternalID,
  kbed._Capacity.CapacityCategoryCode AS CapacityCategory,
  kbed.CapacityRqmtConfirmation AS CapacityRqmtConfirmation,
  kbed.OrderObjectInternalID AS OrderObjectInternalID,
  kbed.BillOfOperationsSequence AS Sequence,
  kbed.Operation_2 AS Operation,
  case when BOOSubOp.SuperiorOperationInternalID > '00000000' then BOOSubOp.OperationText else kbed._BOOOperationInternalVersion.OperationText end as OperationText AS OperationTextendasOperationText,
  kbed.ActualNumberOfSplits AS ActualNumberOfSplits,
  kbed.CapacityRequirementSplit AS CapacityRequirementSplit,
  kbed.OperationLatestStartDate AS OperationLatestStartDate,
  kbed.OperationLatestStartTime AS OperationLatestStartTime,
  kbed.OperationLatestEndDate AS OperationLatestEndDate,
  kbed.OperationLatestEndTime AS OperationLatestEndTime,
  kbed.OperationEarliestStartDate AS OperationEarliestStartDate,
  kbed.OperationEarliestStartTime AS OperationEarliestStartTime,
  kbed.OperationEarliestEndDate AS OperationEarliestEndDate,
  kbed.OperationEarliestEndTime AS OperationEarliestEndTime,
  kbed.ErlstSchedldProcStrtDte AS OpErlstSchedldProcgStrtDte,
  kbed.ErlstSchedldProcStrtTime AS OpErlstSchedldProcgStrtTme,
  kbed.ErlstSchedldTrdwnStrtDte AS OpErlstSchedldTrdwnStrtDte,
  kbed.ErlstSchedldTrdwnStrtTime AS OpErlstSchedldTrdwnStrtTme,
  kbed.LtstSchedldProcStrtDte AS OpLtstSchedldProcgStrtDte,
  kbed.LtstSchedldProcStrtTime AS OpLtstSchedldProcgStrtTme,
  kbed.LtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
  kbed.LtstSchedldTrdwnStrtTime AS OpLtstSchedldTrdwnStrtTme,
  kbed.CapacityRequirementUnit AS CapacityRequirementUnit,
  kbed.ScheduledCapReqOpSegSetupDurn AS ScheduledCapReqOpSegSetupDurn,
  kbed.RemainingCapReqOpSegSetupDurn AS RemainingCapReqOpSegSetupDurn,
  kbed.ScheduledCapReqOpSegProcgDurn AS ScheduledCapReqOpSegProcgDurn,
  kbed.RemainingCapReqOpSegProcgDurn AS RemainingCapReqOpSegProcgDurn,
  kbed.ScheduledCapReqOpSegTrdwnDurn AS ScheduledCapReqOpSegTrdwnDurn,
  kbed.RemainingCapReqOpSegTrdwnDurn AS RemainingCapReqOpSegTrdwnDurn,
  kbed._CapacityRequirementConf AS _CapacityRequirementConf,
  kbed._CapacityRequirement AS _CapacityRequirement,
  kbed._CapacityRequirementItem AS _CapacityRequirementItem,
  kbed._Capacity AS _Capacity,
  kbed._UnitOfMeasure AS _UnitOfMeasure
FROM I_CapacityRequirementItemCap AS kbed
LEFT OUTER JOIN I_CapacityCategory AS _CapacityCategory ON CapacityCategory = _CapacityCategory.CapacityCategoryCode  -- association [0..1]
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterType = _WorkCenterType.WorkCenterTypeCode  -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterType = _WorkCenter.WorkCenterTypeCode AND WorkCenterInternalID = _WorkCenter.WorkCenterInternalID  -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _OrderStatusObject ON OrderObjectInternalID = _OrderStatusObject.StatusObject  -- association [0..1]
LEFT OUTER JOIN I_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder  -- association [1..1]
;