fiscds_mref_doc_01

DDL: FISVD_MREF_DOC_01 SQL: FISV_MREF_DOC_01 Type: view Package: FINS_FIS_GL

Document with Multi-Referenced Invoice

fiscds_mref_doc_01 is a CDS View that provides data about "Document with Multi-Referenced Invoice" in SAP S/4HANA. It reads from 3 data sources (fiscds_mref_invoice, bkpf, I_GLAccountLineItem) and exposes 27 fields. Part of development package FINS_FIS_GL.

Data Sources (3)

SourceAliasJoin Type
fiscds_mref_invoice a from
bkpf b inner
I_GLAccountLineItem c inner

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName FISV_MREF_DOC_01 view
EndUserText.label Document with Multi-Referenced Invoice view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (27)

KeyFieldSource TableSource FieldDescription
bukrs fiscds_mref_invoice bukrs Value
gjahr fiscds_mref_invoice gjahr Settlement Year
xblnr fiscds_mref_invoice xblnr Reference
rldnr I_GLAccountLineItem Ledger Ledger
rldnr_pers I_GLAccountLineItem SourceLedger Source Ledger
docln I_GLAccountLineItem LedgerGLLineItem Journal Entry Item
belnr bkpf belnr SD Document
koart I_GLAccountLineItem FinancialAccountType Fin. Account Type
bldat bkpf bldat Journal Entry Date
blart bkpf blart Rep. rec. doc. type
CreationDate bkpf cpudt Imported On
budat bkpf budat Posting Date
zuonr I_GLAccountLineItem AssignmentReference Assignment Reference
usnam I_GLAccountLineItem AccountingDocCreatedByUser User which created overhead document
bschl I_GLAccountLineItem PostingKey Posting Key
hsl I_GLAccountLineItem AmountInCompanyCodeCurrency Local Crcy Amt
rhcur I_GLAccountLineItem CompanyCodeCurrency Local Currency
wsl I_GLAccountLineItem AmountInTransactionCurrency Pt Crcy Amt
rwcur I_GLAccountLineItem TransactionCurrency Transaction Currency
AmountInFunctionalCurrency I_GLAccountLineItem AmountInFunctionalCurrency Amount in Functional Currency
FunctionalCurrency I_GLAccountLineItem FunctionalCurrency Functional Currency
ktopl I_GLAccountLineItem ChartOfAccounts Node Class
racct I_GLAccountLineItem GLAccount General Ledger
umskz I_GLAccountLineItem SpecialGLCode Special G/L Ind
Supplierendaswakonto
stblg bkpf stblg Reversed With
stgrd bkpf stgrd Reversal Reason

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_mref_doc_01.
-- 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_MREF_DOC_01

CREATE VIEW fiscds_mref_doc_01 AS
SELECT
  a.bukrs AS bukrs,
  a.gjahr AS gjahr,
  a.xblnr AS xblnr,
  c.Ledger AS rldnr,
  c.SourceLedger AS rldnr_pers,
  c.LedgerGLLineItem AS docln,
  b.belnr AS belnr,
  c.FinancialAccountType AS koart,
  b.bldat AS bldat,
  b.blart AS blart,
  b.cpudt AS CreationDate,
  b.budat AS budat,
  c.AssignmentReference AS zuonr,
  c.AccountingDocCreatedByUser AS usnam,
  c.PostingKey AS bschl,
  c.AmountInCompanyCodeCurrency AS hsl,
  c.CompanyCodeCurrency AS rhcur,
  c.AmountInTransactionCurrency AS wsl,
  c.TransactionCurrency AS rwcur,
  c.AmountInFunctionalCurrency AS AmountInFunctionalCurrency,
  c.FunctionalCurrency AS FunctionalCurrency,
  c.ChartOfAccounts AS ktopl,
  c.GLAccount AS racct,
  c.SpecialGLCode AS umskz,
  case c.FinancialAccountType when 'D' then c.Customer when 'K' then c.Supplier end as wakonto AS Supplierendaswakonto,
  b.stblg AS stblg,
  b.stgrd AS stgrd
FROM fiscds_mref_invoice AS a
INNER JOIN bkpf AS b ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountLineItem AS c ON /* join condition not captured in parsed metadata */
;