R_MatlStkDetCsgnmtProduct

DDL: R_MATLSTKDETCSGNMTPRODUCT Type: view_entity COMPOSITE

Material Stock Details Csgmnt Product

R_MatlStkDetCsgnmtProduct is a Composite CDS View that provides data about "Material Stock Details Csgmnt Product" in SAP S/4HANA. It reads from 1 data source (R_MatlStkDetCsgnmtStorLoc) and exposes 8 fields with key fields MaterialStockReportUUID, Product.

Data Sources (1)

SourceAliasJoin Type
R_MatlStkDetCsgnmtStorLoc R_MatlStkDetCsgnmtStorLoc from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material Stock Details Csgmnt Product view
VDM.viewType #COMPOSITE view
VDM.private false view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY MaterialStockReportUUID MaterialStockReportUUID
KEY Product Product Product Sold
ProductName ProductName Description
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlStkIncrQtyInMatlBaseUnit
MatlStkDecrQtyInMatlBaseUnit
MatlWrhsStkQtyInMatlBaseUnit
_StorageLocLvl _StorageLocLvl

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 R_MatlStkDetCsgnmtProduct.
-- 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 R_MatlStkDetCsgnmtProduct AS
SELECT
  MaterialStockReportUUID,
  Product,
  ProductName,
  MaterialBaseUnit,
  sum( MatlStkIncrQtyInMatlBaseUnit ) AS MatlStkIncrQtyInMatlBaseUnit,
  sum( MatlStkDecrQtyInMatlBaseUnit ) AS MatlStkDecrQtyInMatlBaseUnit,
  sum( MatlWrhsStkQtyInMatlBaseUnit ) AS MatlWrhsStkQtyInMatlBaseUnit
FROM R_MatlStkDetCsgnmtStorLoc
;