P_Stockmaterial

DDL: P_STOCKMATERIAL SQL: PSTOCKMATERIAL Type: view COMPOSITE

P_Stockmaterial is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (mara, nsdm_e_marc) and exposes 3 fields with key fields Material, Plant.

Data Sources (2)

SourceAliasJoin Type
mara _Material from
nsdm_e_marc _Plant inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PSTOCKMATERIAL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY Material mara matnr Vehicle Model
KEY Plant nsdm_e_marc werks Receiving Plant
matklasMaterialGroupnote3571319

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_Stockmaterial.
-- 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: PSTOCKMATERIAL

CREATE VIEW P_Stockmaterial AS
SELECT
  _Material.matnr AS Material,
  _Plant.werks AS Plant,
  _Material.matkl as MaterialGroup AS matklasMaterialGroupnote3571319
FROM mara AS _Material
INNER JOIN nsdm_e_marc AS _Plant ON /* join condition not captured in parsed metadata */
;