P_JrnlEntrWithRprstvLdgr

DDL: P_JRNLENTRWITHRPRSTVLDGR SQL: PJRNLENTRRP Type: view COMPOSITE

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)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Ledger _Ledger _LedgerGroup.Ledger = _Ledger.Ledger or ( I_JournalEntry.LedgerGroup = '' and _Ledger.IsLeadingLedger = 'X')

Annotations (10)

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

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