P_CollsPaymentTrend

DDL: P_COLLSPAYMENTTREND Type: view COMPOSITE Package: UDM_COLL_CDS

Payment Trend

P_CollsPaymentTrend is a Composite CDS View that provides data about "Payment Trend" 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. Part of development package UDM_COLL_CDS.

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 Sold-to Party
KEY CollectionSegment CollectionSegment Segment
KEY FiscalPeriod FiscalPeriod Tax period
NetDueArrearsDays
_Customer _Customer
_CollectionSegment _CollectionSegment

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_CollsPaymentTrend.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW P_CollsPaymentTrend AS
SELECT
  Customer,
  CollectionSegment,
  FiscalPeriod,
  avg ( NetDueArrearsDays ) AS NetDueArrearsDays
FROM I_CollsSgmtCompanyCodeAssgmt
INNER JOIN P_CollsPaymentTrendPeriod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_CollectionSegment AS _CollectionSegment ON CollectionSegment = _CollectionSegment.CollectionSegment  -- association [0..1]
;