P_PH_PaytReceivablePyblItm
Payment Receivable Payable Item
P_PH_PaytReceivablePyblItm is a Composite CDS View that provides data about "Payment Receivable Payable Item" in SAP S/4HANA. It reads from 2 data sources (P_PH_PaytClrdReceivablePyblItm, P_PH_PaytOpnReceivablePyblItm) and exposes 62 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, InvoiceReference. Part of development package GLO_FIN_IS_PH.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PH_PaytClrdReceivablePyblItm | P_PH_PaytClrdReceivablePyblItm | union |
| P_PH_PaytOpnReceivablePyblItm | P_PH_PaytOpnReceivablePyblItm | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPHPAYTRPITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | InvoiceReference | InvoiceReference | Invoice Reference | |
| KEY | InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| KEY | InvoiceItemReference | InvoiceItemReference | Item | |
| BusinessPlace | BusinessPlace | Business place | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| IsUsedInPaymentTransaction | IsUsedInPaymentTransaction | Is Used In Payment Transaction | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDocFiscalYear | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| GLAccount | GLAccount | General Ledger | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| Customer | Customer | Sold-to Party | ||
| Supplier | Supplier | Supplier | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| ClearedInvoiceNumber | InvoiceReference | |||
| isCreditMemoItem | ||||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | ||||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AmountInAdditionalCurrency1 | ||||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInAdditionalCurrency2 | ||||
| InvoiceCompanyCode | InvoiceCompanyCode | Receiver Company Code | ||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| CompanyCode | Receiver Company Code | |||
| KEY | AccountingDocument | P_PH_PaytClrdReceivablePyblItm | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PH_PaytClrdReceivablePyblItm | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | InvoiceReference | InvoiceReference | Invoice Reference | |
| KEY | InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| KEY | InvoiceItemReference | InvoiceItemReference | Item | |
| BusinessPlace | BusinessPlace | Business place | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| IsUsedInPaymentTransaction | IsUsedInPaymentTransaction | Is Used In Payment Transaction | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDocFiscalYear | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| GLAccount | GLAccount | General Ledger | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| Customer | Customer | Sold-to Party | ||
| Supplier | Supplier | Supplier | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| ClearedInvoiceNumber | ClearedInvoiceNumber | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| InvoiceCompanyCode | InvoiceCompanyCode | Receiver Company Code | ||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _OneTimeAccountBP | _OneTimeAccountBP |
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_PH_PaytReceivablePyblItm.
-- 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: PPHPAYTRPITM
CREATE VIEW P_PH_PaytReceivablePyblItm AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
InvoiceReference,
InvoiceReferenceFiscalYear,
InvoiceItemReference,
BusinessPlace,
PostingDate,
AccountingDocumentType,
FinancialAccountType,
IsUsedInPaymentTransaction,
ClearingAccountingDocument,
ClearingDocFiscalYear,
ClearingDate,
GLAccount,
DebitCreditCode,
Customer,
Supplier,
DocumentReferenceID,
InvoiceReference AS ClearedInvoiceNumber,
cast( '' as abap_boolean preserving type ) AS isCreditMemoItem,
TransactionCurrency,
abs(AmountInTransactionCurrency) AS AmountInTransactionCurrency,
CompanyCodeCurrency,
abs(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
AdditionalCurrency1,
abs(AmountInAdditionalCurrency1) AS AmountInAdditionalCurrency1,
AdditionalCurrency2,
abs(AmountInAdditionalCurrency1) AS AmountInAdditionalCurrency2,
InvoiceCompanyCode
FROM P_PH_PaytOpnReceivablePyblItm
-- UNION with additional select branch(es): P_PH_PaytClrdReceivablePyblItm
;
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