I_ProductStorageLocationBasic

DDL: I_PRODUCTSTORAGELOCATIONBASIC Type: view BASIC

Product Storage Location

I_ProductStorageLocationBasic (Basic)

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

Storage Location · Database & Data Management

I_ProductStorageLocationBasic is a Basic CDS View (Dimension) that provides data about "Product Storage Location" in SAP S/4HANA. It reads from 1 data source (P_ProductStorageLocationBasic) and exposes 26 fields with key fields Product, Plant, StorageLocation. It has 6 associations to related views.

SAP Help Documentation

CategoryCDS Views for Product Master
Data CategoryDimension
StatusReleased
Data Extraction TypeFull (physical deletions are possible in source tables) Delta: Change Data Capture
Corresponding DataSourceNA
Purpose
This CDS view will provide the information about Product Storage location for the provided Product from MARD table with the help of view V_MARD_MD. Only the Master data fields will be fetched from V_MBEW_MD, no redirect fields will be present. Description: Product Storage Location Data

Prerequisites
These restriction types are edited in the Maintain Business Roles app. Users must also have authorization to access the Material Master Data for Plant.

Structure
Object types This view relates to the following SAP object types: Material Product Plant Storage Location

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. In case you are interested in the details of the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-MM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
P_ProductStorageLocationBasic StorageLocation from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] E_Productstoragelocation _ProdStorLocExt $projection.Product = _ProdStorLocExt.Product and $projection.Plant = _ProdStorLocExt.Plant and $projection.StorageLocation = _ProdStorLocExt.StorageLocation
[0..*] I_MaterialStock_2 _MaterialStock $projection.Product = _MaterialStock.Material and $projection.Plant = _MaterialStock.Plant
[0..*] I_MaterialStock _Stock $projection.Product = _Stock.Material and $projection.Plant = _Stock.Plant and $projection.StorageLocation = _Stock.StorageLocation
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName IPRDSTORLOCBASIC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Product Storage Location view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey Product view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.changeDataCapture.automatic true view
Analytics.internalName #LOCAL view
ObjectModel.sapObjectNodeType.name StorageLocation view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Number
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation Storage Location
WarehouseStorageBin WarehouseStorageBin Storage Bin
MaintenanceStatus MaintenanceStatus Maintenance Status
IsMarkedForDeletion IsMarkedForDeletion Flag Material for Deletion at Storage Location Level
PhysicalInventoryBlockInd PhysicalInventoryBlockInd Physical Inventory Blocking Indicator
CreationDate CreationDate Time Stamp
DateOfLastPostedCntUnRstrcdStk DateOfLastPostedCntUnRstrcdStk Date of Last Posted Count
InventoryCorrectionFactor InventoryCorrectionFactor Inventory Correction Factor
InvtryRestrictedUseStockInd InvtryRestrictedUseStockInd Physical inventory indicator for restricted-use stock
InvtryCurrentYearStockInd InvtryCurrentYearStockInd Physical inventory indicator for whse stock in current year
InvtryQualInspCurrentYrStkInd InvtryQualInspCurrentYrStkInd Phys. inventory ind. f. stock in qual. insp. in current year
InventoryBlockStockInd InventoryBlockStockInd Physical inventory indicator for blocked stock
InvtryRestStockPrevPeriodInd InvtryRestStockPrevPeriodInd Physical inventory ind. for restricted-use stock, prev.pd
InventoryStockPrevPeriod InventoryStockPrevPeriod Physical inventory indicator for stock in previous year
InvtryStockQltyInspPrevPeriod InvtryStockQltyInspPrevPeriod Phys. inventory ind. f. stock in qual. insp. in prev. period
HasInvtryBlockStockPrevPeriod HasInvtryBlockStockPrevPeriod Phys. inventory indicator for blocked stock in prev. period
FiscalYearCurrentInvtryPeriod FiscalYearCurrentInvtryPeriod Fiscal Year of Current Physical Inventory Indicator
LeanWrhsManagementPickingArea LeanWrhsManagementPickingArea Picking area for lean WM
IsActiveEntity Draft - Indicator - Is active document
_Product _Product
_Stock _Stock
_Plant _Plant
_StorageLocation _StorageLocation
_MaterialStock _MaterialStock

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_ProductStorageLocationBasic.
-- 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_ProductStorageLocationBasic AS
SELECT
  Product,
  Plant,
  StorageLocation,
  WarehouseStorageBin,
  MaintenanceStatus,
  IsMarkedForDeletion,
  PhysicalInventoryBlockInd,
  CreationDate,
  DateOfLastPostedCntUnRstrcdStk,
  InventoryCorrectionFactor,
  InvtryRestrictedUseStockInd,
  InvtryCurrentYearStockInd,
  InvtryQualInspCurrentYrStkInd,
  InventoryBlockStockInd,
  InvtryRestStockPrevPeriodInd,
  InventoryStockPrevPeriod,
  InvtryStockQltyInspPrevPeriod,
  HasInvtryBlockStockPrevPeriod,
  FiscalYearCurrentInvtryPeriod,
  LeanWrhsManagementPickingArea,
  cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity
FROM P_ProductStorageLocationBasic AS StorageLocation
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN E_Productstoragelocation AS _ProdStorLocExt ON Product = _ProdStorLocExt.Product AND Plant = _ProdStorLocExt.Plant AND StorageLocation = _ProdStorLocExt.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_MaterialStock_2 AS _MaterialStock ON Product = _MaterialStock.Material AND Plant = _MaterialStock.Plant  -- association [0..*]
LEFT OUTER JOIN I_MaterialStock AS _Stock ON Product = _Stock.Material AND Plant = _Stock.Plant AND StorageLocation = _Stock.StorageLocation  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
;