I_CapacityRequirement
Capacity Requirement Header
I_CapacityRequirement (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Work Order Capacity Requirement · Manufacturing
I_CapacityRequirement is a Basic CDS View (Dimension) that provides data about "Capacity Requirement Header" in SAP S/4HANA. It reads from 1 data source (kbko) and exposes 26 fields with key field CapacityRequirement. It has 10 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>With this CDS view, you can retrieve the capacity requirement header data (table KBKO) . </p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which object created a capacity requirement?</p></li> <li><p>Which scheduling type is assigned to a capacity requirement?</p></li> <li><p>Which scheduled basic start and end dates are assigned to a capacity requirement?</p></li> </ul> |
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 |
|---|---|---|
| kbko | kbko | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CapacityRequirementOrigin | _CapacityRequirementOrigin | $projection.CapacityRequirementOrigin = _CapacityRequirementOrigin.CapacityRequirementOrigin |
| [0..1] | I_PlannedOrder | _PlannedOrder | $projection.PlannedOrder = _PlannedOrder.PlannedOrder |
| [0..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_OrderInternalID | _OrderInternalID | $projection.OrderInternalID = _OrderInternalID.OrderInternalID |
| [0..1] | I_SalesOperationsPlanningOrder | _SalesOperationsPlanningOrder | $projection.SalesOperationsPlanningOrder= _SalesOperationsPlanningOrder.SalesOperationsPlanningOrder |
| [0..1] | I_BillOfOperationsType | _BillOfOperationsType | $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType |
| [0..1] | I_BillOfOperationsGroup | _BillOfOperationsGroup | $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup |
| [0..1] | I_BillOfOperations | _BillOfOperations | $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperations = _BillOfOperations.BillOfOperationsVariant |
| [0..1] | I_SchedulingType | _SchedulingType | $projection.SchedulingType = _SchedulingType.SchedulingType -- to child |
| [1..*] | I_CapacityRequirementItem | _CapacityRequirementItem | $projection.CapacityRequirement = _CapacityRequirementItem.CapacityRequirement |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPCAPRQMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.representativeKey | CapacityRequirement | view | |
| ObjectModel.sapObjectNodeType.name | WorkOrderCapacityRequirement | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Capacity Requirement Header | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityRequirement | kbko | bedid | ID of the Capacity Requirements Record |
| CapacityRequirementOrigin | Capacity Requirement Origin | |||
| PlannedOrder | kbko | plnum | Planned Order | |
| OrderID | afko | aufnr | SettlementOrder | |
| OrderInternalID | Order Internal ID | |||
| SalesOperationsPlanningOrder | kbko | safnr | Sales Operations Planning Order | |
| BillOfOperationsType | kbko | plnty | Task List Type | |
| BillOfOperationsGroup | kbko | plnnr | Key for Task List Group | |
| BillOfOperations | kbko | plnal | Referenced BOO Variant | |
| SchedulingType | Scheduling Type | |||
| ScheduledBasicStartDate | kbko | gstrs | Scheduled start | |
| ScheduledBasicStartTime | kbko | gsuzs | Earliest scheduled start: Execution (time) | |
| ScheduledBasicEndDate | kbko | gltrs | Scheduled finish | |
| ScheduledBasicEndTime | kbko | gluzs | Earliest finish of operation (time) | |
| LastScheduledDate | kbko | trmdt | Date of the Last Scheduling | |
| BOOExplosionDate | kbko | plauf | Date for Routing Explosion | |
| _CapacityRequirementItem | _CapacityRequirementItem | |||
| _CapacityRequirementOrigin | _CapacityRequirementOrigin | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _BillOfOperationsGroup | _BillOfOperationsGroup | |||
| _BillOfOperations | _BillOfOperations | |||
| _SchedulingType | _SchedulingType | |||
| _PlannedOrder | _PlannedOrder | |||
| _Order | _Order | |||
| _SalesOperationsPlanningOrder | _SalesOperationsPlanningOrder | |||
| _OrderInternalID | _OrderInternalID |
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_CapacityRequirement.
-- 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: IPPCAPRQMT
CREATE VIEW I_CapacityRequirement AS
SELECT
kbko.bedid AS CapacityRequirement,
cast(kbko.typkz as capacityrequirementorigin preserving type) AS CapacityRequirementOrigin,
kbko.plnum AS PlannedOrder,
afko.aufnr AS OrderID,
cast(kbko.aufpl as pph_aufpl preserving type) AS OrderInternalID,
kbko.safnr AS SalesOperationsPlanningOrder,
kbko.plnty AS BillOfOperationsType,
kbko.plnnr AS BillOfOperationsGroup,
kbko.plnal AS BillOfOperations,
cast(kbko.terkz as pph_termkz preserving type) AS SchedulingType,
kbko.gstrs AS ScheduledBasicStartDate,
kbko.gsuzs AS ScheduledBasicStartTime,
kbko.gltrs AS ScheduledBasicEndDate,
kbko.gluzs AS ScheduledBasicEndTime,
kbko.trmdt AS LastScheduledDate,
kbko.plauf AS BOOExplosionDate
FROM kbko
LEFT OUTER JOIN I_CapacityRequirementOrigin AS _CapacityRequirementOrigin ON CapacityRequirementOrigin = _CapacityRequirementOrigin.CapacityRequirementOrigin -- association [1..1]
LEFT OUTER JOIN I_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder -- association [0..1]
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_OrderInternalID AS _OrderInternalID ON OrderInternalID = _OrderInternalID.OrderInternalID -- association [0..1]
LEFT OUTER JOIN I_SalesOperationsPlanningOrder AS _SalesOperationsPlanningOrder ON SalesOperationsPlanningOrder= _SalesOperationsPlanningOrder.SalesOperationsPlanningOrder -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup -- association [0..1]
LEFT OUTER JOIN I_BillOfOperations AS _BillOfOperations ON BillOfOperationsType = _BillOfOperations.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup AND BillOfOperations = _BillOfOperations.BillOfOperationsVariant -- association [0..1]
LEFT OUTER JOIN I_SchedulingType AS _SchedulingType ON SchedulingType = _SchedulingType.SchedulingType -- association [0..1]
LEFT OUTER JOIN I_CapacityRequirementItem AS _CapacityRequirementItem ON CapacityRequirement = _CapacityRequirementItem.CapacityRequirement -- association [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