P_MatlStkPerdsInMonth

DDL: P_MATLSTKPERDSINMONTH Type: view_entity COMPOSITE Package: ODATA_MM_IM_SLONOMOMAT

Periods in months

P_MatlStkPerdsInMonth is a Composite CDS View that provides data about "Periods in months" in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, I_SAPClient) and exposes 4 fields with key fields CalendarYear, CalendarMonth. Part of development package ODATA_MM_IM_SLONOMOMAT.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate cd inner
I_SAPClient sc from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CalendarYear I_CalendarDate CalendarYear
KEY CalendarMonth I_CalendarDate CalendarMonth
StartDate
EndDate
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@VDM.private: true
@VDM.viewType: #COMPOSITE

define view entity P_MatlStkPerdsInMonth
  as select from I_SAPClient as sc
   inner join I_CalendarDate as cd on sc.LogicalSystem =  '' //dummy "on" condition

                                  or sc.LogicalSystem <> ''
  
{
  key cd.CalendarYear,
  key cd.CalendarMonth, 
  min(cd.CalendarDate) as StartDate,
  max(cd.CalendarDate) as EndDate
 
}
  group by cd.CalendarYear,
           cd.CalendarMonth