P_COLLSPAYMENTTREND

CDS View

P_COLLSPAYMENTTREND is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_CollectionsPaymentTrend view from COMPOSITE Payment Trend
@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":""
}
}*/