P_MSPWProductStock

DDL: P_MSPWPRODUCTSTOCK SQL: PMSPWPRDSTCK Type: view BASIC Package: RFM_STORE_MOVE_PROD_WORKLIST

MPW: Calculate stock per storage location and product

P_MSPWProductStock is a Basic CDS View that provides data about "MPW: Calculate stock per storage location and product" in SAP S/4HANA. It reads from 1 data source (nsdm_e_mard) and exposes 4 fields with key fields Material, Plant, StorageLocation. Part of development package RFM_STORE_MOVE_PROD_WORKLIST.

Data Sources (1)

SourceAliasJoin Type
nsdm_e_mard nsdm_e_mard from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMSPWPRDSTCK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Material nsdm_e_mard matnr Vehicle Model
KEY Plant werks Receiving Plant
KEY StorageLocation lgort Sublocation
MatlWrhsStkQtyInMatlBaseUnit Unrestricted

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_MSPWProductStock.
-- 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: PMSPWPRDSTCK

CREATE VIEW P_MSPWProductStock AS
SELECT
  nsdm_e_mard.matnr AS Material,
  werks AS Plant,
  lgort AS StorageLocation,
  cast (labst as nsdm_stock_qty ) AS MatlWrhsStkQtyInMatlBaseUnit
FROM nsdm_e_mard
;