P_DaysSalesOutstanding8

DDL: P_DAYSSALESOUTSTANDING8 SQL: PDAYSSLSOUTSTG8 Type: view COMPOSITE

P_DaysSalesOutstanding8 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_DaysSalesOutstanding7) and exposes 5 fields with key fields CalendarYear, CalendarMonth.

Data Sources (1)

SourceAliasJoin Type
P_DaysSalesOutstanding7 P_DaysSalesOutstanding7 from

Parameters (3)

NameTypeDefault
P_RblsRollingAverageMonths abap.int4
P_RevnRollingAverageMonths abap.int4
P_TodayDate sydate

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PDAYSSLSOUTSTG8 view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CalendarYear CalendarYear Year
KEY CalendarMonth CalendarMonth Calendar Month
FromDateRollingAverage FromDateRollingAverage
MaxCalendarDate
MinCalendarDate

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_DaysSalesOutstanding8.
-- 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: PDAYSSLSOUTSTG8
-- Parameters: P_RblsRollingAverageMonths : abap.int4, P_RevnRollingAverageMonths : abap.int4, P_TodayDate : sydate

CREATE VIEW P_DaysSalesOutstanding8 AS
SELECT
  CalendarYear,
  CalendarMonth,
  FromDateRollingAverage,
  max(CalendarDate) AS MaxCalendarDate,
  min(CalendarDate) AS MinCalendarDate
FROM P_DaysSalesOutstanding7
;