P_APAgingGrid1
P_APAgingGrid1 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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_NumberOfAgingGridColumns | abap.int4 |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PAPAGINGGRID1 | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| AgingGridColumnSequence | ||||
| Interval_Offset | ||||
| NumberOfAgingGridColumns_x2 |
@AbapCatalog.sqlViewName: 'PAPAGINGGRID1'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
//Try to get a list of entries to present the aging intervals
//Corresponding to AccountsPayableFlexibleAgingQuery Projection4
define view P_APAgingGrid1
with parameters
P_NumberOfAgingGridColumns : abap.int4
as select from
I_CalendarDate
{
key CalendarDate,
DATS_DAYS_BETWEEN(CalendarDate, cast('20000101' as abap.dats)) as AgingGridColumnSequence,
DATS_DAYS_BETWEEN(CalendarDate, cast('20000101' as abap.dats)) - :P_NumberOfAgingGridColumns as Interval_Offset,
:P_NumberOfAgingGridColumns * 2 as NumberOfAgingGridColumns_x2
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"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