I_FiscalCalendarDateForLedger

DDL: I_FISCALCALENDARDATEFORLEDGER SQL: IFIFISCCAL4L Type: view COMPOSITE

Fiscal Calendar Dates for Ledger

I_FiscalCalendarDateForLedger (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_FiscalCalendarDateForLedger is a Composite CDS View (Dimension) that provides data about "Fiscal Calendar Dates for Ledger" in SAP S/4HANA. It reads from 2 data sources (I_FiscalCalendarDate, I_LedgerCompanyCodeCrcyRoles) and exposes 33 fields with key fields CalendarDate, CompanyCode, Ledger. It has 7 associations to related views.

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-FIO-GL-IS
CapabilitiesAnalytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source in SQL Select
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to all fiscal calendar details of a calendar date in a fiscal year variant defined by ledger. The most important attributes of business entities are included, such as fiscal year, fiscal quarter, fiscal period, fiscal week with the corresponding start and end date.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul><li><p>What are the fiscal time entities of a calendar date?</p></li> </ul>

Documentation

Data Sources (2)

SourceAliasJoin Type
I_FiscalCalendarDate I_FiscalCalendarDate from
I_LedgerCompanyCodeCrcyRoles I_LedgerCompanyCodeCrcyRoles inner

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..*] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_FiscalYearPeriodText _Text $projection.FiscalYearVariant = _Text.FiscalYearVariant and $projection.FiscalYear = _Text.FiscalYear and $projection.FiscalPeriod = _Text.FiscalPeriod
[0..1] I_FiscalYear _FiscalYear $projection.FiscalYearVariant = _FiscalYear.FiscalYearVariant and $projection.FiscalYear = _FiscalYear.FiscalYear

Annotations (15)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IFIFISCCAL4L view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Fiscal Calendar Dates for Ledger view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey CalendarDate view
Analytics.dataCategory #DIMENSION view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate CalendarDate Calendar Date
KEY CompanyCode Receiver Company Code
KEY Ledger Ledger
FiscalYearVariant I_FiscalCalendarDate FiscalYearVariant Fiscal Year Variant
ControllingArea _CompanyCode ControllingArea Controlling Area
FiscalYear FiscalYear G/L Fiscal Year
FiscalYearStartDate FiscalYearStartDate Start Date of Fiscal Year
FiscalYearEndDate FiscalYearEndDate End Date of Fiscal Year
FiscalPeriod FiscalPeriod Fiscal Period
FiscalPeriodStartDate FiscalPeriodStartDate Start Date of Fiscal Period
FiscalPeriodEndDate FiscalPeriodEndDate End Date of Fiscal Period
FiscalQuarter FiscalQuarter Fiscal Quarter
FiscalQuarterStartDate FiscalQuarterStartDate Start Date of Fiscal Quarter
FiscalQuarterEndDate FiscalQuarterEndDate End Date of Fiscal Quarter
FiscalWeek FiscalWeek Fiscal Week
FiscalWeekStartDate FiscalWeekStartDate Start Date of Fiscal Week
FiscalWeekEndDate FiscalWeekEndDate End Date of Fiscal Week
FiscalYearPeriod FiscalYearPeriod Fiscal Year + Fiscal Period
FiscalYearQuarter FiscalYearQuarter Fiscal Year + Fiscal Quarter
FiscalYearWeek FiscalYearWeek Fiscal Year + Fiscal Week
FiscalYearConsecutiveNumber FiscalYearConsecutiveNumber Fiscal Year (Integer)
FiscalPeriodConsecutiveNumber FiscalPeriodConsecutiveNumber Fiscal Year Period (Numbering)
FiscalQuarterConsecutiveNumber FiscalQuarterConsecutiveNumber Fiscal Year Quarter (Numbering)
FiscalWeekConsecutiveNumber FiscalWeekConsecutiveNumber Fiscal Year Week (Numbering)
_FiscalYearVariant I_FiscalCalendarDate _FiscalYearVariant
_CompanyCode _CompanyCode
_Ledger _Ledger
_ControllingArea _ControllingArea
_CalendarDate _CalendarDate
_FiscalYear _FiscalYear
_Text _Text
_ControllingAreaText _ControllingAreaText
_LedgerText _LedgerText

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 I_FiscalCalendarDateForLedger.
-- 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: IFIFISCCAL4L

CREATE VIEW I_FiscalCalendarDateForLedger AS
SELECT
  CalendarDate,
  cast( CompanyCode as fis_bukrs preserving type ) AS CompanyCode,
  cast( Ledger as fis_rldnr preserving type ) AS Ledger,
  I_FiscalCalendarDate.FiscalYearVariant AS FiscalYearVariant,
  _CompanyCode.ControllingArea AS ControllingArea,
  FiscalYear,
  FiscalYearStartDate,
  FiscalYearEndDate,
  FiscalPeriod,
  FiscalPeriodStartDate,
  FiscalPeriodEndDate,
  FiscalQuarter,
  FiscalQuarterStartDate,
  FiscalQuarterEndDate,
  FiscalWeek,
  FiscalWeekStartDate,
  FiscalWeekEndDate,
  FiscalYearPeriod,
  FiscalYearQuarter,
  FiscalYearWeek,
  FiscalYearConsecutiveNumber,
  FiscalPeriodConsecutiveNumber,
  FiscalQuarterConsecutiveNumber,
  FiscalWeekConsecutiveNumber,
  I_FiscalCalendarDate._FiscalYearVariant AS _FiscalYearVariant
FROM I_FiscalCalendarDate
INNER JOIN I_LedgerCompanyCodeCrcyRoles ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_FiscalYearPeriodText AS _Text ON FiscalYearVariant = _Text.FiscalYearVariant AND FiscalYear = _Text.FiscalYear AND FiscalPeriod = _Text.FiscalPeriod  -- association [0..*]
LEFT OUTER JOIN I_FiscalYear AS _FiscalYear ON FiscalYearVariant = _FiscalYear.FiscalYearVariant AND FiscalYear = _FiscalYear.FiscalYear  -- association [0..1]
;