P_GLCalendarMonth

DDL: P_GLCALENDARMONTH SQL: PGLMOKDATE Type: view COMPOSITE

P_GLCalendarMonth is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarYear) and exposes 2 fields with key field CalendarMonth.

Data Sources (1)

SourceAliasJoin Type
I_CalendarYear I_CalendarYear from

Parameters (1)

NameTypeDefault
P_KeyDate vdm_v_key_date

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PGLMOKDATE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.preserveKey true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CalendarMonth
CalendarYear

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_GLCalendarMonth.
-- 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: PGLMOKDATE
-- Parameters: P_KeyDate : vdm_v_key_date

CREATE VIEW P_GLCalendarMonth AS
SELECT
  cast (cast (substring(:P_KeyDate, 5, 2) as bilavmon )as int1) AS CalendarMonth,
  cast(SUBSTRING (:P_KeyDate,1,4) as gjahr) AS CalendarYear
FROM I_CalendarYear
;