I_EWM_PlantStorLocMapToWhse

DDL: I_EWM_PLANTSTORLOCMAPTOWHSE Type: view_entity BASIC Package: VDM_EWM_CORE

Mapping of Plnt and Stor Loc to Whse

I_EWM_PlantStorLocMapToWhse (Basic)

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

Supply Chain

I_EWM_PlantStorLocMapToWhse is a Basic CDS View that provides data about "Mapping of Plnt and Stor Loc to Whse" in SAP S/4HANA. It reads from 1 data source (/scwm/tmapstloc) and exposes 6 fields with key fields Plant, StorageLocation. It has 2 associations to related views. Part of development package VDM_EWM_CORE.

SAP Help Documentation

CategoryCDS Views for Master Data
Purpose
This CDS view provides the mapping relationship between the plant and storage location in SAP S/4HANA Cloud Public Edition , and the warehouse and availability group in Warehouse Management . 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 don't need any special authorization.

Structure
Important Fields Important fields in this view include the following: Field Name Description Plant Plant StorageLocation Storage Location ERPLogicalSystem Logical system EWMWarehouse Warehouse Number/Warehouse Complex EWMAvailabilityGroup Availability Group

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSupply Chain
Application ComponentSCM-EWM-WOP-2CL
CapabilitiesAnalytical Dimension,Data Source for Defining CDS Entities,Data Source in SQL Select,Association Target for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the mapping relationship between the plant and storage location in SAP S/4HANA Cloud Public Edition, and the warehouse and availability group in Warehouse Management.</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/tmapstloc /scwm/tmapstloc from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_SAPClient _Client 1 = 1

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
EndUserText.label Mapping of Plnt and Stor Loc to Whse view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey StorageLocation view
ObjectModel.modelingPattern #NONE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Plant plant Valuation Area
KEY StorageLocation stge_loc Storage Location
ERPLogicalSystem _Client LogicalSystem Logical System
EWMWarehouse lgnum Warehouse Number/Warehouse Complex
EWMAvailabilityGroup avlgrp Availability Group
_Plant _Plant

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_PlantStorLocMapToWhse.
-- 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_PlantStorLocMapToWhse AS
SELECT
  Plant,
  stge_loc AS StorageLocation,
  _Client.LogicalSystem AS ERPLogicalSystem,
  lgnum AS EWMWarehouse,
  avlgrp AS EWMAvailabilityGroup
FROM /scwm/tmapstloc
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_SAPClient AS _Client ON 1 = 1  -- association [1..1]
;