P_PE_OriginalJournalEntry
P_PE_OriginalJournalEntry is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, I_JournalEntryItem) and exposes 6 fields with key fields CompanyCode, FiscalYear, AccountingDocument.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | JournalEntry | from |
| I_JournalEntryItem | JournalEntryItem | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPEORIJNLENT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntry | CompanyCode | |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | |
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | |
| InvoiceReference | I_JournalEntryItem | InvoiceReference | ||
| DocumentDate | I_JournalEntry | DocumentDate | ||
| DocumentReferenceID | I_JournalEntry | DocumentReferenceID |
@AbapCatalog.sqlViewName: 'PPEORIJNLENT'
@AbapCatalog.compiler.compareFilter: true
@VDM.private:true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
define view P_PE_OriginalJournalEntry
as select from I_JournalEntry as JournalEntry
inner join I_JournalEntryItem as JournalEntryItem on JournalEntry.CompanyCode = JournalEntryItem.CompanyCode
and JournalEntry.AccountingDocument = JournalEntryItem.InvoiceReference
and JournalEntry.FiscalYear = JournalEntryItem.FiscalYear
{
key JournalEntry.CompanyCode,
key JournalEntry.FiscalYear,
key JournalEntry.AccountingDocument,
JournalEntryItem.InvoiceReference,
JournalEntry.DocumentDate,
JournalEntry.DocumentReferenceID
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY",
"I_JOURNALENTRYITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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