I_WorkCenterCapOverviewTP

DDL: I_WORKCENTERCAPOVERVIEWTP Type: view_entity TRANSACTIONAL Package: PPH_VDM_CAP_EVAL

Work Center Capacity Overview

I_WorkCenterCapOverviewTP is a Transactional CDS View that provides data about "Work Center Capacity Overview" in SAP S/4HANA. It reads from 1 data source (I_WrkCtrCapByAreaOfRespy) and exposes 16 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID. It has 2 associations to related views. Part of development package PPH_VDM_CAP_EVAL.

Data Sources (1)

SourceAliasJoin Type
I_WrkCtrCapByAreaOfRespy _WorkCenterAOR from

Associations (2)

CardinalityTargetAliasCondition
[1..*] I_WrkCtrAvailableCapacityTP _availableCapacity $projection.WorkCenterInternalID = _availableCapacity.WorkCenterInternalID and $projection.WorkCenterTypeCode = _availableCapacity.WorkCenterTypeCode and $projection.CapacityCategoryAllocation = _availableCapacity.CapacityCategoryAllocation and $projection.CapacityInternalID = _availableCapacity.CapacityInternalID
[1..*] I_WrkCtrCapShiftIntervalTP _availableInterval $projection.WorkCenterInternalID = _availableInterval.WorkCenterInternalID and $projection.WorkCenterTypeCode = _availableInterval.WorkCenterTypeCode and $projection.CapacityCategoryAllocation = _availableInterval.CapacityCategoryAllocation and $projection.CapacityInternalID = _availableInterval.CapacityInternalID

Annotations (15)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.writeDraftPersistence CFSWCCAPOVW_D view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.entityChangeStateId CapacityLastChangeDateTime view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Work Center Capacity Overview view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID I_WrkCtrCapByAreaOfRespy WorkCenterInternalID Work Center
KEY WorkCenterTypeCode I_WrkCtrCapByAreaOfRespy WorkCenterTypeCode Object Type
KEY CapacityCategoryAllocation I_WrkCtrCapByAreaOfRespy CapacityCategoryAllocation
KEY CapacityInternalID I_WrkCtrCapByAreaOfRespy CapacityInternalID Capacity ID
LastChangeDateTime Timestamp
Plant Plant Valuation Area
WorkCenter WorkCenter Work Center
CapacityCategoryCode CapacityCategoryCode
Capacity Capacity Engine Capacity
CapacityActiveVersion I_WrkCtrCapByAreaOfRespy CapacityActiveVersion
WorkCenterResponsible I_WrkCtrCapByAreaOfRespy WorkCenterResponsible
ShiftTableHasChanged
CapacityLastChangeDateTime CapacityLastChangeDateTime
AreaOfRespyUserPreference I_WrkCtrCapByAreaOfRespy AreaOfRespyUserPreference
_availableCapacity _availableCapacity
_availableInterval _availableInterval

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_WorkCenterCapOverviewTP.
-- 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.

CREATE VIEW I_WorkCenterCapOverviewTP AS
SELECT
  _WorkCenterAOR.WorkCenterInternalID AS WorkCenterInternalID,
  _WorkCenterAOR.WorkCenterTypeCode AS WorkCenterTypeCode,
  _WorkCenterAOR.CapacityCategoryAllocation AS CapacityCategoryAllocation,
  _WorkCenterAOR.CapacityInternalID AS CapacityInternalID,
  cast (LastChangeDateTime as dec15) AS LastChangeDateTime,
  Plant,
  WorkCenter,
  CapacityCategoryCode,
  Capacity,
  _WorkCenterAOR.CapacityActiveVersion AS CapacityActiveVersion,
  _WorkCenterAOR.WorkCenterResponsible AS WorkCenterResponsible,
  cast('X' as boolean) AS ShiftTableHasChanged,
  CapacityLastChangeDateTime,
  _WorkCenterAOR.AreaOfRespyUserPreference AS AreaOfRespyUserPreference
FROM I_WrkCtrCapByAreaOfRespy AS _WorkCenterAOR
LEFT OUTER JOIN I_WrkCtrAvailableCapacityTP AS _availableCapacity ON WorkCenterInternalID = _availableCapacity.WorkCenterInternalID AND WorkCenterTypeCode = _availableCapacity.WorkCenterTypeCode AND CapacityCategoryAllocation = _availableCapacity.CapacityCategoryAllocation AND CapacityInternalID = _availableCapacity.CapacityInternalID  -- association [1..*]
LEFT OUTER JOIN I_WrkCtrCapShiftIntervalTP AS _availableInterval ON WorkCenterInternalID = _availableInterval.WorkCenterInternalID AND WorkCenterTypeCode = _availableInterval.WorkCenterTypeCode AND CapacityCategoryAllocation = _availableInterval.CapacityCategoryAllocation AND CapacityInternalID = _availableInterval.CapacityInternalID  -- association [1..*]
;