P_PaytProposalItemAggregation
Payment Proposal Item Aggregation
P_PaytProposalItemAggregation is a Basic CDS View that provides data about "Payment Proposal Item Aggregation" in SAP S/4HANA. It reads from 1 data source (reguh) and exposes 18 fields with key fields PaymentRunDate, PaymentRunID, PaymentRunIsProposal, PayingCompanyCode, Supplier. It has 1 association to related views. Part of development package FINS_AP_PP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| reguh | reguh | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | P_PaymentProposalItem | _PaymentProposalItem | $projection.PaymentRunDate = _PaymentProposalItem.PaymentRunDate and $projection.PaymentRunID = _PaymentProposalItem.PaymentRunID and $projection.PaymentRunIsProposal = _PaymentProposalItem.PaymentRunIsProposal and $projection.PayingCompanyCode = _PaymentProposalItem.PayingCompanyCode and $projection.Supplier = _PaymentProposalItem.Supplier and $projection.Customer = _PaymentProposalItem.Customer and $projection.PaymentRecipient = _PaymentProposalItem.PaymentRecipient and $projection.PaymentDocument = _PaymentProposalItem.PaymentDocument |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPAYTITMAGGRGN | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PaymentRunDate | laufd | Run On | |
| KEY | PaymentRunID | laufi | Settlement ID | |
| KEY | PaymentRunIsProposal | xvorl | Proposal Run | |
| KEY | PayingCompanyCode | zbukr | Paying CoCd | |
| KEY | Supplier | lifnr | Vendor no. | |
| KEY | Customer | kunnr | Stock customer | |
| KEY | PaymentRecipient | empfg | Pmnt Recipient | |
| KEY | PaymentDocument | vblnr | Payment Doc.No. | |
| PaymentCurrency | waers | Transaction Currency | ||
| AmountInTransactionCurrency | ||||
| HeaderAmtInCoCodeCurrency | ||||
| WhldgTaxAmtInTransacCrcy | ||||
| WhldgTaxAmtInCoCodeCrcy | ||||
| TotDeductionAmtInTransacCrcy | ||||
| TotDeductionAmtInCoCodeCrcy | ||||
| NetAmountInTransacCurrency | ||||
| NetAmountInCoCodeCurrency | ||||
| _PaymentProposalItem | _PaymentProposalItem |
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_PaytProposalItemAggregation.
-- 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: PPAYTITMAGGRGN
CREATE VIEW P_PaytProposalItemAggregation AS
SELECT
laufd AS PaymentRunDate,
laufi AS PaymentRunID,
xvorl AS PaymentRunIsProposal,
zbukr AS PayingCompanyCode,
lifnr AS Supplier,
kunnr AS Customer,
empfg AS PaymentRecipient,
vblnr AS PaymentDocument,
waers AS PaymentCurrency,
cast ( sum(_PaymentProposalItem.AmountInTransactionCurrency) as abap.curr(23,2)) AS AmountInTransactionCurrency,
cast ( sum(_PaymentProposalItem.AmountInCompanyCodeCurrency) as abap.curr(23,2)) AS HeaderAmtInCoCodeCurrency,
cast ( sum(_PaymentProposalItem.WhldgTaxAmtInTransacCrcy) as abap.curr(23,2)) AS WhldgTaxAmtInTransacCrcy,
cast ( sum(_PaymentProposalItem.WhldgTaxAmtInCoCodeCrcy) as abap.curr(23,2)) AS WhldgTaxAmtInCoCodeCrcy,
cast ( sum(_PaymentProposalItem.TotDeductionAmtInTransacCrcy) as abap.curr(23,2)) AS TotDeductionAmtInTransacCrcy,
cast ( sum(_PaymentProposalItem.TotDeductionAmtInCoCodeCrcy) as abap.curr(23,2)) AS TotDeductionAmtInCoCodeCrcy,
cast ( sum(_PaymentProposalItem.NetAmountInTransacCurrency) as abap.curr(23,2)) AS NetAmountInTransacCurrency,
cast ( sum(_PaymentProposalItem.NetAmountInCoCodeCurrency) as abap.curr(23,2)) AS NetAmountInCoCodeCurrency
FROM reguh
LEFT OUTER JOIN P_PaymentProposalItem AS _PaymentProposalItem ON PaymentRunDate = _PaymentProposalItem.PaymentRunDate AND PaymentRunID = _PaymentProposalItem.PaymentRunID AND PaymentRunIsProposal = _PaymentProposalItem.PaymentRunIsProposal AND PayingCompanyCode = _PaymentProposalItem.PayingCompanyCode AND Supplier = _PaymentProposalItem.Supplier AND Customer = _PaymentProposalItem.Customer AND PaymentRecipient = _PaymentProposalItem.PaymentRecipient AND PaymentDocument = _PaymentProposalItem.PaymentDocument -- association [1..*]
;
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