I_MatlInvtryLdgrQtyStructure

DDL: I_MATLINVTRYLDGRQTYSTRUCTURE Type: view_entity COMPOSITE Package: FCML4H_DISPLAY

Matl Invtry Ledger with Qty Structure

I_MatlInvtryLdgrQtyStructure (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_MatlInvtryLdgrQtyStructure is a Composite CDS View that provides data about "Matl Invtry Ledger with Qty Structure" in SAP S/4HANA. It reads from 1 data source (P_MatlInvtryLdgrQtyStructure) and exposes 31 fields with key fields CostEstimate, CurrencyRole, Ledger, MaterialLedgerCategory, ProcessCategory. It has 5 associations to related views. Part of development package FCML4H_DISPLAY.

SAP Help Documentation

CategoryCDS Views for Inventory Accounting
Purpose
This CDS view displays material inventory values within a selected range of periods. They are grouped at the Category / Process Category level of the Valuated Quantity Structure / Material Update Structure from the material ledger. This CDS view provides the data to answer the following business questions: What were the inventory amounts and valuation quantities grouped at the Category / Process Category level within the selected range of periods? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BUKRS_GLRLDNR_GLRRCTY_GLRVERS ( Company Code / Ledger / Record Type / Version ) BWKEY ( Valuation Area ) MTART ( Material Type ) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Parameters The parameters of the CDS view are as follows: P_FromFiscalYearPeriod P_ToFiscalYearPeriod These parameters are used to define the fiscal period range. Important Fields Important fields in this view include the following: Field Name Description CostEstimate Technical key representing the object to be costed. CurrencyRole Coded representation of the currency and valuation type. Ledger Ledger in General Ledger Accounting MaterialLedgerCategory Category in Material Ledger Data Display ProcessCategory Process Category (Procurement/Withdrawal) ValuationArea Valuation Area PriceDeterminationControl Material Price Determination: Control Material Material/Product InventoryValuationType Valuation Type SalesOrder Sales and Distribution Document Number SalesOrderItem Item Number of the Sales and Distribution document InventorySpecialStockType Special Stock Indicator Supplier Account Number of Supplier WBSElementExternalID WBS Element MaterialLedgerCategoryText Description/Name for Category in Material Ledger Data Display ProcessCategoryName Description/Name for Process Category (Procurement/Withdrawal) InventorySpecialStockTypeName Description/Name for Special Stock Indicator TotalVltdStockQuantity Quantity ValuationQuantityUnit Quantity Unit InventoryAmtInDspCrcy Inventory Value InvtryTransacAmtInDisplayCrcy Preliminary Value PriceDiffAmtInDisplayCrcy Price Difference ExchRateDiffAmtInDspCurrency Exchange Rate Difference Currency Currency Key

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentCO-PC-ACT-2CL
CapabilitiesData Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view displays material inventory values within a selected range of periods. They are grouped at the Category/Process Category level of the Valuated Quantity Structure/Material Update Structure from the material ledger.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What were the inventory amounts and valuation quantities grouped at the Category/Process Category level within the selected range of periods?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_MatlInvtryLdgrQtyStructure P_MatlInvtryLdgrQtyStructure from

Parameters (2)

NameTypeDefault
P_FromFiscalYearPeriod fml_fyearperiod_from
P_ToFiscalYearPeriod fml_fyearperiod_to

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Material = _Product.Product
[0..1] I_Plant _Plant $projection.ValuationArea = _Plant.Plant
[1..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[1..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[1..1] I_UnitOfMeasure _QuantityUnit $projection.ValuationQuantityUnit = _QuantityUnit.UnitOfMeasure

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Matl Invtry Ledger with Qty Structure view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost Estimate Number for Cost Est. w/o Qty Structure
KEY CurrencyRole CurrencyRole External Currency Type and Valuation View
KEY Ledger Ledger Ledger in General Ledger Accounting
KEY MaterialLedgerCategory MaterialLedgerCategory Material Ledger Category
KEY ProcessCategory ProcessCategory Process Category
KEY ValuationArea ValuationArea Valuation Area
KEY PriceDeterminationControl PriceDeterminationControl Material Price Determination: Control
Material Material Material Number
InventoryValuationType InventoryValuationType Valuation Type
SalesOrder SalesOrder Sales and Distribution Document Number
SalesOrderItem SalesOrderItem Item number of the SD document
InventorySpecialStockType InventorySpecialStockType Special Stock Indicator
Supplier Supplier Account Number of Supplier
WBSElementExternalID WBSElementExternalID Work Breakdown Structure Element (WBS Element) Edited
MaterialLedgerCategoryText MaterialLedgerCategoryText Material Ledger Category Text
ProcessCategoryName ProcessCategoryName Process Category Text
InventorySpecialStockTypeName InventorySpecialStockTypeName Special Stock Type Name
TotalVltdStockQuantity TotalVltdStockQuantity Transaction Quantity in Valuation Quantity Unit of Mesure
ValuationQuantityUnit ValuationQuantityUnit Quantity Unit for Valuation
InventoryAmtInDspCrcy InventoryAmtInDspCrcy Inventory Value
InvtryTransacAmtInDisplayCrcy InvtryTransacAmtInDisplayCrcy Preliminary Value
PriceDiffAmtInDisplayCrcy PriceDiffAmtInDisplayCrcy Price Difference
ExchRateDiffAmtInDspCurrency ExchRateDiffAmtInDspCurrency Exchange Rate Difference
Currency Currency Valuation Crcy
ControllingArea ControllingArea Controlling Area
ControllingValuationType ControllingValuationType Valuation View (for Transfer Prices)
_Product _Product
_Plant _Plant
_Ledger _Ledger
_Currency _Currency
_QuantityUnit _QuantityUnit

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 I_MatlInvtryLdgrQtyStructure.
-- 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.
-- Parameters: P_FromFiscalYearPeriod : fml_fyearperiod_from, P_ToFiscalYearPeriod : fml_fyearperiod_to

CREATE VIEW I_MatlInvtryLdgrQtyStructure AS
SELECT
  CostEstimate,
  CurrencyRole,
  Ledger,
  MaterialLedgerCategory,
  ProcessCategory,
  ValuationArea,
  PriceDeterminationControl,
  Material,
  InventoryValuationType,
  SalesOrder,
  SalesOrderItem,
  InventorySpecialStockType,
  Supplier,
  WBSElementExternalID,
  MaterialLedgerCategoryText,
  ProcessCategoryName,
  InventorySpecialStockTypeName,
  TotalVltdStockQuantity,
  ValuationQuantityUnit,
  InventoryAmtInDspCrcy,
  InvtryTransacAmtInDisplayCrcy,
  PriceDiffAmtInDisplayCrcy,
  ExchRateDiffAmtInDspCurrency,
  Currency,
  ControllingArea,
  ControllingValuationType
FROM P_MatlInvtryLdgrQtyStructure
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _QuantityUnit ON ValuationQuantityUnit = _QuantityUnit.UnitOfMeasure  -- association [1..1]
;