C_JournalEntryChangeLog
Journal Entry Change Log
C_JournalEntryChangeLog is a Consumption CDS View that provides data about "Journal Entry Change Log" in SAP S/4HANA. It has 6 associations to related views. It is exposed through 3 OData services (ASQL_F2681, ASQL_F7795, ASQL_F7796). Part of development package ODATA_INSPECT_ITEMS_CHNGLOG.
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_JournalFieldElementText | _JournalFieldElementText | $projection.DatabaseTable = _JournalFieldElementText.DatabaseTable and $projection.ChangeDocDatabaseTableField = _JournalFieldElementText.DatabaseTableFieldName and _JournalFieldElementText.Language = $session.system_language |
| [1..1] | C_JournalEntryUserContactCard | _UserContactCard | $projection.CreatedByUser = _UserContactCard.ContactCardID |
| [1..1] | C_JournalEntryCustomerCard | _CustomerContactCard | $projection.Customer = _CustomerContactCard.ContactCardID |
| [1..1] | C_JournalEntrySupplierCard | _SupplierContactCard | $projection.Supplier = _SupplierContactCard.ContactCardID |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_InspectItemDocumentTypeVH | _InspectItemDocumentTypeVH | $projection.InspectItemDocumentType = _InspectItemDocumentTypeVH.DocumentType and _InspectItemDocumentTypeVH.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIACCDOCCHNGLOG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Journal Entry Change Log | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (3)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2681 | ASQL_F2681 | C2 | NOT_RELEASED | |
| ASQL_F7795 | ASQL_F7795 | C2 | NOT_RELEASED | |
| ASQL_F7796 | ASQL_F7796 | C2 | NOT_RELEASED |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectItemDocumentType | Document | InspectItemDocumentType | |
| KEY | CompanyCode | Document | CompanyCode | Receiver Company Code |
| KEY | ChangeDocObjectClass | Document | ChangeDocObjectClass | Change Doc. Object |
| KEY | ChangeDocument | Document | ChangeDocument | Document Number |
| KEY | DatabaseTable | Document | DatabaseTable | Table Name |
| KEY | ChangeDocDatabaseTableField | Document | ChangeDocDatabaseTableField | |
| KEY | ChangeDocItemChangeType | Document | ChangeDocItemChangeType | |
| KEY | ChangeDocTableKey | Document | ChangeDocTableKey | |
| KEY | ChangeDocObject | Document | ChangeDocObject | Object Value |
| KEY | AccountingDocumentItem | Journal Entry Item | ||
| AccountingDocument | Document | AccountingDocument | Journal Entry | |
| CreationDate | Document | CreationDate | Time Stamp | |
| CreationTime | Document | CreationTime | Time of Change | |
| FiscalYear | Document | FiscalYear | Fiscal Year | |
| CreatedByUser | Document | CreatedByUser | User | |
| DatabaseTableFieldName | Field Technical Name | |||
| AccountingDocumentType | Document | AccountingDocumentType | Accounting Document Type | |
| ChangeDocPreviousFieldValue | Document | ChangeDocPreviousFieldValue | Old Value | |
| ChangeDocNewFieldValue | Document | ChangeDocNewFieldValue | New Value | |
| ChangeDocLanguage | Document | ChangeDocLanguage | ||
| Customer | Customer | |||
| Supplier | Supplier | |||
| Ledger | Document | Ledger | Ledger | |
| AccountType | Document | AccountType | Accounting Type(dtl) | |
| PostingKey | Document | PostingKey | Posting Key | |
| SpecialGLCode | Document | SpecialGLCode | Special G/L Ind | |
| SupplierFinsAuthorizationGrp | _SupplierContactCard | AuthorizationGroup | AuthorizGroup | |
| CustomerFinsAuthorizationGrp | _CustomerContactCard | AuthorizationGroup | AuthorizGroup | |
| _UserContactCard | _UserContactCard | |||
| _InspectItemDocumentTypeVH | _InspectItemDocumentTypeVH | |||
| _CustomerContactCard | _CustomerContactCard | |||
| _SupplierContactCard | _SupplierContactCard | |||
| _CompanyCode | _CompanyCode |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_JournalEntryChangeLog.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CFIACCDOCCHNGLOG
CREATE VIEW C_JournalEntryChangeLog AS
SELECT
Document.InspectItemDocumentType AS InspectItemDocumentType,
Document.CompanyCode AS CompanyCode,
Document.ChangeDocObjectClass AS ChangeDocObjectClass,
Document.ChangeDocument AS ChangeDocument,
Document.DatabaseTable AS DatabaseTable,
Document.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
Document.ChangeDocItemChangeType AS ChangeDocItemChangeType,
Document.ChangeDocTableKey AS ChangeDocTableKey,
Document.ChangeDocObject AS ChangeDocObject,
cast(case when Document.DatabaseTable = 'BKPF' then '000' else Document.AccountingDocumentItem end as farp_buzei preserving type ) AS AccountingDocumentItem,
Document.AccountingDocument AS AccountingDocument,
Document.CreationDate AS CreationDate,
Document.CreationTime AS CreationTime,
Document.FiscalYear AS FiscalYear,
Document.CreatedByUser AS CreatedByUser,
coalesce(_JournalFieldElementText.ABAPMediumFieldLabel, '') AS DatabaseTableFieldName,
Document.AccountingDocumentType AS AccountingDocumentType,
Document.ChangeDocPreviousFieldValue AS ChangeDocPreviousFieldValue,
Document.ChangeDocNewFieldValue AS ChangeDocNewFieldValue,
Document.ChangeDocLanguage AS ChangeDocLanguage,
cast(Document.Customer as kunnr preserving type) AS Customer,
cast(Document.Supplier as lifnr preserving type) AS Supplier,
Document.Ledger AS Ledger,
Document.AccountType AS AccountType,
Document.PostingKey AS PostingKey,
Document.SpecialGLCode AS SpecialGLCode,
_SupplierContactCard.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
_CustomerContactCard.AuthorizationGroup AS CustomerFinsAuthorizationGrp
LEFT OUTER JOIN I_JournalFieldElementText AS _JournalFieldElementText ON DatabaseTable = _JournalFieldElementText.DatabaseTable AND ChangeDocDatabaseTableField = _JournalFieldElementText.DatabaseTableFieldName AND _JournalFieldElementText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_JournalEntryUserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN C_JournalEntryCustomerCard AS _CustomerContactCard ON Customer = _CustomerContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN C_JournalEntrySupplierCard AS _SupplierContactCard ON Supplier = _SupplierContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_InspectItemDocumentTypeVH AS _InspectItemDocumentTypeVH ON InspectItemDocumentType = _InspectItemDocumentTypeVH.DocumentType AND _InspectItemDocumentTypeVH.Language = $session.system_language -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA