P_MATLSTKPERDSINMONTH

CDS View

P_MATLSTKPERDSINMONTH is a CDS View in S/4HANA. 7 CDS views read from this table.

CDS Views using this table (7)

ViewTypeJoinVDMDescription
P_MatlStkPerdsInMonthRef view from COMPOSITE
P_SlowMoMatPredConsSum view from COMPOSITE
P_SlowMoMatPredKeyDate view from COMPOSITE
P_SLOWMOMATPREDSTOCKSUM view from COMPOSITE
P_SlowMoMatPredSysDate view from COMPOSITE
P_SlowMoMatPrMoConsSum view from COMPOSITE
P_SlowMoMatPrMoStockSum view from COMPOSITE
@AbapCatalog.sqlViewName: 'PMATSTOCKPERMON'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.private: true
@VDM.viewType: #COMPOSITE

define view 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