P_DaysBeyondTerms7

DDL: P_DAYSBEYONDTERMS7 SQL: PDAYSBYNDTERMS7 Type: view COMPOSITE

P_DaysBeyondTerms7 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_DaysBeyondTerms6) and exposes 7 fields.

Data Sources (1)

SourceAliasJoin Type
P_DaysBeyondTerms6 P_DaysBeyondTerms6 from

Parameters (1)

NameTypeDefault
P_TodayDate sydate

Annotations (5)

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

Fields (7)

KeyFieldSource TableSource FieldDescription
CalendarYear CalendarYear Year
CalendarMonth CalendarMonth Calendar Month
YearMonth
ThisYear ThisYear
ThisMonth ThisMonth
CalendarYear_int4 Year
LastYear_int4

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_DaysBeyondTerms7.
-- 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: PDAYSBYNDTERMS7
-- Parameters: P_TodayDate : sydate

CREATE VIEW P_DaysBeyondTerms7 AS
SELECT
  CalendarYear,
  CalendarMonth,
  concat(CalendarYear, CalendarMonth) AS YearMonth,
  ThisYear,
  ThisMonth,
  cast(CalendarYear as abap.int4) AS CalendarYear_int4,
  cast(ThisYear as abap.int4) - 1 AS LastYear_int4
FROM P_DaysBeyondTerms6
;