P_APAgingGrid1

DDL: P_APAGINGGRID1 SQL: PAPAGINGGRID1 Type: view COMPOSITE

P_APAgingGrid1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 4 fields with key field CalendarDate.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Parameters (1)

NameTypeDefault
P_NumberOfAgingGridColumns abap.int4

Annotations (6)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate CalendarDate Calendar Date
AgingGridColumnSequence
Interval_Offset
NumberOfAgingGridColumns_x2

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_APAgingGrid1.
-- 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: PAPAGINGGRID1
-- Parameters: P_NumberOfAgingGridColumns : abap.int4

CREATE VIEW P_APAgingGrid1 AS
SELECT
  CalendarDate,
  DATS_DAYS_BETWEEN(CalendarDate, cast('20000101' as abap.dats)) AS AgingGridColumnSequence,
  DATS_DAYS_BETWEEN(CalendarDate, cast('20000101' as abap.dats)) - :P_NumberOfAgingGridColumns AS Interval_Offset,
  :P_NumberOfAgingGridColumns * 2 AS NumberOfAgingGridColumns_x2
FROM I_CalendarDate
;