I_PlannedOrderCapacity
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
| Category | CDS Views for Material Requirements Planning |
|---|---|
| Data Category | DIMENSION |
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
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction, Analytical Dimension, Association Target for Defining CDS Entities |
| Package | Manufacturing 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CapacityRequirementItemCap | kbed | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA