P_SupDmndAllDocMatlStkAggrgd

DDL: P_SUPDMNDALLDOCMATLSTKAGGRGD Type: view_entity COMPOSITE

Aggregated View for Material Stock

P_SupDmndAllDocMatlStkAggrgd is a Composite CDS View that provides data about "Aggregated View for Material Stock" in SAP S/4HANA. It reads from 1 data source (P_SupDmndAllDocMatlStk) and exposes 23 fields.

Data Sources (1)

SourceAliasJoin Type
P_SupDmndAllDocMatlStk P_SupDmndAllDocMatlStk from

Annotations (9)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Aggregated View for Material Stock view
Metadata.ignorePropagatedAnnotations true view

Fields (23)

KeyFieldSource TableSource FieldDescription
Material Material Vehicle Model
Plant Plant Valuation Area
Batch Batch Lot No.
StorageLocation StorageLocation StorageLocation
InventorySpecialStockType InventorySpecialStockType Special Stock Type
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
Customer Customer Sold-to Party
Supplier Supplier Supplier
UnrestrictedStkInStkUnit
QualityInspectionStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
GoodsReceiptBlockedStockQty
TotalQuantity
BaseUnit BaseUnit Unit of Measure
DocumentCurrency DocumentCurrency Document Currency
NetPriceAmount NetPriceAmount Net Price
SupplyDeliveryDate SupplyDeliveryDate

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_SupDmndAllDocMatlStkAggrgd.
-- 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_SupDmndAllDocMatlStkAggrgd AS
SELECT
  Material,
  Plant,
  Batch,
  StorageLocation,
  InventorySpecialStockType,
  SalesOrder,
  SalesOrderItem,
  Customer,
  Supplier,
  sum(UnrestrictedStkInStkUnit) AS UnrestrictedStkInStkUnit,
  sum(QualityInspectionStockQuantity) AS QualityInspectionStockQuantity,
  sum(TransferStockStorageLocQty) AS TransferStockStorageLocQty,
  sum(TransferStockPlantQuantity) AS TransferStockPlantQuantity,
  sum(StockInTransitQuantity) AS StockInTransitQuantity,
  sum(BlockedStockQuantity) AS BlockedStockQuantity,
  sum(RestrictedStockQuantity) AS RestrictedStockQuantity,
  sum(TiedEmptiesStockQuantity) AS TiedEmptiesStockQuantity,
  sum(GoodsReceiptBlockedStockQty) AS GoodsReceiptBlockedStockQty,
  sum(TotalQuantity) AS TotalQuantity,
  BaseUnit,
  DocumentCurrency,
  NetPriceAmount,
  SupplyDeliveryDate
FROM P_SupDmndAllDocMatlStk
;