P_PaytReceiptPaymentDocItem
Payment receipt payment document item
P_PaytReceiptPaymentDocItem is a Composite CDS View that provides data about "Payment receipt payment document item" in SAP S/4HANA. It reads from 1 data source (P_PAYTRECEIPTPAYMENTDOCITEM1) and exposes 24 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. Part of development package GLO_FIN_PAYMENT_RECEIPT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PAYTRECEIPTPAYMENTDOCITEM1 | GLAccountLineItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPAYTRCPTPAYTDOC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_PAYTRECEIPTPAYMENTDOCITEM1 | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | P_PAYTRECEIPTPAYMENTDOCITEM1 | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | P_PAYTRECEIPTPAYMENTDOCITEM1 | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | |||
| CompanyCodeName | P_PAYTRECEIPTPAYMENTDOCITEM1 | CompanyCodeName | Company Name | |
| DocumentReferenceID | P_PAYTRECEIPTPAYMENTDOCITEM1 | DocumentReferenceID | Reference | |
| Customer | P_PAYTRECEIPTPAYMENTDOCITEM1 | Customer | Sold-to Party | |
| Supplier | P_PAYTRECEIPTPAYMENTDOCITEM1 | Supplier | Supplier | |
| AlternativeReferenceDocument | P_PAYTRECEIPTPAYMENTDOCITEM1 | AlternativeReferenceDocument | Alternative Reference Document | |
| BusinessPlace | P_PAYTRECEIPTPAYMENTDOCITEM1 | BusinessPlace | Business place | |
| Country | P_PAYTRECEIPTPAYMENTDOCITEM1 | Country | Venue: Ctry/Reg | |
| DocumentDate | P_PAYTRECEIPTPAYMENTDOCITEM1 | DocumentDate | Journal Entry Date | |
| PostingDate | P_PAYTRECEIPTPAYMENTDOCITEM1 | PostingDate | Posting Date for GR | |
| AmountInTransactionCurrency | ||||
| TransactionCurrency | P_PAYTRECEIPTPAYMENTDOCITEM1 | TransactionCurrency | Transaction Currency | |
| AccountingDocumentType | P_PAYTRECEIPTPAYMENTDOCITEM1 | AccountingDocumentType | Journal Entry Type | |
| Currency | P_PAYTRECEIPTPAYMENTDOCITEM1 | Currency | Valuation Crcy | |
| CompanyCodeCurrency | P_PAYTRECEIPTPAYMENTDOCITEM1 | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | ||||
| CashDiscountAmount | ||||
| NetPaymentAmount | ||||
| IsUsedInPaymentTransaction | P_PAYTRECEIPTPAYMENTDOCITEM1 | IsUsedInPaymentTransaction | Is Used In Payment Transaction | |
| ClearingAccountingDocument | ||||
| OperationalDocItemQty |
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_PaytReceiptPaymentDocItem.
-- 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: PPAYTRCPTPAYTDOC
CREATE VIEW P_PaytReceiptPaymentDocItem AS
SELECT
GLAccountLineItem.CompanyCode AS CompanyCode,
GLAccountLineItem.FiscalYear AS FiscalYear,
GLAccountLineItem.AccountingDocument AS AccountingDocument,
min(GLAccountLineItem.AccountingDocumentItem) AS AccountingDocumentItem,
GLAccountLineItem.CompanyCodeName AS CompanyCodeName,
GLAccountLineItem.DocumentReferenceID AS DocumentReferenceID,
GLAccountLineItem.Customer AS Customer,
GLAccountLineItem.Supplier AS Supplier,
GLAccountLineItem.AlternativeReferenceDocument AS AlternativeReferenceDocument,
GLAccountLineItem.BusinessPlace AS BusinessPlace,
GLAccountLineItem.Country AS Country,
GLAccountLineItem.DocumentDate AS DocumentDate,
GLAccountLineItem.PostingDate AS PostingDate,
sum(GLAccountLineItem.AmountInTransactionCurrency) AS AmountInTransactionCurrency,
GLAccountLineItem.TransactionCurrency AS TransactionCurrency,
GLAccountLineItem.AccountingDocumentType AS AccountingDocumentType,
GLAccountLineItem.Currency AS Currency,
GLAccountLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
sum(GLAccountLineItem.AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
sum(GLAccountLineItem.CashDiscountAmount) AS CashDiscountAmount,
sum(GLAccountLineItem.NetPaymentAmount) AS NetPaymentAmount,
GLAccountLineItem.IsUsedInPaymentTransaction AS IsUsedInPaymentTransaction,
min(GLAccountLineItem.ClearingAccountingDocument) AS ClearingAccountingDocument,
count(distinct GLAccountLineItem.AccountingDocumentItem ) AS OperationalDocItemQty
FROM P_PAYTRECEIPTPAYMENTDOCITEM1 AS GLAccountLineItem
;
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