P_GLFiscalYearByKeyDate
Fiscal Year By Key Date
P_GLFiscalYearByKeyDate is a Consumption CDS View that provides data about "Fiscal Year By Key Date" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 4 fields. Part of development package ODATA_GL_OVP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGLFISYRKEY | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| FiscalYear | ||||
| FiscalPeriod | ||||
| IntervalEndDate | CalendarDate | |||
| IntervalStartDate |
@AbapCatalog.sqlViewName: 'PGLFISYRKEY'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #MIXED
@VDM.viewType: #CONSUMPTION
@VDM.private:true
define view P_GLFiscalYearByKeyDate
with parameters
P_KeyDate : vdm_v_key_date
as select from I_CalendarDate
{
cast(substring (:P_KeyDate,1,4) as gjahr) as FiscalYear,
cast(concat('0',substring (:P_KeyDate,5,2)) as fins_fiscalperiod) as FiscalPeriod,
CalendarDate as IntervalEndDate,
dats_add_days(CalendarDate, -30, 'NULL') as IntervalStartDate
}
where CalendarDate = $session.system_date
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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