FAC_DART_Z3_JournalEnty_CHGDOC

DDL: FAC_DART_Z3_JOURNALENTY_CHGDOC SQL: FAC_DZJECHGD Type: view Package: FINS_FI_DART_Z3

Journal Entry Change Document

FAC_DART_Z3_JournalEnty_CHGDOC is a CDS View that provides data about "Journal Entry Change Document" in SAP S/4HANA. It reads from 1 data source (fiscds_trk_doc_02) and exposes 23 fields with key fields CompanyCode, FiscalYear, AccountingDocument, JournalEntryItem, Ledger. It has 3 associations to related views. Part of development package FINS_FI_DART_Z3.

Data Sources (1)

SourceAliasJoin Type
fiscds_trk_doc_02 fiscds_trk_doc_02 from

Parameters (5)

NameTypeDefault
P_Ledger fins_ledger
P_FiscalYear fins_gjahr
P_FromCreationDate fis_budat_from
P_ToCreationDate fis_budat_to
P_Language sylangu

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_ChgDocItemChangeTypeText _ChgDocItemChangeTypeText chlog.chngind = _ChgDocItemChangeTypeText.ChangeDocItemChangeType
[0..*] I_ChangeLogDatabaseTableText _ChangeLogDatabaseTableText chlog.TableName = _ChangeLogDatabaseTableText.DatabaseTable
[0..1] I_CompanyCode _CompanyCode chlog.CompanyCode = _CompanyCode.CompanyCode

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName FAC_DZJECHGD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Journal Entry Change Document view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY JournalEntryItem JournalEntryItem Journal Entry Item
KEY Ledger Ledger Ledger
KEY ChangeDocument changenr Document Number
KEY DatabaseTable TableName Table/View Name
KEY ChangeDocTableKey tabkey Table Keys
KEY FieldName fname User
GLAccountNR GLAccountNR
DatabaseTableText
FieldText FieldName UI Group FieldName
ChangeDocItemChangeTypeText
ChangedBy ChangedBy User Name
ChangedAt ChangedAt Time Stamp
OldValue OldValue Table value
NewValue NewValue New Field Value
ChangedOn ChangedOn Time Stamp
text_case text_case Text flag
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
SystemClient System Client
ChartOfAccounts _CompanyCode ChartOfAccounts Node Class

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 FAC_DART_Z3_JournalEnty_CHGDOC.
-- 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: FAC_DZJECHGD
-- Parameters: P_Ledger : fins_ledger, P_FiscalYear : fins_gjahr, P_FromCreationDate : fis_budat_from, P_ToCreationDate : fis_budat_to, P_Language : sylangu

CREATE VIEW FAC_DART_Z3_JournalEnty_CHGDOC AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  JournalEntryItem,
  Ledger,
  changenr AS ChangeDocument,
  TableName AS DatabaseTable,
  tabkey AS ChangeDocTableKey,
  fname AS FieldName,
  GLAccountNR,
  _ChangeLogDatabaseTableText[1: Language = $parameters.P_Language].DatabaseTableText AS DatabaseTableText,
  FieldName AS FieldText,
  _ChgDocItemChangeTypeText[1: Language = $parameters.P_Language].ChangeDocItemChangeTypeText AS ChangeDocItemChangeTypeText,
  ChangedBy,
  ChangedAt,
  OldValue,
  NewValue,
  ChangedOn,
  text_case,
  CreationDate,
  CreationTime,
  cast ( $session.client as char3 ) AS SystemClient,
  _CompanyCode.ChartOfAccounts AS ChartOfAccounts
FROM fiscds_trk_doc_02
LEFT OUTER JOIN I_ChgDocItemChangeTypeText AS _ChgDocItemChangeTypeText ON chlog.chngind = _ChgDocItemChangeTypeText.ChangeDocItemChangeType  -- association [0..*]
LEFT OUTER JOIN I_ChangeLogDatabaseTableText AS _ChangeLogDatabaseTableText ON chlog.TableName = _ChangeLogDatabaseTableText.DatabaseTable  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON chlog.CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;