P_SPP_PredictionData06

DDL: P_SPP_PREDICTIONDATA06 SQL: PSDSPPPDA06 Type: view COMPOSITE

P_SPP_PredictionData06 is a Composite CDS View 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.

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 Year Month
KEY PartOfMonth P_SPP_PredictionData00 PartOfMonth
KEY SalesOrganization P_SPP_PredictionData00 SalesOrganization Sales Organization
KEY DistributionChannel P_SPP_PredictionData00 DistributionChannel RefDistCh-Cust/Mat.
KEY Division P_SPP_PredictionData00 Division Internal Division ID
KEY SoldToParty P_SPP_PredictionData00 SoldToParty Sold-to Party
KEY CustomerGroup P_SPP_PredictionData00 CustomerGroup Customer Group
KEY Material P_SPP_PredictionData00 Material Vehicle Model
KEY MaterialGroup P_SPP_PredictionData00 MaterialGroup Product Group
KEY BillingDocumentType P_SPP_PredictionData00 BillingDocumentType Billing Type
YearQuarter YearQuarter Year Quarter
PartOfQuarter PartOfQuarter
CalendarWeek CalendarWeek Calendar Week
CalendarMonth CalendarMonth Calendar Month
CalendarQuarter CalendarQuarter Calendar Quarter
Previous1YearMonth Previous1YearMonth
Previous1YearQuarter Previous1YearQuarter
CustomerClassification CustomerClassification Customer Class.
CustomerAccountGroup CustomerAccountGroup Account group
IsOneTimeAccount IsOneTimeAccount One-time acct
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
Industry Industry Industry Sector
Country Country Venue: Ctry/Reg
CityName CityName Name
ProductType ProductType Product Type Group
CompanyCode CompanyCode Receiver Company Code
CntByPOM CntByPOM
SumAmtByPOM SumAmtByPOM
MaxAmtByPOM MaxAmtByPOM
MinAmtByPOM MinAmtByPOM

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_SPP_PredictionData06.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PSDSPPPDA06

CREATE VIEW P_SPP_PredictionData06 AS
SELECT
  Data00.YearMonth AS YearMonth,
  Data00.PartOfMonth AS PartOfMonth,
  Data00.SalesOrganization AS SalesOrganization,
  Data00.DistributionChannel AS DistributionChannel,
  Data00.Division AS Division,
  Data00.SoldToParty AS SoldToParty,
  Data00.CustomerGroup AS CustomerGroup,
  Data00.Material AS Material,
  Data00.MaterialGroup AS MaterialGroup,
  Data00.BillingDocumentType AS BillingDocumentType,
  YearQuarter,
  PartOfQuarter,
  CalendarWeek,
  CalendarMonth,
  CalendarQuarter,
  Previous1YearMonth,
  Previous1YearQuarter,
  CustomerClassification,
  CustomerAccountGroup,
  IsOneTimeAccount,
  IsBusinessPurposeCompleted,
  Industry,
  Country,
  CityName,
  ProductType,
  CompanyCode,
  CntByPOM,
  SumAmtByPOM,
  MaxAmtByPOM,
  MinAmtByPOM
FROM P_SPP_PredictionData00 AS Data00
LEFT OUTER JOIN P_SPP_PredictionData05A2 AS Data05A2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS C ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Product AS P ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesOrganization AS SO ON /* join condition not captured in parsed metadata */
;