P_Paymentstatistics_Days
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Paymentstatistics_Base | Base | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA