P_DaysPyblOutstanding01
P_DaysPyblOutstanding01 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 6 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_PyblsRollingAverageMonths | abap.int4 | |
| P_PursRollingAverageMonths | abap.int4 | |
| P_TodayDate | sydate |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDPO01 | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PyblsRollingAverageMonths | ||||
| PursRollingAverageMonths | ||||
| LastRollingMonth | ||||
| FirstRollingMonth | ||||
| FirstPyblsAvgMonth | ||||
| FirstPursAvgMonth |
@AbapCatalog.sqlViewName: 'PDPO01'
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_DaysPyblOutstanding01
with parameters
P_PyblsRollingAverageMonths : abap.int4,
P_PursRollingAverageMonths : abap.int4,
@Environment.systemField: #SYSTEM_DATE
P_TodayDate : sydate
as select from I_CalendarDate
{
:P_PyblsRollingAverageMonths as PyblsRollingAverageMonths,
:P_PursRollingAverageMonths as PursRollingAverageMonths,
substring(:P_TodayDate, 1, 6) as LastRollingMonth,
substring(dats_add_months( :P_TodayDate, -11, 'FAIL'), 1, 6) as FirstRollingMonth,
substring(dats_add_months( :P_TodayDate, -(:P_PyblsRollingAverageMonths + 10), 'FAIL'), 1, 6) as FirstPyblsAvgMonth,
substring(dats_add_months( :P_TodayDate, -(:P_PursRollingAverageMonths + 10), 'FAIL'), 1, 6) as FirstPursAvgMonth
}
where I_CalendarDate.CalendarDate = :P_TodayDate
/*+[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