P_PE_OriginalJournalEntry

DDL: P_PE_ORIGINALJOURNALENTRY SQL: PPEORIJNLENT Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_JournalEntry JournalEntry from
I_JournalEntryItem JournalEntryItem inner

Annotations (9)

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

KeyFieldSource TableSource FieldDescription
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":""
}
}*/