P_JRNLENTRWITHRPRSTVLDGR

CDS View

Journal entry header with its representative ledger

P_JRNLENTRWITHRPRSTVLDGR is a CDS View in S/4HANA. Journal entry header with its representative ledger. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
I_CrcyAdjmtItemToBeVerified view inner COMPOSITE Union View of Crcy Adjmt to be verified
I_GLJrnlEntryItemToBeVerified view inner COMPOSITE Union View of LI in GL JE to be verified
@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
   
}