P_FiscalPeriodCalendarDate

DDL: P_FISCALPERIODCALENDARDATE SQL: PFIFISCPERCALDAT Type: view COMPOSITE

P_FiscalPeriodCalendarDate is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_FiscalCalendarDateForLedger, I_FiscalYearPeriod) and exposes 14 fields with key fields Ledger, CompanyCode, FiscalPeriod, CalendarDateendasCalendarDate.

Data Sources (2)

SourceAliasJoin Type
I_FiscalCalendarDateForLedger CalDatForLedger inner
I_FiscalYearPeriod I_FiscalYearPeriod inner

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (8)

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

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_FiscalCalendarDateForLedger Ledger Ledger
KEY CompanyCode I_FiscalCalendarDateForLedger CompanyCode Receiver Company Code
KEY FiscalPeriod I_FiscalYearPeriod FiscalPeriod Tax period
KEY CalendarDateendasCalendarDate
FiscalYearVariant I_FiscalCalendarDateForLedger FiscalYearVariant FY Variant
FiscalYear I_FiscalCalendarDateForLedger FiscalYear G/L Fiscal Year
FiscalYearPeriod I_FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalYearStartDate I_FiscalYearPeriod FiscalYearStartDate Start Date
FiscalYearEndDate I_FiscalYearPeriod FiscalYearEndDate End Date
FiscalPeriodendasFiscalPeriodDate
IsPeriodBasedBalanceReporting IsPeriodBasedBalanceReporting
FiscalPeriodEndDate I_FiscalYearPeriod FiscalPeriodEndDate End Date
FromFiscalYearStartDate I_FiscalCalendarDateForLedger FiscalYearStartDate Start Date
FromFiscalYear I_FiscalCalendarDateForLedger FiscalYear G/L Fiscal Year

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_FiscalPeriodCalendarDate.
-- 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: PFIFISCPERCALDAT
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW P_FiscalPeriodCalendarDate AS
SELECT
  I_FiscalCalendarDateForLedger.Ledger AS Ledger,
  I_FiscalCalendarDateForLedger.CompanyCode AS CompanyCode,
  I_FiscalYearPeriod.FiscalPeriod AS FiscalPeriod,
  case when I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting is null or I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = '' or I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = 'X' then I_FiscalYearPeriod.FiscalPeriodEndDate when I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = 'D' then I_FiscalCalendarDateForLedger.CalendarDate end as CalendarDate AS CalendarDateendasCalendarDate,
  I_FiscalCalendarDateForLedger.FiscalYearVariant AS FiscalYearVariant,
  I_FiscalCalendarDateForLedger.FiscalYear AS FiscalYear,
  I_FiscalYearPeriod.FiscalYearPeriod AS FiscalYearPeriod,
  I_FiscalYearPeriod.FiscalYearStartDate AS FiscalYearStartDate,
  I_FiscalYearPeriod.FiscalYearEndDate AS FiscalYearEndDate,
  case when I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting is null or I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = '' or I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = 'X' then concat( I_FiscalYearPeriod.FiscalPeriodEndDate, I_FiscalYearPeriod.FiscalPeriod) when I_TrialBalanceUserParam.IsPeriodBasedBalanceReporting = 'D' then concat( I_FiscalCalendarDateForLedger.CalendarDate, I_FiscalYearPeriod.FiscalPeriod) end as FiscalPeriodDate AS FiscalPeriodendasFiscalPeriodDate,
  IsPeriodBasedBalanceReporting,
  I_FiscalYearPeriod.FiscalPeriodEndDate AS FiscalPeriodEndDate,
  CalDatForLedger.FiscalYearStartDate AS FromFiscalYearStartDate,
  CalDatForLedger.FiscalYear AS FromFiscalYear
INNER JOIN I_FiscalCalendarDateForLedger AS CalDatForLedger ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalYearPeriod ON /* join condition not captured in parsed metadata */
;