A_SupplyProtectionTimeBucket

DDL: A_SUPPLYPROTECTIONTIMEBUCKET Type: view_entity CONSUMPTION

Time Bucket

A_SupplyProtectionTimeBucket is a Consumption CDS View that provides data about "Time Bucket" in SAP S/4HANA. It reads from 1 data source (I_SupplyProtectionTimeBucketTP) and exposes 13 fields with key field SupProtTimeBucketUUID. It is exposed through 1 OData service (API_SUPAVAILYPROTPLAN).

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionTimeBucketTP I_SupplyProtectionTimeBucketTP projection

Annotations (9)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.representativeKey SupProtTimeBucketUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Time Bucket view

OData Services (1)

ServiceBindingVersionContractRelease
API_SUPAVAILYPROTPLAN API_SUPAVAILYPROTPLAN V4 C2 C1

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY SupProtTimeBucketUUID SupProtTimeBucketUUID
SupplyProtectionUUID SupplyProtectionUUID
SupplyProtectionGroupUUID SupplyProtectionGroupUUID
SupProtPeriodStartUTCDateTime SupProtPeriodStartUTCDateTime
SupProtPeriodEndUTCDateTime SupProtPeriodEndUTCDateTime
UnitOfMeasure UnitOfMeasure
SupProtProtectedQuantity
SupProtConsumedQuantity
SupProtRemainingProtectedQty
CreatedByUser CreatedByUser
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangeDateTime LastChangeDateTime
@VDM: {
  viewType: #CONSUMPTION,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@ObjectModel: {
   representativeKey: 'SupProtTimeBucketUUID',
   usageType: {
     serviceQuality: #C,
     sizeCategory:   #XL,
     dataClass:      #MIXED
   }
}
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Time Bucket'
define view entity A_SupplyProtectionTimeBucket
  as projection on I_SupplyProtectionTimeBucketTP

{
  key SupProtTimeBucketUUID,
      SupplyProtectionUUID,
      SupplyProtectionGroupUUID,
      SupProtPeriodStartUTCDateTime,
      SupProtPeriodEndUTCDateTime,

      @Semantics.unitOfMeasure: true
      UnitOfMeasure,

      @Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
      cast(SupProtProtectedQuantity as sup_protected_quantity preserving type) as SupProtProtectedQuantity,

      @Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_QTY_CON'
      cast(SupProtConsumedQuantity as sup_consumed_quantity preserving type)   as SupProtConsumedQuantity,
      
      @Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_QTY_CON'
      cast(SupProtRemainingProtectedQty as sup_remaining_quantity  preserving type ) as SupProtRemainingProtectedQty,  

      CreatedByUser,
      CreationDateTime,
      LastChangedByUser,
      LastChangeDateTime,

      /* Associations */
      _SupplyProtectionGroupTP : redirected to parent A_SupplyProtectionGroup,
      _SupplyProtectionTP      : redirected to A_SupplyProtection
}