I_EWM_StockType_2

DDL: I_EWM_STOCKTYPE_2 Type: view_entity BASIC

Warehouse Stock Type

I_EWM_StockType_2 (Basic)

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

Warehouse Stock Type · Supply Chain

I_EWM_StockType_2 is a Basic CDS View (Dimension) that provides data about "Warehouse Stock Type" in SAP S/4HANA. It reads from 1 data source (/scwm/tcat) and exposes 7 fields with key fields EWMWarehouse, EWMStockType. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
This CDS view provides information about stock 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 There are no authorization objects required for this CDS view.

Structure
Further important fields Important fields in this view include the following: Field Name Description EWMWarehouse Warehouse EWMStockType Stock 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 stock 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 (1)

SourceAliasJoin Type
/scwm/tcat StockType from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_EWM_WarehouseNumber_2 _Warehouse $projection.EWMWarehouse = _Warehouse.EWMWarehouse
[0..*] I_EWM_StockTypeText_2 _Text $projection.EWMWarehouse = _Text.EWMWarehouse and $projection.EWMStockType = _Text.EWMStockType
[0..*] I_EWM_WhseIndepStockTypeText_2 _WhseIndepText $projection.EWMStockType = _WhseIndepText.EWMStockType

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Warehouse Stock Type view
Analytics.internalName #LOCAL view
VDM.viewType #BASIC view
ObjectModel.representativeKey EWMStockType view
Analytics.dataCategory #DIMENSION view
Analytics.technicalName IEWMSTKTYPE2 view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.sapObjectNodeType.name WarehouseStockType view
Metadata.ignorePropagatedAnnotations true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse lgnum Warehouse Number/Warehouse Complex
_Warehouse _Warehouse
KEY EWMStockType cat TAL Category
EWMAvailabilityGroup avlgrp Availability Group
EWMLocIndepStockType catlocn Location-Independent Stock Type
_Text _Text
_WhseIndepText _WhseIndepText

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_StockType_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_StockType_2 AS
SELECT
  lgnum AS EWMWarehouse,
  cat AS EWMStockType,
  avlgrp AS EWMAvailabilityGroup,
  catlocn AS EWMLocIndepStockType
FROM /scwm/tcat AS StockType
LEFT OUTER JOIN I_EWM_WarehouseNumber_2 AS _Warehouse ON EWMWarehouse = _Warehouse.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StockTypeText_2 AS _Text ON EWMWarehouse = _Text.EWMWarehouse AND EWMStockType = _Text.EWMStockType  -- association [0..*]
LEFT OUTER JOIN I_EWM_WhseIndepStockTypeText_2 AS _WhseIndepText ON EWMStockType = _WhseIndepText.EWMStockType  -- association [0..*]
;