A_SupplyProtectionGroup

DDL: A_SUPPLYPROTECTIONGROUP Type: view_entity CONSUMPTION Package: ATP_SUP_VDM

Protection Group

A_SupplyProtectionGroup is a Consumption CDS View that provides data about "Protection Group" in SAP S/4HANA. It reads from 1 data source (I_SupplyProtectionGroupTP) and exposes 22 fields with key field SupplyProtectionGroupUUID. It is exposed through 1 OData service (API_SUPAVAILYPROTPLAN). Part of development package ATP_SUP_VDM.

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionGroupTP I_SupplyProtectionGroupTP projection

Annotations (10)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.representativeKey SupplyProtectionGroupUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Protection Group view

OData Services (1)

ServiceBindingVersionContractRelease
API_SUPAVAILYPROTPLAN API_SUPAVAILYPROTPLAN V4 C2 C1

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionGroupUUID SupplyProtectionGroupUUID
SupplyProtectionUUID SupplyProtectionUUID
SupProtCharc01ValueID SupProtCharc01ValueID
SupProtCharc02ValueID SupProtCharc02ValueID
SupProtCharc03ValueID SupProtCharc03ValueID
SupProtCharc04ValueID SupProtCharc04ValueID
SupProtCharc05ValueID SupProtCharc05ValueID
SupProtCharc06ValueID SupProtCharc06ValueID
SupProtCharc07ValueID SupProtCharc07ValueID
SupProtCharc08ValueID SupProtCharc08ValueID
SupProtCharc09ValueID SupProtCharc09ValueID
SupProtCharc10ValueID SupProtCharc10ValueID
SupProtGroupPriorityValue SupProtGroupPriorityValue
CreatedByUser CreatedByUser
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangeDateTime LastChangeDateTime
CharcValAuthznGroup CharcValAuthznGroup
UnitOfMeasure UnitOfMeasure
SupProtProtectedQuantity
SupProtConsumedQuantity
SupProtRemainingProtectedQty
@VDM: {
  viewType: #CONSUMPTION,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@ObjectModel: {
   representativeKey: 'SupplyProtectionGroupUUID',
   usageType: {
     serviceQuality: #C,
     sizeCategory:   #XL,
     dataClass:      #MIXED
   }
}
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Protection Group'
define view entity A_SupplyProtectionGroup
  as projection on I_SupplyProtectionGroupTP

{
  key SupplyProtectionGroupUUID,
      SupplyProtectionUUID,
      SupProtCharc01ValueID,
      SupProtCharc02ValueID,
      SupProtCharc03ValueID,
      SupProtCharc04ValueID,
      SupProtCharc05ValueID,
      SupProtCharc06ValueID,
      SupProtCharc07ValueID,
      SupProtCharc08ValueID,
      SupProtCharc09ValueID,
      SupProtCharc10ValueID,
      SupProtGroupPriorityValue,
      CreatedByUser,
      CreationDateTime,
      LastChangedByUser,
      LastChangeDateTime,
      CharcValAuthznGroup, // required for authorization check


      @Semantics.unitOfMeasure: true
      UnitOfMeasure,

      @Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_QTY_GRP'
      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_GRP'
      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_GRP'
      cast(SupProtRemainingProtectedQty as sup_remaining_quantity preserving type ) as SupProtRemainingProtectedQty,
      
      /* Associations */
      _SupplyProtectionTP           : redirected to parent A_SupplyProtection,
      _SupplyProtectionTimeBucketTP : redirected to composition child A_SupplyProtectionTimeBucket

}
where SupplyProtectionGroupIsBlocked = ''