P_SI4_TrainingData10

DDL: P_SI4_TRAININGDATA10 SQL: PSDSI4TD10 Type: view COMPOSITE

P_SI4_TrainingData10 is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_Customer, I_Product, P_SI4_Period, I_SalesOrganization, P_SI4_TrainingData09) and exposes 79 fields with key fields YearMonth, PartOfMonth, SoldToParty, SalesOrganization, DistributionChannel.

Data Sources (5)

SourceAliasJoin Type
I_Customer C left_outer
I_Product P left_outer
P_SI4_Period Period left_outer
I_SalesOrganization SO left_outer
P_SI4_TrainingData09 TD9 from

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName PSDSI4TD10 view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY YearMonth YearMonth Year Month
KEY PartOfMonth PartOfMonth
KEY SoldToParty SoldToParty Sold-to Party
KEY SalesOrganization P_SI4_TrainingData09 SalesOrganization Sales Organization
KEY DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
KEY Division P_SI4_TrainingData09 Division Internal Division ID
KEY Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
CustomerGroup CustomerGroup Customer Group
CustomerName
CreatedByUser I_Customer CreatedByUser User Name
CustomerClassification I_Customer CustomerClassification Customer Class.
CustomerAccountGroup I_Customer CustomerAccountGroup Account group
IsOneTimeAccount I_Customer IsOneTimeAccount One-time acct
IsBusinessPurposeCompleted I_Customer IsBusinessPurposeCompleted Purpose Completed
Industry I_Customer Industry Industry Sector
Country I_Customer Country Venue: Ctry/Reg
CityName I_Customer CityName Name
ProductType I_Product ProductType Product Type Group
CompanyCode I_SalesOrganization CompanyCode Receiver Company Code
IntercompanyBillingCustomer I_SalesOrganization IntercompanyBillingCustomer Stock customer
PartOfQuarter PartOfQuarter
CalendarYear CalendarYear Year
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Calendar Week
TargetAmount TargetAmount Target Value
CountByPOM CntByPOM
SumAmtByPOM SumAmtByPOM
MaxAmtByPOM MaxAmtByPOM
MinAmtByPOM MinAmtByPOM
CountByPOQ CntByPOQ
SumAmtByPOQ SumAmtByPOQ
MaxAmtByPOQ MaxAmtByPOQ
MinAmtByPOQ MinAmtByPOQ
CountByPre1Month CntByPre1Month
SumAmtByPre1Month SumAmtByPre1Month
MaxAmtByPre1Month MaxAmtByPre1Month
MinAmtByPre1Month MinAmtByPre1Month
CountByPre1Quarter CntByPre1Quarter Number of Records
SumAmtByPre1Quarter SumAmtByPre1Quarter
MaxAmtByPre1Quarter MaxAmtByPre1Quarter
MinAmtByPre1Quarter MinAmtByPre1Quarter
DiffCountByPOM
DiffSumAmtByPOM
DiffMaxAmtByPOM
DiffMinAmtByPOM
DiffCountByPOQ
DiffSumAmtByPOQ
DiffMaxAmtByPOQ
DiffMinAmtByPOQ
AvgCountByPOM
AvgCountByPOQ
SumAmtByPre2Month
SumAmtByPre3Month
SumAmtByPre4Month
SumAmtByPre5Month
SumAmtByPre6Month
DeltaAmtByMoM1
DeltaAmtByMoM2
DeltaAmtByMoM3
DeltaAmtByMoM4
DeltaAmtByMoM5
DeltaAmtByMoM6
DeltaAmtByYoY1
DeltaAmtByYoY2
DeltaAmtByYoY3
DeltaAmtByYoY4
DeltaAmtByYoY5
DeltaAmtByYoY6
AvgAmtByLast2Month
AvgAmtByLast3Month
SumAmtRatioByLast3Month1
SumAmtRatioByLast3Month2
SumAmtRatioByLast3Month3
DiffAmtByPOM1
DiffAmtByPOM2
CurrentYearMonth P_SI4_Period CurrentYearMonth Year Month
NextYearMonth P_SI4_Period NextYearMonth

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_SI4_TrainingData10.
-- 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: PSDSI4TD10

