C_JournalEntryChangeLog

DDL: C_JOURNALENTRYCHANGELOG SQL: CFIACCDOCCHNGLOG Type: view CONSUMPTION Package: ODATA_INSPECT_ITEMS_CHNGLOG

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)

CardinalityTargetAliasCondition
[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)

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

ServiceBindingVersionContractRelease
ASQL_F2681 ASQL_F2681 C2 NOT_RELEASED
ASQL_F7795 ASQL_F7795 C2 NOT_RELEASED
ASQL_F7796 ASQL_F7796 C2 NOT_RELEASED

Fields (33)

KeyFieldSource TableSource FieldDescription
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]
;