fiscds_mref_doc_01
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.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| fiscds_mref_invoice | a | from |
| bkpf | b | inner |
| I_GLAccountLineItem | c | inner |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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