P_FiscalYearGroup

DDL: P_FISCALYEARGROUP SQL: PFYEARGRP Type: view COMPOSITE

P_FiscalYearGroup is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_FiscalCalendarDate) and exposes 8 fields with key fields FiscalYearVariant, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_FiscalCalendarDate I_FiscalCalendarDate from

Annotations (8)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PFYEARGRP view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY FiscalYearVariant FiscalYearVariant FY Variant
KEY FiscalYear FiscalYear G/L Fiscal Year
FiscalYearStartDate FiscalYearStartDate Start Date
FiscalYearEndDate FiscalYearEndDate End Date
FiscalYearConsecutiveNumber FiscalYearConsecutiveNumber
NextFiscalYearConsecutiveNmbr
PrevFiscalYearConsecutiveNmbr
_FiscalYearVariant _FiscalYearVariant

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_FiscalYearGroup.
-- 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: PFYEARGRP

CREATE VIEW P_FiscalYearGroup AS
SELECT
  FiscalYearVariant,
  FiscalYear,
  FiscalYearStartDate,
  FiscalYearEndDate,
  FiscalYearConsecutiveNumber,
  FiscalYearConsecutiveNumber + 1 AS NextFiscalYearConsecutiveNmbr,
  FiscalYearConsecutiveNumber - 1 AS PrevFiscalYearConsecutiveNmbr
FROM I_FiscalCalendarDate
;