A_SupplyProtection_2

DDL: A_SUPPLYPROTECTION_2 Type: view_entity CONSUMPTION

Supply Availability Protection Plan

A_SupplyProtection_2 is a Consumption CDS View that provides data about "Supply Availability Protection Plan" in SAP S/4HANA. It reads from 1 data source (I_SupplyProtectionTP) and exposes 43 fields with key field SupplyProtectionUUID.

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionTP I_SupplyProtectionTP projection

Annotations (15)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.representativeKey SupplyProtectionUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix ASU view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.quota.maximumFields 204 view
AbapCatalog.extensibility.quota.maximumBytes 2040 view
AccessControl.authorizationCheck #MANDATORY view
OData.entityType.name A_SupplyProtection_Type view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Supply Availability Protection Plan view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionUUID SupplyProtectionUUID
SupplyProtectionName SupplyProtectionName
Material Material
MaterialNamelocalized
Plant Plant
PlantName _Plant PlantName
SupProtLifecycleStatus SupProtLifecycleStatus
SupProtLifecycleStatusTextlocalized
SupProtPlanningPeriodType SupProtPlanningPeriodType
SupProtPlanningPeriodTypeTextlocalized
SupProtPlanningPeriodStartDate SupProtPlanningPeriodStartDate
SupProtPlanningPeriodEndDate SupProtPlanningPeriodEndDate
SupProtIsPlanningContextSlsOrd SupProtIsPlanningContextSlsOrd
SupProtIsPlanningContextSTO SupProtIsPlanningContextSTO
SupProtCoreCharc01Name SupProtCoreCharc01Name
CoreCharc01CtlgPathIntID CoreCharc01CtlgPathIntID
SupProtCoreCharc01Text SupProtCoreCharc01Text
SupProtCoreCharc01ValueID SupProtCoreCharc01ValueID
SupProtCoreCharc02Name SupProtCoreCharc02Name
CoreCharc02CtlgPathIntID CoreCharc02CtlgPathIntID
SupProtCoreCharc02Text SupProtCoreCharc02Text
SupProtCoreCharc02ValueID SupProtCoreCharc02ValueID
UnitOfMeasure UnitOfMeasure
SupProtProtectedQuantity
SupProtConsumedQuantity
SupProtRemainingProtectedQty
CreatedByUser CreatedByUser
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangeDateTime LastChangeDateTime
CharcValAuthznGroup CharcValAuthznGroup
SupProtAutomActivationIsActive SupProtAutomActivationIsActive
SupProtAutomActivationDate SupProtAutomActivationDate
SupProtActivationDate SupProtActivationDate
SupProtCnsmpnDateTimeType SupProtCnsmpnDateTimeType
SupProtCnsmpnDateTimeTypeTextlocalized
SupProtSelfRestrictionType SupProtSelfRestrictionType
SupProtSelfRestrictionTypeTextlocalized
SupProtPlngContextIsConsistent SupProtPlngContextIsConsistent
StorageLocation StorageLocation
StorageLocationName _StorageLocation StorageLocationName
SupProtPlanningLevel SupProtPlanningLevel
SupProtPlanningLevelTextlocalized
@VDM: {
  viewType: #CONSUMPTION,
  lifecycle.contract.type: #PUBLIC_REMOTE_API,
  usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
}
@ObjectModel: {
   representativeKey: 'SupplyProtectionUUID',
   usageType: {
     serviceQuality: #C,
     sizeCategory:   #L,
     dataClass:      #MIXED
   }
}

@AbapCatalog.extensibility: {
  extensible: true,
  elementSuffix: 'ASU',
  allowNewDatasources: false,
  dataSources: ['SupplyProtection'],
  quota: {
    maximumFields: 204,
    maximumBytes: 2040
  }
}

@AccessControl.authorizationCheck: #MANDATORY
@OData.entityType.name: 'A_SupplyProtection_Type'
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Supply Availability Protection Plan'
define root view entity A_SupplyProtection_2
  provider contract transactional_query
  as projection on I_SupplyProtectionTP as SupplyProtection
{
  key SupplyProtectionUUID,
      SupplyProtectionName,
      Material,
      _MaterialText.MaterialName                                  : localized,
      Plant,
      _Plant.PlantName,
      SupProtLifecycleStatus,
      _SupProtLifecycleStatusText.SupProtLifecycleStatusText      : localized,
      SupProtPlanningPeriodType,
      _SupProtPlanningPeriodTypeT.SupProtPlanningPeriodTypeText   : localized,
      SupProtPlanningPeriodStartDate,
      SupProtPlanningPeriodEndDate,
      SupProtIsPlanningContextSlsOrd,
      SupProtIsPlanningContextSTO,

      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_CHARNAME'
      SupProtCoreCharc01Name,
      CoreCharc01CtlgPathIntID,
      SupProtCoreCharc01Text,
      SupProtCoreCharc01ValueID,

      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_CHARNAME'
      SupProtCoreCharc02Name,
      CoreCharc02CtlgPathIntID,
      SupProtCoreCharc02Text,
      SupProtCoreCharc02ValueID,

      @Semantics.unitOfMeasure: true
      UnitOfMeasure,

      @Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_QUANTITY'
      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_QUANTITY'
      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_QUANTITY'
      cast(SupProtRemainingProtectedQty as sup_remaining_quantity preserving type ) as SupProtRemainingProtectedQty,

      CreatedByUser,
      CreationDateTime,
      LastChangedByUser,
      LastChangeDateTime,
      CharcValAuthznGroup, // required for authorization check


      SupProtAutomActivationIsActive,
      SupProtAutomActivationDate,

      SupProtActivationDate,

      SupProtCnsmpnDateTimeType,
      _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeTypeText   : localized,

      SupProtSelfRestrictionType,
      _SupProtSelfRestrictionTypeT.SupProtSelfRestrictionTypeText : localized,

      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_ATP_SUP_SADL_EXIT_PLNG_CONS'
      SupProtPlngContextIsConsistent,

      StorageLocation,
      _StorageLocation.StorageLocationName,
      SupProtPlanningLevel,
      _SupProtPlanningLevelText.SupProtPlanningLevelText          : localized,

      /* Associations */
      _SupplyProtectionGroupTP     : redirected to composition child A_SupplyProtectionGroup_2,
      _SupProtCharacteristicTP     : redirected to composition child A_SupProtCharacteristic_2,
      _SupProtFlexibleTimeBucketTP : redirected to composition child A_SupProtFlexibleTimeBucket_2
}
where
  SupplyProtectionIsBlocked = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALTEXT",
"I_PLANT",
"I_STORAGELOCATION",
"I_SUPPLYPROTECTIONTP",
"I_SUPPROTCNSMPNDATETIMETYPET",
"I_SUPPROTLIFECYCLESTATUSTEXT",
"I_SUPPROTPLANNINGLEVELTEXT",
"I_SUPPROTPLANNINGPERIODTYPET",
"I_SUPPROTSELFRESTRICTIONTYPET"
],
"ASSOCIATED":
[
"A_SUPPLYPROTECTIONGROUP_2",
"A_SUPPROTCHARACTERISTIC_2",
"A_SUPPROTFLEXIBLETIMEBUCKET_2",
"I_SUPPLYPROTECTIONGROUPTP",
"I_SUPPROTCHARACTERISTICTP",
"I_SUPPROTFLEXIBLETIMEBUCKETTP"
],
"BASE":
[
"I_SUPPLYPROTECTIONTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/