I_WorkCenterCapacityText

DDL: I_WORKCENTERCAPACITYTEXT Type: view_entity COMPOSITE Package: ODATA_PP_WORKCENTER_API

Capacity Description

I_WorkCenterCapacityText is a Composite CDS View that provides data about "Capacity Description" in SAP S/4HANA. It reads from 2 data sources (I_WorkCenterCapacity_2, I_CapacityText) and exposes 6 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID, Language. Part of development package ODATA_PP_WORKCENTER_API.

Data Sources (2)

SourceAliasJoin Type
I_WorkCenterCapacity_2 _Capacity inner
I_CapacityText _CapText from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Capacity Description view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID I_WorkCenterCapacity_2 WorkCenterInternalID
KEY WorkCenterTypeCode I_WorkCenterCapacity_2 WorkCenterTypeCode
KEY CapacityCategoryAllocation I_WorkCenterCapacity_2 CapacityCategoryAllocation
KEY CapacityInternalID I_CapacityText CapacityInternalID
KEY Language I_CapacityText Language
CapacityText I_CapacityText CapacityText
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Capacity Description'
@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #M, dataClass: #MASTER }
@VDM.viewType: #COMPOSITE
define view entity I_WorkCenterCapacityText
  as select from I_CapacityText         as _CapText
    inner join   I_WorkCenterCapacity_2 as _Capacity on _CapText.CapacityInternalID = _Capacity.CapacityInternalID
{
  key _Capacity.WorkCenterInternalID                  as WorkCenterInternalID,
  key _Capacity.WorkCenterTypeCode                    as WorkCenterTypeCode,
  key _Capacity.CapacityCategoryAllocation            as CapacityCategoryAllocation,
  key _CapText.CapacityInternalID                     as CapacityInternalID,
  key _CapText.Language,

      @Semantics.text: true
      _CapText.CapacityText,

      case when _Capacity.CapacityLastChangeDateTime is null then
        cast('20190101120000' as kap_lastchange_datetime)
        else _Capacity.CapacityLastChangeDateTime end as CapacityLastChangeDateTime

}