P_JrnlEntrWithRprstvLdgr
P_JrnlEntrWithRprstvLdgr is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntry) and exposes 5 fields with key fields CompanyCode, AccountingDocument, FiscalYear. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | I_JournalEntry | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Ledger | _Ledger | _LedgerGroup.Ledger = _Ledger.Ledger or ( I_JournalEntry.LedgerGroup = '' and _Ledger.IsLeadingLedger = 'X') |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJRNLENTRRP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntry | CompanyCode | |
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | |
| LedgerGroup | I_JournalEntry | LedgerGroup | ||
| Ledger | _Ledger | Ledger |
@AbapCatalog.sqlViewName: 'PJRNLENTRRP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private:true
define view P_JrnlEntrWithRprstvLdgr
as select from I_JournalEntry
left outer to one join I_LedgerGroupAssignment as _LedgerGroup on _LedgerGroup.LedgerGroup = I_JournalEntry.LedgerGroup
and _LedgerGroup.IsRepresentativeLedger = 'X'
association [1..1] to I_Ledger as _Ledger on _LedgerGroup.Ledger = _Ledger.Ledger
or ( I_JournalEntry.LedgerGroup = '' and _Ledger.IsLeadingLedger = 'X')
{
key I_JournalEntry.CompanyCode as CompanyCode,
key I_JournalEntry.AccountingDocument as AccountingDocument,
key I_JournalEntry.FiscalYear as FiscalYear,
I_JournalEntry.LedgerGroup as LedgerGroup,
_Ledger.Ledger as Ledger
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY",
"I_LEDGER",
"I_LEDGERGROUPASSIGNMENT"
],
"ASSOCIATED":
[
"I_LEDGER"
],
"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