P_CollsPaymentTrend
P_CollsPaymentTrend is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CollsSgmtCompanyCodeAssgmt, P_CollsPaymentTrendPeriod) and exposes 6 fields with key fields Customer, CollectionSegment, FiscalPeriod. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CollsSgmtCompanyCodeAssgmt | I_CollsSgmtCompanyCodeAssgmt | from |
| P_CollsPaymentTrendPeriod | P_CollsPaymentTrendPeriod | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_CollectionSegment | _CollectionSegment | $projection.CollectionSegment = _CollectionSegment.CollectionSegment |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCOLLSPAYMTRND | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | Customer | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | Customer | ||
| KEY | CollectionSegment | CollectionSegment | ||
| KEY | FiscalPeriod | FiscalPeriod | ||
| NetDueArrearsDays | ||||
| _Customer | _Customer | |||
| _CollectionSegment | _CollectionSegment |
@AbapCatalog: { sqlViewName: 'PCOLLSPAYMTRND',
compiler: { compareFilter: true },
preserveKey: true }
@AccessControl: { authorizationCheck: #NOT_REQUIRED,
personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@VDM: { viewType: #COMPOSITE,
private: true }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #X,
sizeCategory: #L,
dataClass: #TRANSACTIONAL },
representativeKey: 'Customer' }
define view P_CollsPaymentTrend
as select from I_CollsSgmtCompanyCodeAssgmt
inner join P_CollsPaymentTrendPeriod on I_CollsSgmtCompanyCodeAssgmt.CompanyCode = P_CollsPaymentTrendPeriod.CompanyCode
// VDM Associations
// Customer
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
// Collection Segment
association [0..1] to I_CollectionSegment as _CollectionSegment on $projection.CollectionSegment = _CollectionSegment.CollectionSegment
{
// VDM Fields
key Customer,
key CollectionSegment,
key FiscalPeriod,
avg ( NetDueArrearsDays ) as NetDueArrearsDays,
// Exposed Associations
_Customer,
_CollectionSegment
}
group by
Customer,
CollectionSegment,
FiscalPeriod
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COLLSSGMTCOMPANYCODEASSGMT",
"P_COLLSPAYMENTTRENDPERIOD"
],
"ASSOCIATED":
[
"I_COLLECTIONSEGMENT",
"I_CUSTOMER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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