P_MatStkQtyValOVP3

DDL: P_MATSTKQTYVALOVP3 Type: view_entity COMPOSITE Package: MM_IM_VDM_STOCK

Stock Quantity and Value by Type

P_MatStkQtyValOVP3 is a Composite CDS View that provides data about "Stock Quantity and Value by Type" in SAP S/4HANA. It reads from 1 data source (P_MatStkQtyValOVP2) and exposes 15 fields with key fields Material, Plant, StorageLocation, InventoryStockType, InventorySpecialStockType. Part of development package MM_IM_VDM_STOCK.

Data Sources (1)

SourceAliasJoin Type
P_MatStkQtyValOVP2 P_MatStkQtyValOVP2 from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY InventoryStockType InventoryStockType Stock Type
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlWrhsStkQtyInMatlBaseUnit
StockValueInCCCrcy
Currency Currency Valuation Crcy
_UnitOfMeasure _UnitOfMeasure
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_InventoryStockType _InventoryStockType
_InventorySpecialStockType _InventorySpecialStockType

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 P_MatStkQtyValOVP3.
-- 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.

CREATE VIEW P_MatStkQtyValOVP3 AS
SELECT
  Material,
  Plant,
  StorageLocation,
  InventoryStockType,
  InventorySpecialStockType,
  MaterialBaseUnit,
  cast(sum(MatlWrhsStkQtyInMatlBaseUnit) as nsdm_material_stock_in_buom) AS MatlWrhsStkQtyInMatlBaseUnit,
  cast(sum(StockValueInCCCrcy) as nsdm_stock_value_in_cccrcy) AS StockValueInCCCrcy,
  Currency
FROM P_MatStkQtyValOVP2
;