P_PL_SAFTJournalEntry
P_PL_SAFTJournalEntry is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 13 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Ledger.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSAFTPLJRNLENTRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | Ledger | Ledger | ||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| TotalGrossAmountInCoCodeCrcy | ||||
| _JournalEntry | _JournalEntry | |||
| _Ledger | _Ledger | |||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _SourceLedger | _SourceLedger | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency |
@AbapCatalog.sqlViewName: 'PSAFTPLJRNLENTRY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #P
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_PL_SAFTJournalEntry
as select from I_JournalEntryItem
{
key SourceLedger as SourceLedger,
key CompanyCode as CompanyCode,
key FiscalYear as FiscalYear,
key AccountingDocument as AccountingDocument,
key Ledger as Ledger,
@Semantics.currencyCode: true
CompanyCodeCurrency,
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
sum(AmountInCompanyCodeCurrency) as TotalGrossAmountInCoCodeCrcy,
_JournalEntry,
_Ledger,
//Associations
_CompanyCode,
_FiscalYear,
_SourceLedger,
_CompanyCodeCurrency
}
where
DebitCreditCode = 'S'
group by
SourceLedger,
CompanyCode,
FiscalYear,
AccountingDocument,
Ledger,
CompanyCodeCurrency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRYITEM"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CURRENCY",
"I_FISCALYEARFORCOMPANYCODE",
"I_JOURNALENTRY",
"I_LEDGER"
],
"BASE":
[
"I_JOURNALENTRYITEM"
],
"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