P_PE_SalesOriginalJrnlEntry

DDL: P_PE_SALESORIGINALJRNLENTRY SQL: PPEORIDOCSL Type: view CONSUMPTION

Original Documents for Sales Ledger Peru

P_PE_SalesOriginalJrnlEntry is a Consumption CDS View that provides data about "Original Documents for Sales Ledger Peru" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, I_JournalEntryItem) and exposes 7 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntry OriginalDocumentsHeader from
I_JournalEntryItem OriginalDocumentsItem inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPEORIDOCSL 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 #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Original Documents for Sales Ledger Peru view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntryItem CompanyCode
KEY FiscalYear I_JournalEntryItem FiscalYear
KEY AccountingDocument I_JournalEntryItem AccountingDocument
InvoiceReference I_JournalEntryItem InvoiceReference
ClearingAccountingDocument I_JournalEntryItem ClearingAccountingDocument
DocumentDate I_JournalEntry DocumentDate
DocumentReferenceID I_JournalEntry DocumentReferenceID
@AbapCatalog.sqlViewName: 'PPEORIDOCSL'
@AbapCatalog.compiler.compareFilter: true
@VDM.private:true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@EndUserText.label: 'Original Documents for Sales Ledger Peru'
define view P_PE_SalesOriginalJrnlEntry as select from I_JournalEntry as OriginalDocumentsHeader
   inner join      I_JournalEntryItem           as OriginalDocumentsItem  on  OriginalDocumentsItem.CompanyCode      = OriginalDocumentsHeader.CompanyCode
                                                                          and OriginalDocumentsItem.InvoiceReference = OriginalDocumentsHeader.AccountingDocument
                                                                          and OriginalDocumentsItem.FiscalYear       = OriginalDocumentsHeader.FiscalYear
{
  key OriginalDocumentsItem.CompanyCode,
  key OriginalDocumentsItem.FiscalYear,
  key OriginalDocumentsItem.AccountingDocument,
  
  OriginalDocumentsItem.InvoiceReference,
  OriginalDocumentsItem.ClearingAccountingDocument,
  OriginalDocumentsHeader.DocumentDate,
  OriginalDocumentsHeader.DocumentReferenceID
}

where  OriginalDocumentsItem.FinancialAccountType = 'D'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY",
"I_JOURNALENTRYITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/