P_SLOWMOMATPREDSTOCKSUM

DDL: P_SLOWMOMATPREDSTOCKSUM SQL: PSLOWMOMATSTKAGR Type: view COMPOSITE

P_SLOWMOMATPREDSTOCKSUM is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_MatlStkPerdsInMonth, I_MaterialDocumentRecord) and exposes 14 fields with key fields StartDate, Material, Plant, StockIdentifyingBatch, SpecialStockIdfgSupplier.

Data Sources (2)

SourceAliasJoin Type
P_MatlStkPerdsInMonth per from
I_MaterialDocumentRecord rec inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSLOWMOMATSTKAGR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true 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
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY StartDate StartDate Valid From
KEY Material StockIdentifyingMaterial Stock Mat.
KEY Plant Plant Valuation Area
KEY StockIdentifyingBatch StockIdentifyingBatch Batch SID
KEY SpecialStockIdfgSupplier SpecialStockIdfgSupplier Supplier SID
KEY SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Stock Ident Header
KEY SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement WBS Internal ID
KEY SpecialStockIdfgCustomer SpecialStockIdfgCustomer Customer SID
KEY SpecialStockIdfgStockOwner SpecialStockIdfgStockOwner
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY InventoryStockType InventoryStockType Stock Type
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlStkChangeQtyInBaseUnit

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_SLOWMOMATPREDSTOCKSUM.
-- 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: PSLOWMOMATSTKAGR

CREATE VIEW P_SLOWMOMATPREDSTOCKSUM AS
SELECT
  StartDate,
  StockIdentifyingMaterial AS Material,
  Plant,
  StockIdentifyingBatch,
  SpecialStockIdfgSupplier,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  SpecialStockIdfgWBSElement,
  SpecialStockIdfgCustomer,
  SpecialStockIdfgStockOwner,
  InventorySpecialStockType,
  InventoryStockType,
  MaterialBaseUnit,
  sum(MatlStkChangeQtyInBaseUnit) AS MatlStkChangeQtyInBaseUnit
FROM P_MatlStkPerdsInMonth AS per
INNER JOIN I_MaterialDocumentRecord AS rec ON /* join condition not captured in parsed metadata */
;