P_MPE_ProductStorageLocation

DDL: P_MPE_PRODUCTSTORAGELOCATION Type: view_entity CONSUMPTION

Storage Location Data for Material

P_MPE_ProductStorageLocation is a Consumption CDS View that provides data about "Storage Location Data for Material" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 4 fields with key fields matnr, werks.

Data Sources (1)

SourceAliasJoin Type
matdoc mat from

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
EndUserText.label Storage Location Data for Material view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY matnr matdoc matbf Stock Mat.
KEY werks matdoc werks Receiving Plant
VltdUnrestrictedUseStkQty
BaseUnit matdoc meins 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 P_MPE_ProductStorageLocation.
-- 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_MPE_ProductStorageLocation AS
SELECT
  mat.matbf AS matnr,
  mat.werks AS werks,
  cast(sum(mat.stock_qty) as nsdm_stock_qty) AS VltdUnrestrictedUseStkQty,
  mat.meins AS BaseUnit
FROM matdoc AS mat
;