P_MltplMatlStk_L1

DDL: P_MLTPLMATLSTK_L1 Type: view_entity COMPOSITE

P_MltplMatlStk_L1 is a Composite CDS View in SAP S/4HANA. It reads from 10 data sources and exposes 242 fields with key fields Material, Plant, StorageLocation, Batch, Supplier.

Data Sources (10)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all
I_MaterialDocumentRecord I_MaterialDocumentRecord union_all

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 (242)

KeyFieldSource TableSource FieldDescription
KEY Material StockIdentifyingMaterial Stock Mat.
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
KEY Plant Plant Valuation Area
KEY StorageLocation StockIdfgStorageLocation Stor. Location SID
KEY Batch StockIdentifyingBatch Batch SID
KEY Supplier SpecialStockIdfgSupplier Supplier SID
KEY SDDocument SpecialStockIdfgSalesOrder Stock Ident Header
KEY SDDocumentItem SpecialStockIdfgSalesOrderItem Stock Ident Item
KEY WBSElementInternalID SpecialStockIdfgWBSElement WBS Internal ID
KEY Customer SpecialStockIdfgCustomer Customer SID
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 CompanyCodeCurrency Local Currency
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_L1.
-- 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_L1 AS
SELECT
  StockIdentifyingMaterial AS Material,
  Plant,
  StockIdfgStorageLocation AS StorageLocation,
  StockIdentifyingBatch AS Batch,
  SpecialStockIdfgSupplier AS Supplier,
  SpecialStockIdfgSalesOrder AS SDDocument,
  SpecialStockIdfgSalesOrderItem AS SDDocumentItem,
  SpecialStockIdfgWBSElement AS WBSElementInternalID,
  SpecialStockIdfgCustomer AS Customer,
  ResourceID,
  InventorySpecialStockType,
  CostEstimate,
  CompanyCode,
  MaterialBaseUnit,
  InventoryValuationType,
  CompanyCodeCurrency AS Currency,
  cast(sum(MatlStkChangeQtyInBaseUnit) as abap.dec(21,3)) AS VltdUnrestrictedUseStkQty,
  cast(0 as abap.dec(21,3)) AS QualityInspectionStockQuantity,
  cast(0 as abap.dec(21,3)) AS ReturnsBlockedStockQuantity,
  cast(0 as abap.dec(21,3)) AS TransferStockStorageLocQty,
  cast(0 as abap.dec(21,3)) AS TransferStockPlantQuantity,
  cast(0 as abap.dec(21,3)) AS StockInTransitQuantity,
  cast(0 as abap.dec(21,3)) AS BlockedStockQuantity,
  cast(0 as abap.dec(21,3)) AS RestrictedStockQuantity,
  cast(0 as abap.dec(21,3)) AS TiedEmptiesStockQuantity,
  cast(sum(MatlStkChangeQtyInBaseUnit) as abap.dec(21,3)) AS GoodsReceiptBlockedStockQty
FROM I_MaterialDocumentRecord
-- UNION ALL with additional select branch(es): I_MaterialDocumentRecord
;