I_DFS_RestrictedStock
Restricted stock on Plant Storage Loc
I_DFS_RestrictedStock is a Composite CDS View that provides data about "Restricted stock on Plant Storage Loc" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_2) and exposes 10 fields with key fields Material, Plant, StorageLocation, WBSElementInternalID. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialStock_2 | I_MaterialStock_2 | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _MaterialBaseUnit | $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Restricted stock on Plant Storage Loc | 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 (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 |
| 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_DFS_RestrictedStock.
-- 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_RestrictedStock 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.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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA