P_JOURNALENTRYHEADERHISTORY

CDS View

Change History Header GL & Entry View

P_JOURNALENTRYHEADERHISTORY is a CDS View in S/4HANA. Change History Header GL & Entry View. It contains 3 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_JournalEntryHistory view inner COMPOSITE Journal Entry History Export as CDS Service

Fields (3)

KeyField CDS FieldsUsed in Views
KEY AccountingDocumentItem AccountingDocumentItem 1
AccountingDocumentType AccountingDocumentType 1
CreationTime CreationTime 1
@AbapCatalog.sqlViewName: 'PJNHEADERTRKDOC'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'AccountingDocument'
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true

define view P_JournalEntryHeaderHistory
  as select from I_JournalEntry as bkpf
{
  key    bkpf.CompanyCode,
  key    bkpf.AccountingDocument,
  key    bkpf.FiscalYear,
         ''                                                                                                                                  as AccountingDocumentItem,
         bkpf.Ledger,
         bkpf.PostingDate,
         bkpf.DocumentDate,
         CreationTime                                                                                                                        as timestamp,
         CreationTime,
         AccountingDocumentCreationDate,
         replace(replace(concat( bkpf.mandt, concat( rpad(bkpf.CompanyCode, 4, '|'), concat( bkpf.AccountingDocument, bkpf.FiscalYear))), '|', '| |'), '|', '')                                   as objectid,
         replace(replace(concat( bkpf.mandt, concat( rpad(bkpf.CompanyCode, 4, '|'), concat( bkpf.AccountingDocument, concat( bkpf.FiscalYear, '000')))), '|', '| |'), '|', '')                   as bkpf_tabkey,
         ''                                                                                                                                  as FinancialAccountType,
         ''                                                                                                                                  as GLAccount,
         AccountingDocumentType,
         AccountingDocumentCategory
}
where
     AccountingDocumentCategory = 'B'
  or AccountingDocumentCategory = 'U'
  or AccountingDocumentCategory = ' '