FAC_DART_Z3_JournalEnty_CHGDOC
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)
| Source | Alias | Join Type |
|---|---|---|
| fiscds_trk_doc_02 | fiscds_trk_doc_02 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FiscalYear | fins_gjahr | |
| P_FromCreationDate | fis_budat_from | |
| P_ToCreationDate | fis_budat_to | |
| P_Language | sylangu |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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