P_SPP_PredictionData06

DDL: P_SPP_PREDICTIONDATA06 SQL: PSDSPPPDA06 Type: view COMPOSITE Package: VDM_SD_PREDICTED_SALES

Prediction Data 06

P_SPP_PredictionData06 is a Composite CDS View that provides data about "Prediction Data 06" in SAP S/4HANA. It reads from 5 data sources (I_Customer, P_SPP_PredictionData00, P_SPP_PredictionData05A2, I_Product, I_SalesOrganization) and exposes 30 fields with key fields YearMonth, PartOfMonth, SalesOrganization, DistributionChannel, Division. Part of development package VDM_SD_PREDICTED_SALES.

Data Sources (5)

SourceAliasJoin Type
I_Customer C left_outer
P_SPP_PredictionData00 Data00 from
P_SPP_PredictionData05A2 Data05A2 left_outer
I_Product P left_outer
I_SalesOrganization SO left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSDSPPPDA06 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY YearMonth P_SPP_PredictionData00 YearMonth
KEY PartOfMonth P_SPP_PredictionData00 PartOfMonth
KEY SalesOrganization P_SPP_PredictionData00 SalesOrganization
KEY DistributionChannel P_SPP_PredictionData00 DistributionChannel
KEY Division P_SPP_PredictionData00 Division
KEY SoldToParty P_SPP_PredictionData00 SoldToParty
KEY CustomerGroup P_SPP_PredictionData00 CustomerGroup
KEY Material P_SPP_PredictionData00 Material
KEY MaterialGroup P_SPP_PredictionData00 MaterialGroup
KEY BillingDocumentType P_SPP_PredictionData00 BillingDocumentType
YearQuarter YearQuarter
PartOfQuarter PartOfQuarter
CalendarWeek CalendarWeek
CalendarMonth CalendarMonth
CalendarQuarter CalendarQuarter
Previous1YearMonth Previous1YearMonth
Previous1YearQuarter Previous1YearQuarter
CustomerClassification CustomerClassification
CustomerAccountGroup CustomerAccountGroup
IsOneTimeAccount IsOneTimeAccount
IsBusinessPurposeCompleted IsBusinessPurposeCompleted
Industry Industry
Country Country
CityName CityName
ProductType ProductType
CompanyCode CompanyCode
CntByPOM CntByPOM
SumAmtByPOM SumAmtByPOM
MaxAmtByPOM MaxAmtByPOM
MinAmtByPOM MinAmtByPOM
@AbapCatalog.sqlViewName: 'PSDSPPPDA06'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE

define view P_SPP_PredictionData06
as select from P_SPP_PredictionData00 as Data00
left outer join P_SPP_PredictionData05A2 as Data05A2
  on Data00.YearMonth = Data05A2.YearMonth
    and Data00.PartOfMonth = Data05A2.PartOfMonth
    and Data00.SalesOrganization = Data05A2.SalesOrganization
    and Data00.DistributionChannel = Data05A2.DistributionChannel
    and Data00.Division = Data05A2.Division
    and Data00.SoldToParty = Data05A2.SoldToParty
    and Data00.CustomerGroup = Data05A2.CustomerGroup
    and Data00.Material = Data05A2.Material
    and Data00.MaterialGroup = Data05A2.MaterialGroup
    and Data00.BillingDocumentType = Data05A2.BillingDocumentType
left outer join I_Customer as C
  on Data00.SoldToParty = C.Customer
left outer join I_Product as P
  on Data00.Material = P.Product
left outer join I_SalesOrganization as SO
  on Data00.SalesOrganization = SO.SalesOrganization
{
  key Data00.YearMonth,
  key Data00.PartOfMonth,
  key Data00.SalesOrganization,
  key Data00.DistributionChannel,
  key Data00.Division,
  key Data00.SoldToParty,
  key Data00.CustomerGroup,
  key Data00.Material,
  key Data00.MaterialGroup,
  key Data00.BillingDocumentType,
  
  YearQuarter,
  PartOfQuarter,
  
  CalendarWeek,
  CalendarMonth,
  CalendarQuarter,
  
  Previous1YearMonth,
  Previous1YearQuarter,
 
  CustomerClassification,
  CustomerAccountGroup,
  IsOneTimeAccount,
  IsBusinessPurposeCompleted,
  Industry,
  Country,
  CityName,
  ProductType,
  CompanyCode,
  
  CntByPOM,
  SumAmtByPOM,
  MaxAmtByPOM,
  MinAmtByPOM
}