A_SupplyProtectionTimeBucket_2

DDL: A_SUPPLYPROTECTIONTIMEBUCKET_2 Type: view_entity CONSUMPTION

Time Bucket

A_SupplyProtectionTimeBucket_2 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_2).

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionTimeBucketTP I_SupplyProtectionTimeBucketTP projection

Annotations (10)

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 #MANDATORY view
OData.entityType.name A_SupplyProtectionTimeBucket_Type view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Time Bucket view

OData Services (1)

ServiceBindingVersionContractRelease
API_SUPAVAILYPROTPLAN_2

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: #MANDATORY
@OData.entityType.name: 'A_SupplyProtectionTimeBucket_Type'
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Time Bucket'
define view entity A_SupplyProtectionTimeBucket_2
  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_2,
      _SupplyProtectionTP      : redirected to A_SupplyProtection_2
}