Arun_Stock_Menge

DDL: ARUN_STOCK_MENGE SQL: ARUN_V_STK_MENGE Type: view

Fetch total physical stock

Arun_Stock_Menge is a CDS View that provides data about "Fetch total physical stock" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock) and exposes 8 fields.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock ms from

Parameters (1)

NameTypeDefault
p_lifnr lifnr

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName ARUN_V_STK_MENGE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Fetch total physical stock view

Fields (8)

KeyFieldSource TableSource FieldDescription
Material I_MaterialStock Material Vehicle Model
Plant I_MaterialStock Plant Valuation Area
StorageLocation I_MaterialStock StorageLocation StorageLocation
Batch I_MaterialStock Batch Lot No.
InventorySpecialStockType I_MaterialStock InventorySpecialStockType Special Stock Type
Supplier I_MaterialStock Supplier Supplier
StockQty
MaterialBaseUnit I_MaterialStock MaterialBaseUnit Valuation Unit

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 Arun_Stock_Menge.
-- 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: ARUN_V_STK_MENGE
-- Parameters: p_lifnr : lifnr

CREATE VIEW Arun_Stock_Menge AS
SELECT
  ms.Material AS Material,
  ms.Plant AS Plant,
  ms.StorageLocation AS StorageLocation,
  ms.Batch AS Batch,
  ms.InventorySpecialStockType AS InventorySpecialStockType,
  ms.Supplier AS Supplier,
  sum(ms.MatlWrhsStkQtyInMatlBaseUnit) AS StockQty,
  ms.MaterialBaseUnit AS MaterialBaseUnit
FROM I_MaterialStock AS ms
;