fiscds_trk_doc_02

DDL: FISVD_TRK_DOC_02 SQL: FISV_TRK_DOC_02 Type: view Package: FINS_FIS_GL

Journal Entry History

fiscds_trk_doc_02 is a CDS View that provides data about "Journal Entry History" in SAP S/4HANA. It reads from 1 data source (FISVD_TRK_DOC_11) and exposes 23 fields with key fields CompanyCode, Ledger, AccountingDocument, changenr, TableName. It has 2 associations to related views. Part of development package FINS_FIS_GL.

Data Sources (1)

SourceAliasJoin Type
FISVD_TRK_DOC_11 FISVD_TRK_DOC_11 from

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (2)

CardinalityTargetAliasCondition
[0..1] fiscds_trk_fld_text field_text $projection.TableName = field_text.tabname and $projection.fname = field_text.fieldname
[0..1] dd04t dele_text $projection.fname = dele_text.rollname

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName FISV_TRK_DOC_02 view
EndUserText.label Journal Entry History view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
AccessControl.auditFilter #ENABLED view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger Ledger
KEY AccountingDocument AccountingDocument Journal Entry
KEY changenr changenr Document Number
KEY TableName TableName Table/View Name
KEY tabkey tabkey Table Keys
KEY fname fname User
KEY JournalEntryItem JournalEntryItem Journal Entry Item
ddtextendasFieldName
FiscalYear FiscalYear G/L Fiscal Year
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ChangedBy ChangedBy User Name
ChangedAt ChangedAt Time Stamp
OldValue OldValue Table value
NewValue NewValue New Field Value
ChangedOn ChangedOn Time Stamp
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
text_case text_case Text flag
AccountType AccountType Accounting Type(dtl)
GLAccountNR GLAccountNR
chngind chngind Change Indicator

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 fiscds_trk_doc_02.
-- 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: FISV_TRK_DOC_02
-- Parameters: P_Language : sylangu

CREATE VIEW fiscds_trk_doc_02 AS
SELECT
  CompanyCode,
  Ledger,
  AccountingDocument,
  changenr,
  TableName,
  tabkey,
  fname,
  JournalEntryItem,
  case when field_text[1:language = :P_Language].ddtext <> '' then field_text[1:language = :P_Language].ddtext else dele_text[1:ddlanguage = :P_Language].ddtext end as FieldName AS ddtextendasFieldName,
  FiscalYear,
  PostingDate,
  DocumentDate,
  ChangedBy,
  ChangedAt,
  OldValue,
  NewValue,
  ChangedOn,
  CreationDate,
  CreationTime,
  text_case,
  AccountType,
  GLAccountNR,
  chngind
FROM FISVD_TRK_DOC_11
LEFT OUTER JOIN fiscds_trk_fld_text AS field_text ON TableName = field_text.tabname AND fname = field_text.fieldname  -- association [0..1]
LEFT OUTER JOIN dd04t AS dele_text ON fname = dele_text.rollname  -- association [0..1]
;