I_CapacityRequirement

DDL: I_CAPACITYREQUIREMENT SQL: IPPCAPRQMT Type: view BASIC

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

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesAnalytical Dimension, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageManufacturing 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

Data Sources (1)

SourceAliasJoin Type
kbko kbko from

Associations (10)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;