P_DaysSalesOutstanding9

DDL: P_DAYSSALESOUTSTANDING9 SQL: PDAYSSLSOUTSTG9 Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
P_DaysSalesOutstanding8 P_DaysSalesOutstanding8 from

Parameters (3)

NameTypeDefault
P_RblsRollingAverageMonths abap.int4
P_RevnRollingAverageMonths abap.int4
P_TodayDate sydate

Annotations (5)

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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CalendarYear CalendarYear Year
KEY CalendarMonth CalendarMonth Calendar Month
MaxCalendarDate
MaxCalendarDateDats MaxCalendarDate
MinCalendarDate MinCalendarDate
DaysBetweenTodayMaxCalDate

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

CREATE VIEW P_DaysSalesOutstanding9 AS
SELECT
  CalendarYear,
  CalendarMonth,
  REPLACE( MaxCalendarDate, '-', '') AS MaxCalendarDate,
  MaxCalendarDate AS MaxCalendarDateDats,
  MinCalendarDate,
  DATS_DAYS_BETWEEN(:P_TodayDate, MaxCalendarDate) AS DaysBetweenTodayMaxCalDate
FROM P_DaysSalesOutstanding8
;