P_Paymentstatistics_Days

DDL: P_PAYMENTSTATISTICS_DAYS SQL: PPSDAYS Type: view COMPOSITE Package: FCLM_BAM_OBSOLETE

Payment Processing Days

P_Paymentstatistics_Days is a Composite CDS View that provides data about "Payment Processing Days" in SAP S/4HANA. It reads from 1 data source (I_Paymentstatistics_Base) and exposes 17 fields. Part of development package FCLM_BAM_OBSOLETE.

Data Sources (1)

SourceAliasJoin Type
I_Paymentstatistics_Base Base from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPSDAYS view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (17)

KeyFieldSource TableSource FieldDescription
CompanyCode I_Paymentstatistics_Base CompanyCode Receiver Company Code
PayeeBankCountry I_Paymentstatistics_Base PayeeBankCountry Part. Ctry/Rgn
PayeeBankInternalID I_Paymentstatistics_Base PayeeBankInternalID Payee bank key
BankKey I_Paymentstatistics_Base BankKey Bank Number
BankCountryKey I_Paymentstatistics_Base BankCountryKey Bank Ctry/Reg.
PaymentMethod I_Paymentstatistics_Base PaymentMethod Pymt Meth.
PaymentBatch I_Paymentstatistics_Base PaymentBatch Batch Number
PaymentBatchRule I_Paymentstatistics_Base PaymentBatchRule Rule ID
NumberOfPayments
GeneralStatus I_Paymentstatistics_Base Status Workflow Status
PaymentProcessingStatus I_Paymentstatistics_Base PaymentProcessingStatus
IsUrgentPayment I_Paymentstatistics_Base IsUrgentPayment Urgent
CreationDate I_Paymentstatistics_Base CreationDate Time Stamp
LastChangeDate I_Paymentstatistics_Base LastChangeDate Time Stamp
NumberOfDaysInPeriod
PaymentCurrency I_Paymentstatistics_Base PaymentCurrency Payment Currency
AmountInPaymentCurrency

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_Paymentstatistics_Days.
-- 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.
-- SQL view name: PPSDAYS
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_Paymentstatistics_Days AS
SELECT
  Base.CompanyCode AS CompanyCode,
  Base.PayeeBankCountry AS PayeeBankCountry,
  Base.PayeeBankInternalID AS PayeeBankInternalID,
  Base.BankKey AS BankKey,
  Base.BankCountryKey AS BankCountryKey,
  Base.PaymentMethod AS PaymentMethod,
  Base.PaymentBatch AS PaymentBatch,
  Base.PaymentBatchRule AS PaymentBatchRule,
  sum(Base.NumberOfPayments) AS NumberOfPayments,
  Base.Status AS GeneralStatus,
  Base.PaymentProcessingStatus AS PaymentProcessingStatus,
  Base.IsUrgentPayment AS IsUrgentPayment,
  Base.CreationDate AS CreationDate,
  Base.LastChangeDate AS LastChangeDate,
  dats_days_between(Base.CreationDate, $parameters.P_KeyDate) AS NumberOfDaysInPeriod,
  Base.PaymentCurrency AS PaymentCurrency,
  sum(Base.AmountInPaymentCurrency) AS AmountInPaymentCurrency
FROM I_Paymentstatistics_Base AS Base
;