P_MPE_MaterialMrpAreaStock

DDL: P_MPE_MATERIALMRPAREASTOCK Type: view_entity CONSUMPTION

Stock data for Material Plant MrpArea

P_MPE_MaterialMrpAreaStock is a Consumption CDS View that provides data about "Stock data for Material Plant MrpArea" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 5 fields with key fields matnr, werks, berid.

Data Sources (1)

SourceAliasJoin Type
matdoc mat from

Annotations (5)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
EndUserText.label Stock data for Material Plant MrpArea view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

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