I_SupplyProtection
Supply Protection
I_SupplyProtection is a Basic CDS View that provides data about "Supply Protection" in SAP S/4HANA. It reads from 1 data source (sup_object) and exposes 32 fields with key field SupplyProtectionUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| sup_object | sup_object | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.compositionRoot | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Supply Protection | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupplyProtectionUUID | uuid | ||
| Material | material | |||
| Plant | plant | |||
| SupplyProtectionName | name | |||
| SupProtLifecycleStatus | status | |||
| SupProtPlanningPeriodType | planningperiodtype | |||
| SupProtPlanningPeriodStartDate | planningperiodstart | |||
| SupProtPlanningPeriodEndDate | planningperiodend | |||
| SupProtCoreCharc01CtlgPathUUID | corecharc01catalogpathuuid | |||
| CoreCharc01CtlgPathIntID | corecharc01catalogpathid | |||
| SupProtCoreCharc01ValueID | corecharc01value | |||
| SupProtCoreCharc02CtlgPathUUID | corecharc02catalogpathuuid | |||
| CoreCharc02CtlgPathIntID | corecharc02catalogpathid | |||
| SupProtCoreCharc02ValueID | corecharc02value | |||
| SupProtIsPlanningContextSlsOrd | planningcontextso | |||
| SupProtIsPlanningContextSTO | planningcontextsto | |||
| SupProtCharcCatalogType | catalogtype | |||
| CreationDateTime | creationdatetime | |||
| CreatedByUser | createdbyuser | |||
| LastChangeDateTime | lastchangedatetime | |||
| LastChangedByUser | lastchangedbyuser | |||
| CharcValAuthznGroup | charcvalauthzngroup | |||
| DraftLastChangedDateTime | last_changed_at | |||
| SupplyProtectionIsBlocked | blocked | |||
| SupProtAutomActivationIsActive | autoactivation | |||
| SupProtAutomActivationDate | autoactivationdate | |||
| SupProtActivationDate | activationdate | |||
| UnitOfMeasure | ||||
| SupProtProtectedQuantity | ||||
| SupProtConsumedQuantity | ||||
| SupProtRemainingProtectedQty | ||||
| StorageLocation | storagelocation |
@VDM: { viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API }
@AccessControl.authorizationCheck: #MANDATORY
@ObjectModel: { usageType: { serviceQuality: #B,
sizeCategory: #L,
dataClass: #MASTER },
compositionRoot: true,
supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ] }
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Supply Protection'
define root view entity I_SupplyProtection
as select from sup_object
{
key uuid as SupplyProtectionUUID,
material as Material,
plant as Plant,
name as SupplyProtectionName,
status as SupProtLifecycleStatus,
planningperiodtype as SupProtPlanningPeriodType,
planningperiodstart as SupProtPlanningPeriodStartDate,
planningperiodend as SupProtPlanningPeriodEndDate,
corecharc01catalogpathuuid as SupProtCoreCharc01CtlgPathUUID,
corecharc01catalogpathid as CoreCharc01CtlgPathIntID,
corecharc01value as SupProtCoreCharc01ValueID,
corecharc02catalogpathuuid as SupProtCoreCharc02CtlgPathUUID,
corecharc02catalogpathid as CoreCharc02CtlgPathIntID,
corecharc02value as SupProtCoreCharc02ValueID,
planningcontextso as SupProtIsPlanningContextSlsOrd,
planningcontextsto as SupProtIsPlanningContextSTO,
catalogtype as SupProtCharcCatalogType,
creationdatetime as CreationDateTime,
createdbyuser as CreatedByUser,
lastchangedatetime as LastChangeDateTime,
lastchangedbyuser as LastChangedByUser,
charcvalauthzngroup as CharcValAuthznGroup,
last_changed_at as DraftLastChangedDateTime,
blocked as SupplyProtectionIsBlocked,
autoactivation as SupProtAutomActivationIsActive,
autoactivationdate as SupProtAutomActivationDate,
activationdate as SupProtActivationDate,
case consumptiondatetype
when '' then '01'
else consumptiondatetype
end as SupProtCnsmpnDateTimeType,
case selfrestriction
when '' then '01'
else selfrestriction
end as SupProtSelfRestrictionType,
cast('' as abap.unit(3) ) as UnitOfMeasure,
@Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
cast(0 as abap.quan(15,3) ) as SupProtProtectedQuantity,
@Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
cast(0 as abap.quan(15,3) ) as SupProtConsumedQuantity,
@Semantics.quantity.unitOfMeasure: 'UnitOfMeasure'
cast(0 as abap.quan(15,3) ) as SupProtRemainingProtectedQty,
storagelocation as StorageLocation,
case planninglevel
when '' then '01'
else planninglevel
end as SupProtPlanningLevel
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SUP_OBJECT"
],
"ASSOCIATED":
[],
"BASE":
[],
"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