N_CapacityRequirementItemCap

DDL: N_CAPACITYREQUIREMENTITEMCAP SQL: NPPCAPRQMTITMCAP Type: view

Capacity Requirement Item Capacity Aux

N_CapacityRequirementItemCap is a CDS View that provides data about "Capacity Requirement Item Capacity Aux" in SAP S/4HANA. It reads from 3 data sources (I_WorkCenter, I_WorkCenterText, kbed) and exposes 14 fields with key fields CapacityRequirement, CapacityRequirementItem, CapacityRqmtItemCapacity. It has 3 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_WorkCenter _WorkCenter left_outer
I_WorkCenterText _WorkCenterText left_outer
kbed kbed from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CapacityRequirement _CapacityRequirement $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
[1..1] I_CapacityRequirementItem _CapacityRequirementItem $projection.CapacityRequirement = _CapacityRequirementItem.CapacityRequirement and $projection.CapacityRequirementItem = _CapacityRequirementItem.CapacityRequirementItem
[1..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName NPPCAPRQMTITMCAP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey CapacityRqmtItemCapacity view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.auxiliaryEntity.for.entity I_CapacityRequirementItemCap view
EndUserText.label Capacity Requirement Item Capacity Aux view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CapacityRequirement kbed bedid Id number
KEY CapacityRequirementItem
KEY CapacityRqmtItemCapacity
WorkCenterInternalID kbed arbid WorkCtrGp plan.
WorkCenterTypeCode
PlannedOrder kbed plnum Planned Order
OrderInternalID
WorkCenter I_WorkCenter WorkCenter Work Center
WorkCenterText I_WorkCenterText WorkCenterText Work Center Text
Plant I_WorkCenter Plant Valuation Area
WorkCenterCategoryCode I_WorkCenter WorkCenterCategoryCode Work Center Category
_CapacityRequirement _CapacityRequirement
_CapacityRequirementItem _CapacityRequirementItem
_WorkCenterType _WorkCenterType

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 N_CapacityRequirementItemCap.
-- 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: NPPCAPRQMTITMCAP

CREATE VIEW N_CapacityRequirementItemCap AS
SELECT
  kbed.bedid AS CapacityRequirement,
  cast(kbed.bedzl as pph_bedzl preserving type) AS CapacityRequirementItem,
  cast(kbed.canum as pph_canum preserving type) AS CapacityRqmtItemCapacity,
  kbed.arbid AS WorkCenterInternalID,
  'A' AS WorkCenterTypeCode,
  kbed.plnum AS PlannedOrder,
  cast(kbed.aufpl as pph_aufpl preserving type) AS OrderInternalID,
  _WorkCenter.WorkCenter AS WorkCenter,
  _WorkCenterText.WorkCenterText AS WorkCenterText,
  _WorkCenter.Plant AS Plant,
  _WorkCenter.WorkCenterCategoryCode AS WorkCenterCategoryCode
FROM kbed
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkCenterText AS _WorkCenterText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CapacityRequirement AS _CapacityRequirement ON CapacityRequirement = _CapacityRequirement.CapacityRequirement  -- association [1..1]
LEFT OUTER JOIN I_CapacityRequirementItem AS _CapacityRequirementItem ON CapacityRequirement = _CapacityRequirementItem.CapacityRequirement AND CapacityRequirementItem = _CapacityRequirementItem.CapacityRequirementItem  -- association [1..1]
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode  -- association [1..1]
;