P_FiscalPeriodCalendarDate
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)
| Source | Alias | Join Type |
|---|---|---|
| I_FiscalCalendarDateForLedger | CalDatForLedger | inner |
| I_FiscalYearPeriod | I_FiscalYearPeriod | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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