Deprecated
This CDS view is deprecated in S/4HANA. Use I_ProductStorage_2 instead. View all deprecated CDS views →

I_Productstorage

DDL: I_PRODUCTSTORAGE Type: view BASIC

Product Storage

I_Productstorage is a Basic CDS View that provides data about "Product Storage" in SAP S/4HANA. It reads from 1 data source (mara) and exposes 28 fields with key field Product. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
mara mara from

Associations (12)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] E_Product _ProdStorageExt $projection.Product = _ProdStorageExt.Product
[0..1] I_Storagecondition _Storagecondition $projection.StorageConditions = _Storagecondition.StorageConditions
[0..1] I_Tempindcndn _TemperatureConditionInd $projection.TemperatureConditionInd = _TemperatureConditionInd.TemperatureConditionInd
[0..*] I_Tempindcndntext _TemperatureConditionText $projection.TemperatureConditionInd = _TemperatureConditionText.TemperatureConditionInd
[0..1] I_ShelfLifeExprtnDateRndngRule _ShelfLifeExprtnDateRndngRule $projection.ShelfLifeExprtnDateRndingRule = _ShelfLifeExprtnDateRndngRule.ShelfLifeExprtnDateRndngRule
[0..1] I_CtnRqmtsForProduct _StorageBinInstruction $projection.StorageBinInstruction = _StorageBinInstruction.StorageBinInstruction
[0..1] I_LabelForm _LabelForm $projection.LabelForm = _LabelForm.LabelForm
[0..1] I_ProdShelfLifeExprtnDtePerdVH _ShelfLifeExpirationDatePeriod $projection.ShelfLifeExpirationDatePeriod = _ShelfLifeExpirationDatePeriod.ShelfLifeExpirationDatePeriod
[0..1] I_LabelType _LabelType $projection.LabelType = _LabelType.LabelType
[0..1] I_ProductExpirationDateCode _ProductExpirationDateCode $projection.ExpirationDate = _ProductExpirationDateCode.ProductExpirationDateCode
[0..1] I_UnitOfMeasure _BaseUnitOfMeasure $projection.BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IPRDROOTSTORAGE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_ProductStorage_2 view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Storage view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY Product mara matnr Vehicle Model
StorageConditions mara raube Stor.conditions
_Storagecondition _Storagecondition
TemperatureConditionInd mara tempb Temperature
_TemperatureConditionInd _TemperatureConditionInd
_TemperatureConditionText _TemperatureConditionText
HazardousMaterialNumber mara stoff Haz. matl no.
NmbrOfGROrGISlipsToPrintQty mara wesch GR slips quantity
LabelType mara etiar Label type
LabelForm mara etifo Label form
MinRemainingShelfLife mara mhdrz Rem. Shelf Life
ExpirationDate mara sled_bbd Expiration Date
StorageBinInstruction mara behvo Container
_StorageBinInstruction _StorageBinInstruction
TotalShelfLifeStoragePercent mara mhdlp Storage %
ShelfLifeExpirationDatePeriod
ShelfLifeExprtnDateRndingRule mara rdmhd Rounding rule
AuthorizationGroup mara begru AuthorizGroup
IsActiveEntity
TotalShelfLife mara mhdhb Tot. shelf life
BaseUnit mara meins Valuation Unit
_ShelfLifeExprtnDateRndngRule _ShelfLifeExprtnDateRndngRule
_LabelForm _LabelForm
_ShelfLifeExpirationDatePeriod _ShelfLifeExpirationDatePeriod
_LabelType _LabelType
_ProductExpirationDateCode _ProductExpirationDateCode
_Product _Product
_BaseUnitOfMeasure _BaseUnitOfMeasure

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_Productstorage.
-- 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_Productstorage AS
SELECT
  mara.matnr AS Product,
  mara.raube AS StorageConditions,
  mara.tempb AS TemperatureConditionInd,
  mara.stoff AS HazardousMaterialNumber,
  mara.wesch AS NmbrOfGROrGISlipsToPrintQty,
  mara.etiar AS LabelType,
  mara.etifo AS LabelForm,
  mara.mhdrz AS MinRemainingShelfLife,
  mara.sled_bbd AS ExpirationDate,
  mara.behvo AS StorageBinInstruction,
  mara.mhdlp AS TotalShelfLifeStoragePercent,
  cast(mara.iprkz as shelflifeexpirationdateperiod preserving type ) AS ShelfLifeExpirationDatePeriod,
  mara.rdmhd AS ShelfLifeExprtnDateRndingRule,
  mara.begru AS AuthorizationGroup,
  cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity,
  mara.mhdhb AS TotalShelfLife,
  mara.meins AS BaseUnit
FROM mara
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN E_Product AS _ProdStorageExt ON Product = _ProdStorageExt.Product  -- association [0..1]
LEFT OUTER JOIN I_Storagecondition AS _Storagecondition ON StorageConditions = _Storagecondition.StorageConditions  -- association [0..1]
LEFT OUTER JOIN I_Tempindcndn AS _TemperatureConditionInd ON TemperatureConditionInd = _TemperatureConditionInd.TemperatureConditionInd  -- association [0..1]
LEFT OUTER JOIN I_Tempindcndntext AS _TemperatureConditionText ON TemperatureConditionInd = _TemperatureConditionText.TemperatureConditionInd  -- association [0..*]
LEFT OUTER JOIN I_ShelfLifeExprtnDateRndngRule AS _ShelfLifeExprtnDateRndngRule ON ShelfLifeExprtnDateRndingRule = _ShelfLifeExprtnDateRndngRule.ShelfLifeExprtnDateRndngRule  -- association [0..1]
LEFT OUTER JOIN I_CtnRqmtsForProduct AS _StorageBinInstruction ON StorageBinInstruction = _StorageBinInstruction.StorageBinInstruction  -- association [0..1]
LEFT OUTER JOIN I_LabelForm AS _LabelForm ON LabelForm = _LabelForm.LabelForm  -- association [0..1]
LEFT OUTER JOIN I_ProdShelfLifeExprtnDtePerdVH AS _ShelfLifeExpirationDatePeriod ON ShelfLifeExpirationDatePeriod = _ShelfLifeExpirationDatePeriod.ShelfLifeExpirationDatePeriod  -- association [0..1]
LEFT OUTER JOIN I_LabelType AS _LabelType ON LabelType = _LabelType.LabelType  -- association [0..1]
LEFT OUTER JOIN I_ProductExpirationDateCode AS _ProductExpirationDateCode ON ExpirationDate = _ProductExpirationDateCode.ProductExpirationDateCode  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMeasure ON BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure  -- association [0..1]
;