P_PaytReceiptPaymentDocItem

DDL: P_PAYTRECEIPTPAYMENTDOCITEM SQL: PPAYTRCPTPAYTDOC Type: view COMPOSITE

P_PaytReceiptPaymentDocItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_PAYTRECEIPTPAYMENTDOCITEM1) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
P_PAYTRECEIPTPAYMENTDOCITEM1 GLAccountLineItem from

Annotations (7)

NameValueLevelField
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 (21)

KeyFieldSource TableSource FieldDescription
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
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
DocumentDate P_PAYTRECEIPTPAYMENTDOCITEM1 DocumentDate Journal Entry Date
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.DocumentReferenceID AS DocumentReferenceID,
  GLAccountLineItem.Customer AS Customer,
  GLAccountLineItem.Supplier AS Supplier,
  GLAccountLineItem.AlternativeReferenceDocument AS AlternativeReferenceDocument,
  GLAccountLineItem.BusinessPlace AS BusinessPlace,
  GLAccountLineItem.DocumentDate AS DocumentDate,
  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
;