P_CollsPaymentTrend

DDL: P_COLLSPAYMENTTREND Type: view COMPOSITE

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)

SourceAliasJoin Type
I_CollsSgmtCompanyCodeAssgmt I_CollsSgmtCompanyCodeAssgmt from
P_CollsPaymentTrendPeriod P_CollsPaymentTrendPeriod inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_CollectionSegment _CollectionSegment $projection.CollectionSegment = _CollectionSegment.CollectionSegment

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/