CREATE VIEW P_SI4_TrainingData10 AS
SELECT
  YearMonth,
  PartOfMonth,
  SoldToParty,
  TD9.SalesOrganization AS SalesOrganization,
  DistributionChannel,
  TD9.Division AS Division,
  Material,
  MaterialGroup,
  CustomerGroup,
  cast( '' as md_customer_name ) AS CustomerName,
  C.CreatedByUser AS CreatedByUser,
  C.CustomerClassification AS CustomerClassification,
  C.CustomerAccountGroup AS CustomerAccountGroup,
  C.IsOneTimeAccount AS IsOneTimeAccount,
  C.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  C.Industry AS Industry,
  C.Country AS Country,
  C.CityName AS CityName,
  P.ProductType AS ProductType,
  SO.CompanyCode AS CompanyCode,
  SO.IntercompanyBillingCustomer AS IntercompanyBillingCustomer,
  PartOfQuarter,
  CalendarYear,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  TargetAmount,
  CntByPOM AS CountByPOM,
  SumAmtByPOM,
  MaxAmtByPOM,
  MinAmtByPOM,
  CntByPOQ AS CountByPOQ,
  SumAmtByPOQ,
  MaxAmtByPOQ,
  MinAmtByPOQ,
  CntByPre1Month AS CountByPre1Month,
  SumAmtByPre1Month,
  MaxAmtByPre1Month,
  MinAmtByPre1Month,
  CntByPre1Quarter AS CountByPre1Quarter,
  SumAmtByPre1Quarter,
  MaxAmtByPre1Quarter,
  MinAmtByPre1Quarter,
  cast( CntByPOM - CntByPre1Month as int4) AS DiffCountByPOM,
  cast( SumAmtByPOM - SumAmtByPre1Month as netwr) AS DiffSumAmtByPOM,
  cast( MaxAmtByPOM - MaxAmtByPre1Month as netwr) AS DiffMaxAmtByPOM,
  cast( MinAmtByPOM - MinAmtByPre1Month as netwr) AS DiffMinAmtByPOM,
  cast( CntByPOQ - CntByPre1Quarter as int4) AS DiffCountByPOQ,
  cast( SumAmtByPOQ - SumAmtByPre1Quarter as netwr) AS DiffSumAmtByPOQ,
  cast( MaxAmtByPOQ - MaxAmtByPre1Quarter as netwr) AS DiffMaxAmtByPOQ,
  cast( MinAmtByPOQ - MinAmtByPre1Quarter as netwr) AS DiffMinAmtByPOQ,
  cast( 0 as netwr) AS AvgCountByPOM,
  cast( 0 as netwr) AS AvgCountByPOQ,
  cast( 0 as netwr) AS SumAmtByPre2Month,
  cast( 0 as netwr) AS SumAmtByPre3Month,
  cast( 0 as netwr) AS SumAmtByPre4Month,
  cast( 0 as netwr) AS SumAmtByPre5Month,
  cast( 0 as netwr) AS SumAmtByPre6Month,
  cast( 0 as netwr) AS DeltaAmtByMoM1,
  cast( 0 as netwr) AS DeltaAmtByMoM2,
  cast( 0 as netwr) AS DeltaAmtByMoM3,
  cast( 0 as netwr) AS DeltaAmtByMoM4,
  cast( 0 as netwr) AS DeltaAmtByMoM5,
  cast( 0 as netwr) AS DeltaAmtByMoM6,
  cast( 0 as netwr) AS DeltaAmtByYoY1,
  cast( 0 as netwr) AS DeltaAmtByYoY2,
  cast( 0 as netwr) AS DeltaAmtByYoY3,
  cast( 0 as netwr) AS DeltaAmtByYoY4,
  cast( 0 as netwr) AS DeltaAmtByYoY5,
  cast( 0 as netwr) AS DeltaAmtByYoY6,
  cast( 0 as netwr) AS AvgAmtByLast2Month,
  cast( 0 as netwr) AS AvgAmtByLast3Month,
  cast( 0 as netwr) AS SumAmtRatioByLast3Month1,
  cast( 0 as netwr) AS SumAmtRatioByLast3Month2,
  cast( 0 as netwr) AS SumAmtRatioByLast3Month3,
  cast( 0 as netwr) AS DiffAmtByPOM1,
  cast( 0 as netwr) AS DiffAmtByPOM2,
  Period.CurrentYearMonth AS CurrentYearMonth,
  Period.NextYearMonth AS NextYearMonth
FROM P_SI4_TrainingData09 AS TD9
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 */
LEFT OUTER JOIN P_SI4_Period AS Period ON /* join condition not captured in parsed metadata */
;