FAC_DART_Z3_MI_LINEITEM_BASE
Material Inventory Line Item Base
FAC_DART_Z3_MI_LINEITEM_BASE is a CDS View that provides data about "Material Inventory Line Item Base" in SAP S/4HANA. It reads from 1 data source (I_Materialledgercube_Lit) and exposes 33 fields with key fields SourceLedger, CompanyCode, Ledger, GLAccount, FiscalYear. It has 2 associations to related views. Part of development package FINS_FI_DART_Z3.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Materialledgercube_Lit | I_Materialledgercube_Lit | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument |
| [1..1] | I_MaterialDocumentHeader | _MaterialDocumentHeader | $projection.MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocumentHeader.MaterialDocument |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FAC_DZMILNITMB | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Material Inventory Line Item Base | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | I_Materialledgercube_Lit | CompanyCode | Receiver Company Code |
| KEY | Ledger | I_Materialledgercube_Lit | Ledger | Ledger |
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | Material | Material | Vehicle Model | |
| ChartOfAccounts | I_Materialledgercube_Lit | ChartOfAccounts | Node Class | |
| MaterialGroup | MaterialGroup | Product Group | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| FiscalPeriod | FiscalPeriod | Tax period | ||
| AccountingDocumentCategory | _JournalEntry | AccountingDocumentCategory | Journal Entry Category | |
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| OriginalReferenceDocument | _JournalEntry | OriginalReferenceDocument | Reference Key | |
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| InventoryQty | InventoryQty | |||
| BaseUnit | BaseUnit | Unit of Measure | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| _CompanyCode | I_Materialledgercube_Lit | _CompanyCode | ||
| MaterialDocument | ||||
| MaterialDocumentYear | ||||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _JournalEntry | _JournalEntry | |||
| _Material | _Material | |||
| _ChartOfAccounts | I_Materialledgercube_Lit | _ChartOfAccounts | ||
| _MaterialGroup | _MaterialGroup | |||
| _Plant | _Plant | |||
| _MaterialDocumentHeader | _MaterialDocumentHeader |
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_MI_LINEITEM_BASE.
-- 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_DZMILNITMB
CREATE VIEW FAC_DART_Z3_MI_LINEITEM_BASE AS
SELECT
SourceLedger,
I_Materialledgercube_Lit.CompanyCode AS CompanyCode,
I_Materialledgercube_Lit.Ledger AS Ledger,
GLAccount,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
Material,
I_Materialledgercube_Lit.ChartOfAccounts AS ChartOfAccounts,
MaterialGroup,
PostingDate,
Plant,
_Plant.PlantName AS PlantName,
FiscalPeriod,
_JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
AccountingDocumentType,
_JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
ReferenceDocumentType,
AmountInCompanyCodeCurrency,
CompanyCodeCurrency,
InventoryQty,
BaseUnit,
ValuationArea,
I_Materialledgercube_Lit._CompanyCode AS _CompanyCode,
cast( substring( _JournalEntry.OriginalReferenceDocument, 1, 10 ) as mblnr ) AS MaterialDocument,
cast( substring( _JournalEntry.OriginalReferenceDocument, 11, 4 ) as mjahr ) AS MaterialDocumentYear,
I_Materialledgercube_Lit._ChartOfAccounts AS _ChartOfAccounts
FROM I_Materialledgercube_Lit
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument -- association [1]
LEFT OUTER JOIN I_MaterialDocumentHeader AS _MaterialDocumentHeader ON MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear AND MaterialDocument = _MaterialDocumentHeader.MaterialDocument -- association [1..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