P_MltplMatlStk_L2

DDL: P_MLTPLMATLSTK_L2 Type: view_entity COMPOSITE

P_MltplMatlStk_L2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MltplMatlStk_L1) and exposes 26 fields with key fields Material, Plant, StorageLocation, Batch, Supplier.

Data Sources (1)

SourceAliasJoin Type
P_MltplMatlStk_L1 P_MltplMatlStk_L1 from

Parameters (1)

NameTypeDefault
P_EndDate sydate

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY Batch Batch Lot No.
KEY Supplier Supplier Supplier
KEY SDDocument SDDocument SD Document
KEY SDDocumentItem SDDocumentItem Stock Ident Item
KEY WBSElementInternalID WBSElementInternalID WBS Internal ID
KEY Customer Customer Sold-to Party
KEY ResourceID ResourceID Vehicle ID
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY CostEstimate CostEstimate Cost EstimateNo
CompanyCode CompanyCode Receiver Company Code
MaterialBaseUnit MaterialBaseUnit Valuation Unit
InventoryValuationType InventoryValuationType Valuation Type
Currency Currency Valuation Crcy
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
GoodsReceiptBlockedStockQty

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_MltplMatlStk_L2.
-- 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.
-- Parameters: P_EndDate : sydate

CREATE VIEW P_MltplMatlStk_L2 AS
SELECT
  Material,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  SDDocument,
  SDDocumentItem,
  WBSElementInternalID,
  Customer,
  ResourceID,
  InventorySpecialStockType,
  CostEstimate,
  CompanyCode,
  MaterialBaseUnit,
  InventoryValuationType,
  Currency,
  sum(VltdUnrestrictedUseStkQty) AS VltdUnrestrictedUseStkQty,
  sum(QualityInspectionStockQuantity) AS QualityInspectionStockQuantity,
  sum(ReturnsBlockedStockQuantity) AS ReturnsBlockedStockQuantity,
  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
FROM P_MltplMatlStk_L1
;