I_JITStkAnlysAtStorLoc

DDL: I_JITSTKANLYSATSTORLOC SQL: IJITSTKANLYSLOC Type: view COMPOSITE

Stock Analysis for Material at Storage Location Level

I_JITStkAnlysAtStorLoc is a Composite CDS View that provides data about "Stock Analysis for Material at Storage Location Level" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock) and exposes 10 fields with key fields Material, Plant, StorageLocation, MaterialBaseUnit.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock I_MaterialStock from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IJITSTKANLYSLOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Stock Analysis for Material at Storage Location Level view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
UnrestrictedStkInStkUnit
QualityInspectionStockQuantity
TransferStockStorageLocQty
TransferStockPlantQuantity
StockInTransitQuantity
BlockedStockQuantity

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 I_JITStkAnlysAtStorLoc.
-- 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: IJITSTKANLYSLOC

CREATE VIEW I_JITStkAnlysAtStorLoc AS
SELECT
  Material,
  Plant,
  StorageLocation,
  MaterialBaseUnit,
  sum(case InventoryStockType when '01' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS UnrestrictedStkInStkUnit,
  sum(case InventoryStockType when '02' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS QualityInspectionStockQuantity,
  sum(case InventoryStockType when '04' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS TransferStockStorageLocQty,
  sum(case InventoryStockType when '05' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS TransferStockPlantQuantity,
  sum(case InventoryStockType when '08' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS StockInTransitQuantity,
  sum(case InventoryStockType when '07' then MatlWrhsStkQtyInMatlBaseUnit else 0 end) AS BlockedStockQuantity
FROM I_MaterialStock
;