P_MaterialStockRoC1

DDL: P_MATERIALSTOCKROC1 SQL: PMATSTOCKROC1 Type: view COMPOSITE

P_MaterialStockRoC1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_Aggr) and exposes 6 fields with key fields Material, Plant, MaterialBaseUnit, MatlDocLatestPostgDate.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock_Aggr I_MaterialStock_Aggr from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_NumberOfDays nsdm_roc_consideration_period

Annotations (10)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PMATSTOCKROC1 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
KEY MatlDocLatestPostgDate MatlDocLatestPostgDate Posting Date for GR
MatlWrhsStkQtyInMatlBaseUnit
MatlCnsmpnQtyInMatlBaseUnit

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_MaterialStockRoC1.
-- 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: PMATSTOCKROC1
-- Parameters: P_KeyDate : abap.dats, P_NumberOfDays : nsdm_roc_consideration_period

CREATE VIEW P_MaterialStockRoC1 AS
SELECT
  Material,
  Plant,
  MaterialBaseUnit,
  MatlDocLatestPostgDate,
  sum(MatlWrhsStkQtyInMatlBaseUnit) AS MatlWrhsStkQtyInMatlBaseUnit,
  sum(MatlCnsmpnQtyInMatlBaseUnit) AS MatlCnsmpnQtyInMatlBaseUnit
FROM I_MaterialStock_Aggr
;