R_MngJrnlEntrChangeDocument
Journal Entry - Changed Document
R_MngJrnlEntrChangeDocument is a Transactional CDS View that provides data about "Journal Entry - Changed Document" in SAP S/4HANA. It reads from 4 data sources (R_MngJrnlEntrPrkdChgDocTblKey, I_JournalEntryHistory, I_ChangeDocumentItem, R_MngJrnlEntrPrkdChgHeader) and exposes 57 fields with key fields CompanyCode, Ledger, AccountingDocument, ChangeDocument, DatabaseTable.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| R_MngJrnlEntrPrkdChgDocTblKey | _AccountingDoc | inner |
| I_JournalEntryHistory | _Change | from |
| I_ChangeDocumentItem | _ChangeDocItem | union_all |
| R_MngJrnlEntrPrkdChgHeader | _ChangeDocItem | union_all |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Journal Entry - Changed Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | |||
| KEY | Ledger | I_JournalEntryHistory | Ledger | |
| KEY | AccountingDocument | |||
| KEY | ChangeDocument | I_JournalEntryHistory | ChangeDocument | |
| KEY | DatabaseTable | I_JournalEntryHistory | DatabaseTable | |
| KEY | ChangeDocTableKey | I_JournalEntryHistory | ChangeDocTableKey | |
| KEY | ChangeDocDatabaseTableField | I_JournalEntryHistory | DatabaseTableField | |
| KEY | JournalEntryItem | I_JournalEntryHistory | AccountingDocumentItem | |
| KEY | FiscalYear | |||
| DocumentDate | ||||
| PostingDate | ||||
| ChangedBy | I_JournalEntryHistory | UserName | ||
| LastChangeTime | I_JournalEntryHistory | LastChangeTime | ||
| ChangedFieldOldValue | I_JournalEntryHistory | OldFieldContent | ||
| ChangedFieldNewValue | I_JournalEntryHistory | NewFieldContent | ||
| LastChangedDate | I_JournalEntryHistory | LastChangeDate | ||
| CreationDate | I_JournalEntryHistory | AccountingDocumentCreationDate | ||
| CreationTime | I_JournalEntryHistory | CreationTime | ||
| AccountingDocumentType | I_JournalEntryHistory | AccountingDocumentType | ||
| CompanyCode | ||||
| KEY | Ledger | R_MngJrnlEntrPrkdChgDocTblKey | Ledger | |
| KEY | AccountingDocument | R_MngJrnlEntrPrkdChgDocTblKey | AccountingDocument | |
| KEY | ChangeDocument | R_MngJrnlEntrPrkdChgHeader | ChangeDocument | |
| KEY | DatabaseTable | R_MngJrnlEntrPrkdChgHeader | DatabaseTable | |
| KEY | ChangeDocTableKey | R_MngJrnlEntrPrkdChgHeader | ChangeDocTableKey | |
| KEY | ChangeDocDatabaseTableField | R_MngJrnlEntrPrkdChgHeader | ChangeDocDatabaseTableField | |
| KEY | JournalEntryItem | R_MngJrnlEntrPrkdChgDocTblKey | AccountingDocumentItem | |
| KEY | FiscalYear | R_MngJrnlEntrPrkdChgDocTblKey | FiscalYear | |
| DocumentDate | R_MngJrnlEntrPrkdChgDocTblKey | DocumentDate | ||
| PostingDate | R_MngJrnlEntrPrkdChgDocTblKey | PostingDate | ||
| ChangedBy | ||||
| LastChangeTime | ||||
| ChangedFieldOldValue | R_MngJrnlEntrPrkdChgHeader | ChangeDocPreviousFieldValue | ||
| ChangedFieldNewValue | R_MngJrnlEntrPrkdChgHeader | ChangeDocNewFieldValue | ||
| LastChangedDate | ||||
| CreationDate | R_MngJrnlEntrPrkdChgDocTblKey | AccountingDocumentCreationDate | ||
| CreationTime | R_MngJrnlEntrPrkdChgDocTblKey | CreationTime | ||
| AccountingDocumentType | R_MngJrnlEntrPrkdChgDocTblKey | AccountingDocumentType | ||
| KEY | Ledger | Ledger | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | ChangeDocument | ChangeDocument | ||
| KEY | DatabaseTable | DatabaseTable | ||
| KEY | ChangeDocTableKey | ChangeDocTableKey | ||
| KEY | ChangeDocDatabaseTableField | ChangeDocDatabaseTableField | ||
| KEY | JournalEntryItem | |||
| KEY | FiscalYear | FiscalYear | ||
| DocumentDate | DocumentDate | |||
| PostingDate | PostingDate | |||
| ChangedBy | ChangedBy | |||
| LastChangeTime | LastChangeTime | |||
| ChangedFieldOldValue | ChangedFieldOldValue | |||
| ChangedFieldNewValue | ChangedFieldNewValue | |||
| LastChangedDate | LastChangedDate | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| AccountingDocumentType | AccountingDocumentType | |||
| AccountingDocumentCategory | AccountingDocumentCategory |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Journal Entry - Changed Document'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #D,
sizeCategory: #XL,
dataClass: #MIXED
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type:#SAP_INTERNAL_API
}
define view entity R_MngJrnlEntrChangeDocument
as select from I_JournalEntryHistory as _Change
{
key cast( _Change.CompanyCode as fis_bukrs preserving type ) as CompanyCode,
key _Change.Ledger,
key cast( _Change.AccountingDocument as farp_belnr_d preserving type ) as AccountingDocument,
key _Change.ChangeDocument as ChangeDocument,
key _Change.DatabaseTable as DatabaseTable,
key _Change.ChangeDocTableKey as ChangeDocTableKey,
key _Change.DatabaseTableField as ChangeDocDatabaseTableField,
key _Change.AccountingDocumentItem as JournalEntryItem,
key cast( _Change.FiscalYear as fis_gjahr_no_conv preserving type ) as FiscalYear,
cast( _Change.DocumentDate as fis_bldat preserving type ) as DocumentDate,
cast( _Change.PostingDate as fis_budat preserving type) as PostingDate,
_Change.UserName as ChangedBy,
_Change.LastChangeTime as LastChangeTime,
_Change.OldFieldContent as ChangedFieldOldValue,
_Change.NewFieldContent as ChangedFieldNewValue,
_Change.LastChangeDate as LastChangedDate,
_Change.AccountingDocumentCreationDate as CreationDate,
_Change.CreationTime,
_Change.AccountingDocumentType,
_Change.AccountingDocumentCategory
}
union all select from I_ChangeDocumentItem as _ChangeDocItem
inner join R_MngJrnlEntrPrkdChgDocTblKey as _AccountingDoc on _ChangeDocItem.DatabaseTable = _AccountingDoc.DatabaseTable
and _ChangeDocItem.ChangeDocTableKey = _AccountingDoc.ChangeDocumentTableKey
{
key _AccountingDoc.CompanyCode,
key _AccountingDoc.Ledger,
key _AccountingDoc.AccountingDocument,
key _ChangeDocItem.ChangeDocument,
key _ChangeDocItem.DatabaseTable,
key _ChangeDocItem.ChangeDocTableKey,
key _ChangeDocItem.ChangeDocDatabaseTableField,
key _AccountingDoc.AccountingDocumentItem as JournalEntryItem,
key _AccountingDoc.FiscalYear,
_AccountingDoc.DocumentDate,
_AccountingDoc.PostingDate,
_ChangeDocItem._ChangeDocument.CreatedByUser as ChangedBy,
_ChangeDocItem._ChangeDocument.CreationTime as LastChangeTime,
_ChangeDocItem.ChangeDocPreviousFieldValue as ChangedFieldOldValue,
_ChangeDocItem.ChangeDocNewFieldValue as ChangedFieldNewValue,
_ChangeDocItem._ChangeDocument.CreationDate as LastChangedDate,
_AccountingDoc.AccountingDocumentCreationDate as CreationDate,
_AccountingDoc.CreationTime,
_AccountingDoc.AccountingDocumentType,
_AccountingDoc.AccountingDocumentCategory
}
where
_ChangeDocItem.ChangeDocObjectClass = 'BELEGV'
and _ChangeDocItem.DatabaseTable <> 'VBKPF'
union all select from R_MngJrnlEntrPrkdChgHeader as _ChangeDocItem
{
key CompanyCode,
key Ledger,
key AccountingDocument,
key ChangeDocument,
key DatabaseTable,
key ChangeDocTableKey,
key ChangeDocDatabaseTableField,
key cast ('' as docln6 ) as JournalEntryItem,
key FiscalYear,
DocumentDate,
PostingDate,
ChangedBy,
LastChangeTime,
ChangedFieldOldValue,
ChangedFieldNewValue,
LastChangedDate,
CreationDate,
CreationTime,
AccountingDocumentType,
AccountingDocumentCategory
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHANGEDOCUMENT",
"I_CHANGEDOCUMENTITEM",
"I_JOURNALENTRYHISTORY",
"R_MNGJRNLENTRPRKDCHGDOCTBLKEY",
"R_MNGJRNLENTRPRKDCHGHEADER"
],
"ASSOCIATED":
[],
"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