P_MatStkQtyValOVP3

DDL: P_MATSTKQTYVALOVP3 SQL: PMATSTKQTYVALOP3 Type: view COMPOSITE

P_MatStkQtyValOVP3 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MatStkQtyValOVP2) and exposes 15 fields with key fields Material, Plant, StorageLocation, InventoryStockType, InventorySpecialStockType.

Data Sources (1)

SourceAliasJoin Type
P_MatStkQtyValOVP2 P_MatStkQtyValOVP2 from

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PMATSTKQTYVALOP3 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE 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.
-- SQL view name: PMATSTKQTYVALOP3

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
;