A_PlannedOrderCapacity
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CapacityRequirementItemCap | kbed | from |
| I_BillOfOperationsOpBasic | SubOperation | left_outer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | A_PlannedOrder | _PlannedOrder | $projection.PlannedOrder = _PlannedOrder.PlannedOrder |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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