A_SupplyProtection

DDL: A_SUPPLYPROTECTION Type: view_entity CONSUMPTION

Supply Availability Protection Plan

A_SupplyProtection 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. It is exposed through 1 OData service (API_SUPAVAILYPROTPLAN).

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionTP I_SupplyProtectionTP projection

Annotations (9)

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
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Supply Availability Protection Plan view

OData Services (1)

ServiceBindingVersionContractRelease
API_SUPAVAILYPROTPLAN API_SUPAVAILYPROTPLAN V4 C2 C1

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionUUID SupplyProtectionUUID UUID
SupplyProtectionName SupplyProtectionName
Material Material Vehicle Model
MaterialNamelocalized
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
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 Unit Protected Qty
SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity Consumed Quantity
SupProtRemainingProtectedQty Remaining Protection
CreatedByUser CreatedByUser User Name
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
CharcValAuthznGroup CharcValAuthznGroup Authorization Group
SupProtAutomActivationIsActive SupProtAutomActivationIsActive
SupProtAutomActivationDate SupProtAutomActivationDate
SupProtActivationDate SupProtActivationDate
SupProtCnsmpnDateTimeType SupProtCnsmpnDateTimeType
SupProtCnsmpnDateTimeTypeTextlocalized
SupProtSelfRestrictionType SupProtSelfRestrictionType
SupProtSelfRestrictionTypeTextlocalized
SupProtPlngContextIsConsistent SupProtPlngContextIsConsistent
StorageLocation StorageLocation StorageLocation
StorageLocationName _StorageLocation StorageLocationName Storage Loc. Name
SupProtPlanningLevel SupProtPlanningLevel Planning Level
SupProtPlanningLevelTextlocalized

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view A_SupplyProtection.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW A_SupplyProtection AS
SELECT
  SupplyProtectionUUID,
  SupplyProtectionName,
  Material,
  _MaterialText.MaterialName : localized AS MaterialNamelocalized,
  Plant,
  _Plant.PlantName AS PlantName,
  SupProtLifecycleStatus,
  _SupProtLifecycleStatusText.SupProtLifecycleStatusText : localized AS SupProtLifecycleStatusTextlocalized,
  SupProtPlanningPeriodType,
  _SupProtPlanningPeriodTypeT.SupProtPlanningPeriodTypeText : localized AS SupProtPlanningPeriodTypeTextlocalized,
  SupProtPlanningPeriodStartDate,
  SupProtPlanningPeriodEndDate,
  SupProtIsPlanningContextSlsOrd,
  SupProtIsPlanningContextSTO,
  SupProtCoreCharc01Name,
  CoreCharc01CtlgPathIntID,
  SupProtCoreCharc01Text,
  SupProtCoreCharc01ValueID,
  SupProtCoreCharc02Name,
  CoreCharc02CtlgPathIntID,
  SupProtCoreCharc02Text,
  SupProtCoreCharc02ValueID,
  UnitOfMeasure,
  cast(SupProtProtectedQuantity as sup_protected_quantity preserving type) AS SupProtProtectedQuantity,
  cast(SupProtConsumedQuantity as sup_consumed_quantity preserving type) AS SupProtConsumedQuantity,
  cast(SupProtRemainingProtectedQty as sup_remaining_quantity preserving type ) AS SupProtRemainingProtectedQty,
  CreatedByUser,
  CreationDateTime,
  LastChangedByUser,
  LastChangeDateTime,
  CharcValAuthznGroup,
  SupProtAutomActivationIsActive,
  SupProtAutomActivationDate,
  SupProtActivationDate,
  SupProtCnsmpnDateTimeType,
  _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeTypeText : localized AS SupProtCnsmpnDateTimeTypeTextlocalized,
  SupProtSelfRestrictionType,
  _SupProtSelfRestrictionTypeT.SupProtSelfRestrictionTypeText : localized AS SupProtSelfRestrictionTypeTextlocalized,
  SupProtPlngContextIsConsistent,
  StorageLocation,
  _StorageLocation.StorageLocationName AS StorageLocationName,
  SupProtPlanningLevel,
  _SupProtPlanningLevelText.SupProtPlanningLevelText : localized AS SupProtPlanningLevelTextlocalized
FROM I_SupplyProtectionTP
;