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. It is exposed through 1 OData service (API_SUPAVAILYPROTPLAN).
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 |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| API_SUPAVAILYPROTPLAN | API_SUPAVAILYPROTPLAN | V4 | C2 | C1 |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA