P_PaymentReceiptRelatedDoc
P_PaymentReceiptRelatedDoc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, P_PaymentReceiptRelatedDoc1) and exposes 5 fields with key fields JournalEntry, LedgerGLLineItem, CompanyCode, FiscalYear.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | AcctgDocItem | left_outer |
| P_PaymentReceiptRelatedDoc1 | relatedDoc | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPAYTRCPTADOC | 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 (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | JournalEntry | P_PaymentReceiptRelatedDoc1 | JournalEntry | |
| KEY | LedgerGLLineItem | P_PaymentReceiptRelatedDoc1 | LedgerGLLineItem | |
| KEY | CompanyCode | P_PaymentReceiptRelatedDoc1 | CompanyCode | |
| KEY | FiscalYear | P_PaymentReceiptRelatedDoc1 | FiscalYear | |
| ClearingAccountingDocument | I_OperationalAcctgDocItem | ClearingJournalEntry |
@AbapCatalog.sqlViewName: 'PPAYTRCPTADOC'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PaymentReceiptRelatedDoc
as select from P_PaymentReceiptRelatedDoc1 as relatedDoc
left outer join I_OperationalAcctgDocItem as AcctgDocItem on relatedDoc.CompanyCode = AcctgDocItem.CompanyCode
and relatedDoc.LedgerGLLineItem = AcctgDocItem.AccountingDocumentItem
and relatedDoc.JournalEntry = AcctgDocItem.AccountingDocument
and relatedDoc.FiscalYear = AcctgDocItem.FiscalYear{
key relatedDoc.JournalEntry,
key relatedDoc.LedgerGLLineItem,
key relatedDoc.CompanyCode,
key relatedDoc.FiscalYear,
AcctgDocItem.ClearingJournalEntry as ClearingAccountingDocument
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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