I_FiscalCalendarDateForLedger
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
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI-FIO-GL-IS |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Accounting 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FiscalCalendarDate | I_FiscalCalendarDate | from |
| I_LedgerCompanyCodeCrcyRoles | I_LedgerCompanyCodeCrcyRoles | inner |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA