P_CollsSumAmtInPeriod

DDL: P_COLLSSUMAMTINPERIOD Type: view TRANSACTIONAL

P_CollsSumAmtInPeriod is a Transactional CDS View in SAP S/4HANA. It reads from 1 data source (P_CollsAcctDocAged) and exposes 11 fields with key fields BusinessPartner, CollectionSegment.

Data Sources (1)

SourceAliasJoin Type
P_CollsAcctDocAged P_CollsAcctDocAged from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCOLLSUMAMTINPER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #TRANSACTIONAL 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 BusinessPartner view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner BusinessPartner Issuing Authority
KEY CollectionSegment CollectionSegment Segment
CollStrgyCurrency CollStrgyCurrency
AmountOverdue4
AmountOverdue3
AmountOverdue2
AmountOverdue1
AmountDue1
AmountDue2
AmountDue3
AmountDue4

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_CollsSumAmtInPeriod.
-- 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_CollsSumAmtInPeriod AS
SELECT
  BusinessPartner,
  CollectionSegment,
  CollStrgyCurrency,
  sum( AmountOverdue4 ) AS AmountOverdue4,
  sum( AmountOverdue3 ) AS AmountOverdue3,
  sum( AmountOverdue2 ) AS AmountOverdue2,
  sum( AmountOverdue1 ) AS AmountOverdue1,
  sum( AmountDue1 ) AS AmountDue1,
  sum( AmountDue2 ) AS AmountDue2,
  sum( AmountDue3 ) AS AmountDue3,
  sum( AmountDue4 ) AS AmountDue4
FROM P_CollsAcctDocAged
;