I_ARunSupProtCnsmpn
Supply Protection Consumption Details
I_ARunSupProtCnsmpn is a Basic CDS View that provides data about "Supply Protection Consumption Details" in SAP S/4HANA. It reads from 2 data sources (I_SupDmndMaterialPlant, sup_object) and exposes 18 fields with key field SupProtPermConsumptionUUID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SupDmndMaterialPlant | MaterialPlant | inner |
| sup_object | SupProt | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | IARUNSUPPROTCNS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Supply Protection Consumption Details | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupProtPermConsumptionUUID | SupProtCnsmpn | SupProtPermConsumptionUUID | |
| SupProtTimeBucketUUID | SupProtTimeBucket | SupProtTimeBucketUUID | ||
| SupplyProtectionName | sup_object | name | ||
| Material | sup_object | material | ||
| Plant | sup_object | plant | ||
| RequirementType | ||||
| clientNULLasvdm_v_start_dateasStartDate | ||||
| clientNULLasvdm_v_end_dateasEndDate | ||||
| BaseUnit | SupProtCnsmpn | SupProtConsumedQuantityUnit | ||
| SupProtConsumedQuantity | SupProtCnsmpn | SupProtConsumedQuantity | ||
| SupProtAssignedDocument | SupProtAssignedDocument | Requirement Document Number | ||
| SupProtAssignedDocumentItem | SupProtAssignedDocumentItem | Requirement Document Item | ||
| SupplyProtectionDocumentType | SupplyProtectionDocumentType | Requirement Type | ||
| MaterialGroup | MaterialGroup | |||
| MaterialType | MaterialType | |||
| CrossPlantConfigurableProduct | CrossPlantConfigurableProduct | |||
| SupplyProtectionUUID | sup_object | uuid | ||
| SupplyProtectionGroupUUID | SupProtGroup | uuid |
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType: #BASIC
}
@AccessControl: {
authorizationCheck: #NOT_REQUIRED,
personalData.blocking: #NOT_REQUIRED
}
@AbapCatalog: {
sqlViewName: 'IARUNSUPPROTCNS',
compiler.compareFilter: true,
preserveKey: true
}
@ObjectModel: {
usageType: {
dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #L
}
}
@EndUserText.label: 'Supply Protection Consumption Details'
define view I_ARunSupProtCnsmpn
as select from sup_object as SupProt
inner join I_SupDmndMaterialPlant as MaterialPlant on SupProt.material = MaterialPlant.Material
and SupProt.plant = MaterialPlant.Plant
left outer to many join sup_cvc as SupProtGroup on SupProt.uuid = SupProtGroup.supobjectuuid
left outer to many join I_SupplyProtectionTimeBucket as SupProtTimeBucket on SupProtGroup.uuid = SupProtTimeBucket.SupplyProtectionGroupUUID
left outer to many join I_SupProtPermConsumption as SupProtCnsmpn on SupProtTimeBucket.SupProtTimeBucketUUID = SupProtCnsmpn.SupProtTimeBucketUUID
{
key SupProtCnsmpn.SupProtPermConsumptionUUID,
SupProtTimeBucket.SupProtTimeBucketUUID,
SupProt.name as SupplyProtectionName,
SupProt.material as Material,
SupProt.plant as Plant,
'SP' as RequirementType,
cast(tstmp_to_dats( SupProtTimeBucket.SupProtPeriodStartUTCDateTime, 'UTC', $session.client, 'NULL' )
as vdm_v_start_date) as RequestedDeliveryDate,
cast(tstmp_to_dats( SupProtTimeBucket.SupProtPeriodStartUTCDateTime, 'UTC', $session.client, 'NULL' )
as vdm_v_start_date) as ProductAvailabilityDate,
cast(tstmp_to_dats( SupProtTimeBucket.SupProtPeriodStartUTCDateTime, 'UTC', $session.client, 'NULL' )
as vdm_v_start_date) as StartDate,
cast(tstmp_to_dats( SupProtTimeBucket.SupProtPeriodEndUTCDateTime,'UTC', $session.client, 'NULL' )
as vdm_v_end_date) as EndDate,
@Semantics.unitOfMeasure: true
SupProtCnsmpn.SupProtConsumedQuantityUnit as BaseUnit,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
SupProtCnsmpn.SupProtConsumedQuantity,
@EndUserText.label: 'Requirement Document Number'
SupProtAssignedDocument,
@EndUserText.label: 'Requirement Document Item'
SupProtAssignedDocumentItem,
@EndUserText.label: 'Requirement Type'
SupplyProtectionDocumentType,
MaterialGroup,
MaterialType,
CrossPlantConfigurableProduct,
SupProt.uuid as SupplyProtectionUUID,
SupProtGroup.uuid as SupplyProtectionGroupUUID
}
where
SupProt.status <> '03' -- Deactivated
and SupProtCnsmpn.SupplyProtectionDocumentType is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SUPDMNDMATERIALPLANT",
"I_SUPPLYPROTECTIONTIMEBUCKET",
"I_SUPPROTPERMCONSUMPTION",
"SUP_CVC",
"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