P_MPE_MaterialStorageLocation
Material Plant with Storage Location
P_MPE_MaterialStorageLocation is a Consumption CDS View that provides data about "Material Plant with Storage Location" in SAP S/4HANA. It reads from 3 data sources (I_ProductPlant, I_ProductPlant, I_ProductPlant) and exposes 7 fields with key fields Product, Plant, StorageLocation, Plant, StorageLocation. Part of development package ODATA_MPE_MATERIAL.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlant | _Plant | from |
| I_ProductPlant | _Plant | union_all |
| I_ProductPlant | _ProductPlant | inner |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| EndUserText.label | Material Plant with Storage Location | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_ProductPlant | Product | |
| KEY | Plant | I_ProductPlant | Plant | |
| KEY | StorageLocation | _StgeLoc | StorageLocation | |
| Product | ||||
| KEY | Plant | I_ProductPlant | Plant | |
| KEY | StorageLocation | |||
| StorageLocationName |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@EndUserText.label: 'Material Plant with Storage Location'
@Metadata.ignorePropagatedAnnotations: true
define view entity P_MPE_MaterialStorageLocation as select distinct from I_StorageLocation as _StgeLoc
inner join I_ProductPlant as _ProductPlant on _ProductPlant.Plant = _StgeLoc.Plant
{
key _ProductPlant.Product,
key _ProductPlant.Plant,
key _StgeLoc.StorageLocation,
_StgeLoc.StorageLocationName
} where _StgeLoc.StorageLocation != ''
union all
select from I_ProductPlant as _Plant
{
key _Plant.Product,
key _Plant.Plant,
key '' as StorageLocation,
'' as StorageLocationName
} where _Plant.Product != ''
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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