A_SupplyProtection
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SupplyProtectionTP | I_SupplyProtectionTP | projection |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
}
}
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Supply Availability Protection Plan'
define root view entity A_SupplyProtection
provider contract transactional_query
as projection on I_SupplyProtectionTP
{
key SupplyProtectionUUID,
SupplyProtectionName,
Material,
_MaterialText.MaterialName : localized,
Plant,
_Plant.PlantName,
SupProtLifecycleStatus,
_SupProtLifecycleStatusText.SupProtLifecycleStatusText : localized,
SupProtPlanningPeriodType,
_SupProtPlanningPeriodTypeT.SupProtPlanningPeriodTypeText : localized,
SupProtPlanningPeriodStartDate,
SupProtPlanningPeriodEndDate,
SupProtIsPlanningContextSlsOrd,
SupProtIsPlanningContextSTO,
SupProtCoreCharc01Name,
CoreCharc01CtlgPathIntID,
SupProtCoreCharc01Text,
SupProtCoreCharc01ValueID,
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,
_SupProtCharacteristicTP : redirected to composition child A_SupProtCharacteristic,
_SupProtFlexibleTimeBucketTP : redirected to composition child A_SupProtFlexibleTimeBucket
}
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",
"A_SUPPROTCHARACTERISTIC",
"A_SUPPROTFLEXIBLETIMEBUCKET",
"I_SUPPLYPROTECTIONGROUPTP",
"I_SUPPROTCHARACTERISTICTP",
"I_SUPPROTFLEXIBLETIMEBUCKETTP"
],
"BASE":
[
"I_SUPPLYPROTECTIONTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA