@AbapCatalog.sqlViewName: 'PSDSPPTDA05A2'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_SPP_TrainingData05A2
as select from P_SPP_TrainingData05A1
{
key YearMonth,
key PartOfMonth,
key SalesOrganization,
key DistributionChannel,
key Division,
key SoldToParty,
key CustomerGroup,
key Material,
key MaterialGroup,
key BillingDocumentType,
count( * ) as CntByPOM,
sum( Amount ) as SumAmtByPOM,
max( Amount ) as MaxAmtByPOM,
min( Amount ) as MinAmtByPOM
}
where PartOfMonth != 3
group by
YearMonth,
PartOfMonth,
SalesOrganization,
DistributionChannel,
Division,
SoldToParty,
CustomerGroup,
Material,
MaterialGroup,
BillingDocumentType
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_SPP_TRAININGDATA05A1"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/