P_MltplMatlStk_L3_ALL

DDL: P_MLTPLMATLSTK_L3_ALL Type: view_entity COMPOSITE Package: MBND_CLOUD_BL

Lvl 3: Mat on stock and never on stock

P_MltplMatlStk_L3_ALL is a Composite CDS View that provides data about "Lvl 3: Mat on stock and never on stock" in SAP S/4HANA. It reads from 4 data sources (P_PLANTCURRENCY, P_MltplMatlStk_L4, P_MltplMatlStk_L4, I_ProductPlantBasic) and exposes 89 fields with key fields Material, Plant, StorageLocation, Batch, Supplier. Part of development package MBND_CLOUD_BL.

Data Sources (4)

SourceAliasJoin Type
P_PLANTCURRENCY CC inner
P_MltplMatlStk_L4 P_MltplMatlStk_L4 from
P_MltplMatlStk_L4 P_MltplMatlStk_L4 union_all
I_ProductPlantBasic Plant inner

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

KeyFieldSource TableSource FieldDescription
KEY Material WOS Material Vehicle Model
KEY Plant WOS Plant Valuation Area
KEY StorageLocation WOS StorageLocation StorageLocation
KEY Batch WOS Batch Lot No.
KEY Supplier Supplier
KEY SDDocument SD Document
KEY SDDocumentItem
KEY WBSElementInternalID WBS Internal ID
KEY Customer Sold-to Party
KEY ResourceID Vehicle ID
KEY InventorySpecialStockType Special Stock Type
CompanyCode P_PLANTCURRENCY CompanyCode Receiver Company Code
MaterialBaseUnit I_ProductPlantBasic BaseUnit Valuation Unit
InventoryValuationType Valuation Type
Currency P_PLANTCURRENCY CompanyCurrency Valuation Crcy
VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity
ReturnsBlockedStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity Stk in Transit
BlockedStockQuantity
RestrictedStockQuantity
TiedEmptiesStockQuantity
GoodsReceiptBlockedStockQty Val. GR Blocked Stck
CurrentStockCurVal
QualityInspectionStockCurVal
ReturnsBlockedStockCurVal
TransferStockStorageLocCurVal
TransferStockPlantCurVal
StockInTransitCurVal
BlockedStockCurVal
RestrictedStockCurVal
TiedEmptiesStockCurVal
GoodsReceiptBlockedStockCurVal
CurrentStockValue
QualityInspectionStockValue
ReturnsBlockedStockValue
TransferStockStorageLocValue
TransferStockPlantValue
StockInTransitValue
BlockedStockValue
RestrictedStockValue
TiedEmptiesStockValue
P_EndDatekeyMaterial
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
KEY WBSElementInternalID WBSElementInternalID WBS Internal ID
KEY Customer Customer Sold-to Party
KEY ResourceID ResourceID Vehicle ID
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
CompanyCode CompanyCode Receiver Company Code
MaterialBaseUnit MaterialBaseUnit Valuation Unit
InventoryValuationType InventoryValuationType Valuation Type
Currency Currency Valuation Crcy
VltdUnrestrictedUseStkQty VltdUnrestrictedUseStkQty
QualityInspectionStockQuantity QualityInspectionStockQuantity
ReturnsBlockedStockQuantity ReturnsBlockedStockQuantity
TransferStockStorageLocQty TransferStockStorageLocQty
TransferStockPlantQuantity TransferStockPlantQuantity
StockInTransitQuantity StockInTransitQuantity Stk in Transit
BlockedStockQuantity BlockedStockQuantity
RestrictedStockQuantity RestrictedStockQuantity
TiedEmptiesStockQuantity TiedEmptiesStockQuantity
GoodsReceiptBlockedStockQty GoodsReceiptBlockedStockQty Val. GR Blocked Stck
CurrentStockCurVal CurrentStockCurVal
QualityInspectionStockCurVal QualityInspectionStockCurVal
ReturnsBlockedStockCurVal ReturnsBlockedStockCurVal
TransferStockStorageLocCurVal TransferStockStorageLocCurVal
TransferStockPlantCurVal TransferStockPlantCurVal
StockInTransitCurVal StockInTransitCurVal
BlockedStockCurVal BlockedStockCurVal
RestrictedStockCurVal RestrictedStockCurVal
TiedEmptiesStockCurVal TiedEmptiesStockCurVal
GoodsReceiptBlockedStockCurVal GoodsReceiptBlockedStockCurVal
CurrentStockValue CurrentStockValue
QualityInspectionStockValue QualityInspectionStockValue
ReturnsBlockedStockValue ReturnsBlockedStockValue
TransferStockStorageLocValue TransferStockStorageLocValue
TransferStockPlantValue TransferStockPlantValue
StockInTransitValue StockInTransitValue
BlockedStockValue BlockedStockValue
RestrictedStockValue RestrictedStockValue
TiedEmptiesStockValue TiedEmptiesStockValue
GoodsReceiptBlockedStockValue GoodsReceiptBlockedStockValue

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_L3_ALL.
-- 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_L3_ALL AS
SELECT
  WOS.Material AS Material,
  WOS.Plant AS Plant,
  WOS.StorageLocation AS StorageLocation,
  WOS.Batch AS Batch,
  cast('' as nsdm_lifnr) AS Supplier,
  cast('' as mat_kdauf) AS SDDocument,
  cast('' as mat_kdpos) AS SDDocumentItem,
  cast('' as mat_pspnr) AS WBSElementInternalID,
  cast('' as nsdm_kunnr) AS Customer,
  cast('' as nsdm_resourcename_sid) AS ResourceID,
  cast('' as sobkz) AS InventorySpecialStockType,
  CC.CompanyCode AS CompanyCode,
  Plant.BaseUnit AS MaterialBaseUnit,
  cast(' ' as bwtar_d preserving type ) AS InventoryValuationType,
  CC.CompanyCurrency AS Currency,
  cast(0 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(0 as abap.dec(21,3)) AS GoodsReceiptBlockedStockQty,
  cast(0 as abap.curr(23,2)) AS CurrentStockCurVal,
  cast(0 as abap.curr(23,2)) AS QualityInspectionStockCurVal,
  cast(0 as abap.curr(23,2)) AS ReturnsBlockedStockCurVal,
  cast(0 as abap.curr(23,2)) AS TransferStockStorageLocCurVal,
  cast(0 as abap.curr(23,2)) AS TransferStockPlantCurVal,
  cast(0 as abap.curr(23,2)) AS StockInTransitCurVal,
  cast(0 as abap.curr(23,2)) AS BlockedStockCurVal,
  cast(0 as abap.curr(23,2)) AS RestrictedStockCurVal,
  cast(0 as abap.curr(23,2)) AS TiedEmptiesStockCurVal,
  cast(0 as abap.curr(23,2)) AS GoodsReceiptBlockedStockCurVal,
  cast(0 as abap.curr(23,2)) AS CurrentStockValue,
  cast(0 as abap.curr(23,2)) AS QualityInspectionStockValue,
  cast(0 as abap.curr(23,2)) AS ReturnsBlockedStockValue,
  cast(0 as abap.curr(23,2)) AS TransferStockStorageLocValue,
  cast(0 as abap.curr(23,2)) AS TransferStockPlantValue,
  cast(0 as abap.curr(23,2)) AS StockInTransitValue,
  cast(0 as abap.curr(23,2)) AS BlockedStockValue,
  cast(0 as abap.curr(23,2)) AS RestrictedStockValue,
  cast(0 as abap.curr(23,2)) AS TiedEmptiesStockValue,
  cast(0 as abap.curr(23,2)) as GoodsReceiptBlockedStockValue AS P_EndDatekeyMaterial,
  GoodsReceiptBlockedStockValue
FROM P_MltplMatlStk_L4
INNER JOIN I_ProductPlantBasic AS Plant ON /* join condition not captured in parsed metadata */
INNER JOIN P_PLANTCURRENCY AS CC ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_MltplMatlStk_L4
;