P_PE_SalesOriginalJrnlEntry
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | OriginalDocumentsHeader | from |
| I_JournalEntryItem | OriginalDocumentsItem | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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