I_MaterialUnrestrictedUseStock

DDL: I_MATERIALUNRESTRICTEDUSESTOCK SQL: IMATUNRUSESTOCK Type: view COMPOSITE

Material Unrestricted Use Stock

I_MaterialUnrestrictedUseStock is a Composite CDS View that provides data about "Material Unrestricted Use Stock" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_2) and exposes 9 fields with key fields Material, Plant, StorageLocation. 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
AbapCatalog.sqlViewName IMATUNRUSESTOCK view
EndUserText.label Material Unrestricted Use Stock view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

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
MaterialBaseUnit I_MaterialStock_2 MaterialBaseUnit Valuation Unit
MatlWrhsStkQtyInMatlBaseUnit
_Material I_MaterialStock_2 _Material
_MaterialBaseUnit _MaterialBaseUnit
_Plant _Plant
_StorageLocation _StorageLocation

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_MaterialUnrestrictedUseStock.
-- 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: IMATUNRUSESTOCK

CREATE VIEW I_MaterialUnrestrictedUseStock AS
SELECT
  I_MaterialStock_2.Material AS Material,
  I_MaterialStock_2.Plant AS Plant,
  I_MaterialStock_2.StorageLocation AS StorageLocation,
  I_MaterialStock_2.MaterialBaseUnit AS MaterialBaseUnit,
  sum( I_MaterialStock_2.MatlWrhsStkQtyInMatlBaseUnit ) AS MatlWrhsStkQtyInMatlBaseUnit,
  I_MaterialStock_2._Material AS _Material
FROM I_MaterialStock_2
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialBaseUnit ON MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure  -- association [0..1]
;