P_DaysBeyondTerms6
P_DaysBeyondTerms6 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 4 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_TodayDate | sydate |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDAYSBYNDTERMS6 | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CalendarYear | CalendarYear | |||
| CalendarMonth | CalendarMonth | |||
| ThisMonth | ||||
| ThisYear |
@AbapCatalog.sqlViewName: 'PDAYSBYNDTERMS6'
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_DaysBeyondTerms6
with parameters
@Environment.systemField: #SYSTEM_DATE
P_TodayDate : sydate
as select from I_CalendarDate
{
CalendarYear,
CalendarMonth,
cast(substring(cast(:P_TodayDate as abap.char(8)), 5, 2) as abap.numc(2)) as ThisMonth,
cast(substring(cast(:P_TodayDate as abap.char(8)), 1, 4) as abap.numc(4)) as ThisYear
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"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