FISCDS_TRK_DOC_03

DDL: FISVD_TRK_DOC_03 SQL: FISCDSTRKDOC03 Type: view

Change History for Ledger View

FISCDS_TRK_DOC_03 is a CDS View that provides data about "Change History for Ledger View" in SAP S/4HANA. It reads from 6 data sources and exposes 37 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocument, FiscalYear.

Data Sources (6)

SourceAliasJoin Type
acdoca acdoca union
bkpf bkpf left_outer
bkpf bkpf left_outer
bkpf bkpf left_outer
bseg_add bsegadd from
bseg_add bsegadd union

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName FISCDSTRKDOC03 view
EndUserText.label Change History for Ledger View view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bseg_add bukrs Value
KEY AccountingDocument bseg_add belnr SD Document
KEY FiscalYear bseg_add gjahr Settlement Year
JournalEntryItem Matching Document Line Item
Ledger bkpf ldgrp Ledger (Compat.)
PostingDate bkpf budat Posting Date
DocumentDate bldat Journal Entry Date
timestamp cputm Time
CreationTime cputm Time
CreationDate cpudt Imported On
objectid
AccountType bseg_add koart Account type
bukrsasCompanyCode
KEY AccountingDocument bseg_add belnr SD Document
KEY FiscalYear bseg_add gjahr Settlement Year
JournalEntryItem Matching Document Line Item
Ledger bkpf ldgrp Ledger (Compat.)
PostingDate bkpf budat Posting Date
DocumentDate bldat Journal Entry Date
timestamp cputm Time
CreationTime cputm Time
CreationDate cpudt Imported On
objectid
AccountType bseg_add koart Account type
rbukrsasCompanyCode
KEY AccountingDocument acdoca belnr SD Document
KEY FiscalYear acdoca gjahr Settlement Year
JournalEntryItem acdoca docln Matching Document Line Item
Ledger acdoca rldnr Ledger (Compat.)
PostingDate bkpf budat Posting Date
DocumentDate bkpf bldat Journal Entry Date
timestamp cputm Time
CreationTime cputm Time
CreationDate cpudt Imported On
objectid
AccountType acdoca koart Account type
GLAccountNR acdoca racct GL Account From

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_03.
-- 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: FISCDSTRKDOC03

CREATE VIEW FISCDS_TRK_DOC_03 AS
SELECT
  bsegadd.bukrs AS CompanyCode,
  bsegadd.belnr AS AccountingDocument,
  bsegadd.gjahr AS FiscalYear,
  cast(bsegadd.buzei as docln6) AS JournalEntryItem,
  bkpf.ldgrp AS Ledger,
  bkpf.budat AS PostingDate,
  bldat AS DocumentDate,
  cputm AS timestamp,
  cputm AS CreationTime,
  cpudt AS CreationDate,
  replace(replace(concat( bsegadd.mandt, concat(rpad(bsegadd.bukrs, 4, '|'), concat( bsegadd.belnr, bsegadd.gjahr))), '|', '| |'), '|', '') AS objectid,
  bsegadd.koart AS AccountType,
  bsegadd.hkont as GLAccountNR AS bukrsasCompanyCode,
  bsegadd.hkont as GLAccountNR AS rbukrsasCompanyCode,
  acdoca.racct AS GLAccountNR
FROM bseg_add AS bsegadd
LEFT OUTER JOIN bkpf ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): bseg_add, acdoca
;