P_LastDayOfFsclDteFunction

DDL: P_LASTDAYOFFSCLDTEFUNCTION SQL: PLSTDAYDTEFUNC Type: view BASIC

Last day of fiscal date function

P_LastDayOfFsclDteFunction is a Basic CDS View that provides data about "Last day of fiscal date function" in SAP S/4HANA. It reads from 2 data sources (I_Datefunction, I_FiscalDateFunctionValue) and exposes 2 fields with key fields DateFunctionendasDateFunction, FiscalYearVariant.

Data Sources (2)

SourceAliasJoin Type
I_Datefunction _DateFunction from
I_FiscalDateFunctionValue _fsclDateFunctionValue inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PLSTDAYDTEFUNC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view
EndUserText.label Last day of fiscal date function view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY DateFunctionendasDateFunction
KEY FiscalYearVariant I_FiscalDateFunctionValue FiscalYearVariant FY Variant

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_LastDayOfFsclDteFunction.
-- 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: PLSTDAYDTEFUNC

CREATE VIEW P_LastDayOfFsclDteFunction AS
SELECT
  case when _DateFunction.DateFunction = 'FIRSTDAYOFPREVIOUSFISCALPERIOD' then 'LASTDAYOF2PERIODSAGO' else _DateFunction.DateFunction end as DateFunction AS DateFunctionendasDateFunction,
  _fsclDateFunctionValue.FiscalYearVariant AS FiscalYearVariant
FROM I_Datefunction AS _DateFunction
INNER JOIN I_FiscalDateFunctionValue AS _fsclDateFunctionValue ON /* join condition not captured in parsed metadata */
;