I_DFS_BlockedStockByBatch

DDL: I_DFS_BLOCKEDSTOCKBYBATCH Type: view_entity COMPOSITE

Blocked Stock on Plant Storage Loc Batch

I_DFS_BlockedStockByBatch is a Composite CDS View that provides data about "Blocked Stock on Plant Storage Loc Batch" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_2) and exposes 8 fields with key fields Material, Plant, StorageLocation, WBSElementInternalID, Batch. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock_2 I_MaterialStock_2 from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _MaterialBaseUnit $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Blocked Stock on Plant Storage Loc Batch view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Material I_MaterialStock_2 Material Vehicle Model
KEY Plant I_MaterialStock_2 Plant Valuation Area
KEY StorageLocation I_MaterialStock_2 StorageLocation StorageLocation
KEY WBSElementInternalID I_MaterialStock_2 WBSElementInternalID WBS Internal ID
KEY Batch I_MaterialStock_2 Batch Lot No.
MaterialBaseUnit I_MaterialStock_2 MaterialBaseUnit Valuation Unit
MatlWrhsStkQtyInMatlBaseUnit
_MaterialBaseUnit _MaterialBaseUnit

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_DFS_BlockedStockByBatch.
-- 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 I_DFS_BlockedStockByBatch AS
SELECT
  I_MaterialStock_2.Material AS Material,
  I_MaterialStock_2.Plant AS Plant,
  I_MaterialStock_2.StorageLocation AS StorageLocation,
  I_MaterialStock_2.WBSElementInternalID AS WBSElementInternalID,
  I_MaterialStock_2.Batch AS Batch,
  I_MaterialStock_2.MaterialBaseUnit AS MaterialBaseUnit,
  sum( I_MaterialStock_2.MatlWrhsStkQtyInMatlBaseUnit ) AS MatlWrhsStkQtyInMatlBaseUnit
FROM I_MaterialStock_2
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialBaseUnit ON MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure  -- association [0..1]
;