FAC_DART_Z3_MATLINVTRY_LINEITM

DDL: FAC_DART_Z3_MATLINVTRY_LINEITM SQL: FAC_DZMILNITM Type: view Package: FINS_FI_DART_Z3

Material Inventory Line Item

FAC_DART_Z3_MATLINVTRY_LINEITM is a CDS View that provides data about "Material Inventory Line Item" in SAP S/4HANA. It reads from 2 data sources (FAC_DART_Z3_MI_LINEITEM_BASE, I_LedgerCompanyCodeCrcyRoles) and exposes 46 fields with key fields SourceLedger, CompanyCode, Ledger, GLAccount, FiscalYear. It has 5 associations to related views. Part of development package FINS_FI_DART_Z3.

Data Sources (2)

SourceAliasJoin Type
FAC_DART_Z3_MI_LINEITEM_BASE FAC_DART_Z3_MI_LINEITEM_BASE from
I_LedgerCompanyCodeCrcyRoles I_LedgerCompanyCodeCrcyRoles inner

Parameters (3)

NameTypeDefault
P_FiscalYear fins_gjahr
P_FromFiscalPeriod fins_fagl_fiscper_from
P_ToFiscalPeriod fins_fagl_fiscper_to

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
[1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[0..1] I_ReferenceDocumentType _ReferenceDocumentType $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType
[0..1] I_FiscalPeriodForVariant _FromFiscalYearPeriod _FromFiscalYearPeriod.FiscalYearVariant = $projection.FiscalYearVariant and _FromFiscalYearPeriod.FiscalYear = $parameters.P_FiscalYear and _FromFiscalYearPeriod.FiscalPeriod = $parameters.P_FromFiscalPeriod
[0..1] I_FiscalPeriodForVariant _ToFiscalYearPeriod _ToFiscalYearPeriod.FiscalYearVariant = $projection.FiscalYearVariant and _ToFiscalYearPeriod.FiscalYear = $parameters.P_FiscalYear and _ToFiscalYearPeriod.FiscalPeriod = $parameters.P_ToFiscalPeriod

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FAC_DZMILNITM 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 view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode FAC_DART_Z3_MI_LINEITEM_BASE CompanyCode Receiver Company Code
KEY Ledger FAC_DART_Z3_MI_LINEITEM_BASE 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
FiscalYearVariant I_LedgerCompanyCodeCrcyRoles FiscalYearVariant FY Variant
ChartOfAccounts FAC_DART_Z3_MI_LINEITEM_BASE ChartOfAccounts Node Class
GLAccountLongName
MaterialName
MaterialGroup MaterialGroup Product Group
MaterialGroupName
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
AccountingDocumentTypeName
OriginalReferenceDocument _JournalEntry OriginalReferenceDocument Reference Key
ReferenceDocumentType ReferenceDocumentType Reference Document Type
ReferenceDocumentTypeName
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
CompanyCodeCurrency CompanyCodeCurrency Local Currency
InventoryQty InventoryQty
BaseUnit BaseUnit Unit of Measure
ValuationArea ValuationArea Valuation Area
_CompanyCode FAC_DART_Z3_MI_LINEITEM_BASE _CompanyCode
MaterialDocument MaterialDocument Material Doc.
MaterialDocumentYear MaterialDocumentYear Material Document Year
InventoryTransactionType _MaterialDocumentHeader InventoryTransactionType Trans. Ev. Type
DocumentDate _JournalEntry DocumentDate Journal Entry Date
AccountingDocumentHeaderText _JournalEntry AccountingDocumentHeaderText Doc.Header Text
AccountingDocumentCreationDate _JournalEntry AccountingDocumentCreationDate Journal Entry Date
AccountingDocCreatedByUser _JournalEntry AccountingDocCreatedByUser User which created overhead document
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_JournalEntry _JournalEntry
_Material _Material
_ChartOfAccounts FAC_DART_Z3_MI_LINEITEM_BASE _ChartOfAccounts
_MaterialGroup _MaterialGroup
_Plant _Plant
_AccountingDocumentType _AccountingDocumentType
_ReferenceDocumentType _ReferenceDocumentType
_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_MATLINVTRY_LINEITM.
-- 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_DZMILNITM
-- Parameters: P_FiscalYear : fins_gjahr, P_FromFiscalPeriod : fins_fagl_fiscper_from, P_ToFiscalPeriod : fins_fagl_fiscper_to

CREATE VIEW FAC_DART_Z3_MATLINVTRY_LINEITM AS
SELECT
  SourceLedger,
  FAC_DART_Z3_MI_LINEITEM_BASE.CompanyCode AS CompanyCode,
  FAC_DART_Z3_MI_LINEITEM_BASE.Ledger AS Ledger,
  GLAccount,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  Material,
  I_LedgerCompanyCodeCrcyRoles.FiscalYearVariant AS FiscalYearVariant,
  FAC_DART_Z3_MI_LINEITEM_BASE.ChartOfAccounts AS ChartOfAccounts,
  _GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
  _Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
  MaterialGroup,
  _MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
  PostingDate,
  Plant,
  _Plant.PlantName AS PlantName,
  FiscalPeriod,
  _JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
  AccountingDocumentType,
  _AccountingDocumentType._Text[1: Language = $session.system_language].AccountingDocumentTypeName AS AccountingDocumentTypeName,
  _JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
  ReferenceDocumentType,
  _ReferenceDocumentType._Text[1: Language = $session.system_language ].ReferenceDocumentTypeName AS ReferenceDocumentTypeName,
  AmountInCompanyCodeCurrency,
  CompanyCodeCurrency,
  InventoryQty,
  BaseUnit,
  ValuationArea,
  FAC_DART_Z3_MI_LINEITEM_BASE._CompanyCode AS _CompanyCode,
  MaterialDocument,
  MaterialDocumentYear,
  _MaterialDocumentHeader.InventoryTransactionType AS InventoryTransactionType,
  _JournalEntry.DocumentDate AS DocumentDate,
  _JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  _JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
  _JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  FAC_DART_Z3_MI_LINEITEM_BASE._ChartOfAccounts AS _ChartOfAccounts
FROM FAC_DART_Z3_MI_LINEITEM_BASE
INNER JOIN I_LedgerCompanyCodeCrcyRoles ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType  -- association [0..1]
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_ReferenceDocumentType AS _ReferenceDocumentType ON ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _FromFiscalYearPeriod ON _FromFiscalYearPeriod.FiscalYearVariant = FiscalYearVariant AND _FromFiscalYearPeriod.FiscalYear = $parameters.P_FiscalYear AND _FromFiscalYearPeriod.FiscalPeriod = $parameters.P_FromFiscalPeriod  -- association [0..1]
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _ToFiscalYearPeriod ON _ToFiscalYearPeriod.FiscalYearVariant = FiscalYearVariant AND _ToFiscalYearPeriod.FiscalYear = $parameters.P_FiscalYear AND _ToFiscalYearPeriod.FiscalPeriod = $parameters.P_ToFiscalPeriod  -- association [0..1]
;