FAC_DART_Z3_MI_LINEITEM_BASE

DDL: FAC_DART_Z3_MI_LINEITEM_BASE SQL: FAC_DZMILNITMB Type: view Package: FINS_FI_DART_Z3

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)

SourceAliasJoin Type
I_Materialledgercube_Lit I_Materialledgercube_Lit from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;