P_JrnlEntryReferenceDocument
P_JrnlEntryReferenceDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_Ledger) and exposes 6 fields with key fields CompanyCode, AccountingDocument, FiscalYear, ReferenceDocumentContext, ReferenceDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Ledger | LeadingLedger | inner |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | JournalEntry | CompanyCode | |
| KEY | AccountingDocument | JournalEntry | AccountingDocument | |
| KEY | FiscalYear | JournalEntry | FiscalYear | |
| KEY | ReferenceDocumentContext | JournalEntry | ReferenceDocumentContext | |
| KEY | ReferenceDocument | JournalEntry | ReferenceDocument | |
| KEY | ReversalReferenceDocumentType | JournalEntry | ReversalReferenceDocumentType |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private: true
@Metadata.ignorePropagatedAnnotations: true
define view entity P_JrnlEntryReferenceDocument
as select distinct from I_GLAccountLineItemRawData as JournalEntry
inner join I_Ledger as LeadingLedger on JournalEntry.SourceLedger = LeadingLedger.Ledger
and LeadingLedger.IsLeadingLedger = 'X'
{
key JournalEntry.CompanyCode,
key JournalEntry.AccountingDocument,
key JournalEntry.FiscalYear,
key JournalEntry.ReferenceDocumentContext,
key JournalEntry.ReferenceDocument,
key JournalEntry.ReversalReferenceDocumentType
}
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