I_EWM_StorageType_2

DDL: I_EWM_STORAGETYPE_2 Type: view_entity BASIC

Storage Type

I_EWM_StorageType_2 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Warehouse Storage Type · Supply Chain

I_EWM_StorageType_2 is a Basic CDS View (Dimension) that provides data about "Storage Type" in SAP S/4HANA. It reads from 2 data sources (/scwm/t301, /scwm/t331) and exposes 6 fields with key fields EWMWarehouse, EWMStorageType. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
This CDS view provides information about storage types in your warehouse. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: /SCWM/WHF4 ( Warehouse Number Data in Value Helps )

Structure
Further important fields Important fields in this view include the following: Field Name Description EWMWarehouse Warehouse EWMStorageType Storage Type

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentSCM-EWM-WOP
CapabilitiesAnalytical Dimension, Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageSupply Chain for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides information about storage types in your warehouse.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (2)

SourceAliasJoin Type
/scwm/t301 StorageType from
/scwm/t331 StorageTypeControl inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_EWM_WarehouseNumber_2 _Warehouse $projection.EWMWarehouse = _Warehouse.EWMWarehouse
[0..*] I_EWM_StorageTypeText_2 _Text $projection.EWMWarehouse = _Text.EWMWarehouse and $projection.EWMStorageType = _Text.EWMStorageType

Annotations (14)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Storage Type view
VDM.viewType #BASIC view
Analytics.internalName #LOCAL view
ObjectModel.representativeKey EWMStorageType view
Analytics.dataCategory #DIMENSION view
Analytics.technicalName IEWMSTRGTYP2 view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.sapObjectNodeType.name WarehouseStorageType view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse /scwm/t301 lgnum Warehouse Number/Warehouse Complex
_Warehouse _Warehouse
KEY EWMStorageType /scwm/t301 lgtyp Storage Type
EWMStorageTypeRole /scwm/t331 st_role Storage Type Role
EWMStorageBehavior /scwm/t331 behav Storage Behavior
_Text _Text

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_EWM_StorageType_2.
-- 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_EWM_StorageType_2 AS
SELECT
  StorageType.lgnum AS EWMWarehouse,
  StorageType.lgtyp AS EWMStorageType,
  StorageTypeControl.st_role AS EWMStorageTypeRole,
  StorageTypeControl.behav AS EWMStorageBehavior
FROM /scwm/t301 AS StorageType
INNER JOIN /scwm/t331 AS StorageTypeControl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EWM_WarehouseNumber_2 AS _Warehouse ON EWMWarehouse = _Warehouse.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageTypeText_2 AS _Text ON EWMWarehouse = _Text.EWMWarehouse AND EWMStorageType = _Text.EWMStorageType  -- association [0..*]
;