P_SPP_TrainingData06

DDL: P_SPP_TRAININGDATA06 SQL: PSDSPPTDA06 Type: view COMPOSITE

P_SPP_TrainingData06 is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_Customer, P_SPP_TrainingData05A2, P_SPP_TrainingDate02, 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_TrainingData05A2 Data05A2 from
P_SPP_TrainingDate02 Date02 left_outer
I_Product P left_outer
I_SalesOrganization SO left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSDSPPTDA06 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_TrainingData05A2 YearMonth Year Month
KEY PartOfMonth P_SPP_TrainingData05A2 PartOfMonth
KEY SalesOrganization P_SPP_TrainingData05A2 SalesOrganization Sales Organization
KEY DistributionChannel P_SPP_TrainingData05A2 DistributionChannel RefDistCh-Cust/Mat.
KEY Division P_SPP_TrainingData05A2 Division Internal Division ID
KEY SoldToParty P_SPP_TrainingData05A2 SoldToParty Sold-to Party
KEY CustomerGroup P_SPP_TrainingData05A2 CustomerGroup Customer Group
KEY Material P_SPP_TrainingData05A2 Material Vehicle Model
KEY MaterialGroup P_SPP_TrainingData05A2 MaterialGroup Product Group
KEY BillingDocumentType P_SPP_TrainingData05A2 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_TrainingData06.
-- 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: PSDSPPTDA06

CREATE VIEW P_SPP_TrainingData06 AS
SELECT
  Data05A2.YearMonth AS YearMonth,
  Data05A2.PartOfMonth AS PartOfMonth,
  Data05A2.SalesOrganization AS SalesOrganization,
  Data05A2.DistributionChannel AS DistributionChannel,
  Data05A2.Division AS Division,
  Data05A2.SoldToParty AS SoldToParty,
  Data05A2.CustomerGroup AS CustomerGroup,
  Data05A2.Material AS Material,
  Data05A2.MaterialGroup AS MaterialGroup,
  Data05A2.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_TrainingData05A2 AS Data05A2
LEFT OUTER JOIN P_SPP_TrainingDate02 AS Date02 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 */
;