P_ChartYearHorizonRange
P_ChartYearHorizonRange is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 4 fields with key field CalendarDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_ChartYearHorizonDate | _ChartYearHorizonDate | $projection.CalendarDate > _ChartYearHorizonDate.LastDayOfMonthDate |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCHRTYRHORIZRNG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| Material | ||||
| MRPAvailableStockQty | ||||
| CurrentAverageDailyUsage |
@AbapCatalog.sqlViewName: 'PCHRTYRHORIZRNG'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_ChartYearHorizonRange
as select from I_CalendarDate
association [1..1] to P_ChartYearHorizonDate as _ChartYearHorizonDate on $projection.CalendarDate > _ChartYearHorizonDate.LastDayOfMonthDate
{
key CalendarDate,
cast( '' as abap.sstring( 50 )) as Material,
cast( '' as abap.sstring( 40 ) ) as MRPAvailableStockQty,
cast( '' as abap.sstring( 40 ) ) as CurrentAverageDailyUsage
}
where
CalendarDate between _ChartYearHorizonDate.LastDayOfMonthDate and $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE",
"P_CHARTYEARHORIZONDATE"
],
"ASSOCIATED":
[
"P_CHARTYEARHORIZONDATE"
],
"BASE":
[],
"VERSION":0
}
}*/
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