I_US_EPCRAInvtryTierOneDimn

DDL: I_US_EPCRAINVTRYTIERONEDIMN Type: view COMPOSITE

EPCRA: Inventory Reporting Tier 1

I_US_EPCRAInvtryTierOneDimn is a Composite CDS View that provides data about "EPCRA: Inventory Reporting Tier 1" in SAP S/4HANA. It reads from 3 data sources (I_ChemicalRevision, I_US_ChemicalEPCRAHazardClass, I_US_EPCRAInvtryVw) and exposes 35 fields with key fields Product, Plant, StorageLocation, StockReportingDate, StockUnit. It has 13 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_ChemicalRevision _ChemicalRevision left_outer
I_US_ChemicalEPCRAHazardClass _US_ChemicalEPCRAHazardClass left_outer
I_US_EPCRAInvtryVw I_US_EPCRAInvtryVw from

Associations (13)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Product = _Material.Material
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[1..1] I_ChemicalDimension _ChemicalDimension $projection.ChemicalUUID = _ChemicalDimension.ChemicalUUID
[1..1] I_CalendarDate _Calendar $projection.StockReportingDate = _Calendar.CalendarDate
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_US_EPCRAHazardClass _US_EPCRAHazardClass $projection.US_EPCRAHazardClass = _US_EPCRAHazardClass.US_EPCRAHazardClass
[1..1] I_StateOfMatter _StateOfMatter $projection.StateOfMatter = _StateOfMatter.StateOfMatter
[1..1] I_ChemicalType _ChemicalType $projection.ChemicalType = _ChemicalType.ChemicalType
[0..*] I_US_EPCRAHazardClCnctntdName _US_EPCRAHazardClCnctntdName $projection.ChemicalUUID = _US_EPCRAHazardClCnctntdName.ChemicalUUID and _ChemicalRevision.ChemicalRevisionUUID = _US_EPCRAHazardClCnctntdName.ChemicalRevisionUUID
[0..1] I_UnitOfMeasure _UnitOfMeasureStockUnit $projection.StockUnit = _UnitOfMeasureStockUnit.UnitOfMeasure
[0..*] I_ChemicalTypeNameText _ChemicalTypeNameText $projection.ChemicalType = _ChemicalTypeNameText.ChemicalType
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (14)

NameValueLevelField
EndUserText.label EPCRA: Inventory Reporting Tier 1 view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName IUSEINVTONED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey PlantAndStorageLocation view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
VDM.viewType #COMPOSITE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY Product I_US_EPCRAInvtryVw Product Product Sold
KEY Plant I_US_EPCRAInvtryVw Plant Valuation Area
KEY StorageLocation I_US_EPCRAInvtryVw StorageLocation StorageLocation
KEY StockReportingDate I_US_EPCRAInvtryVw StockReportingDate Valid to
KEY StockUnit I_US_EPCRAInvtryVw StockUnit Unit of Measure
KEY PlantAndStorageLocation
ChemicalUUID I_US_EPCRAInvtryVw ChemicalUUID NodeID
NameOfChemical
ProductName
ChemicalID
ChemicalRevisionUUID I_ChemicalRevision ChemicalRevisionUUID UUID
CompanyCode I_US_EPCRAInvtryVw CompanyCode Receiver Company Code
AvailableStockQuantity I_US_EPCRAInvtryVw AvailableStockQuantity Value
DaysProductOnSiteUnit
US_EPCRAHasMultipleChmlAssgd I_US_EPCRAInvtryVw US_EPCRAHasMultipleChmlAssgd
US_EPCRAStorageCondition I_US_EPCRAInvtryVw US_EPCRAStorageCondition Storage Condition
US_EPCRAContainerType I_US_EPCRAInvtryVw US_EPCRAContainerType Container Type
StateOfMatter
CASNumber
US_EPCRAIsExtremelyHzdsSubst
PlantName _Plant PlantName Plant Name
ChemicalType
_StorageLocation _StorageLocation
_Calendar _Calendar
_Plant _Plant
_Product _Product
_ChemicalDimension _ChemicalDimension
_UnitOfMeasureStockUnit _UnitOfMeasureStockUnit
_US_EPCRAHazardClass _US_EPCRAHazardClass
_StateOfMatter _StateOfMatter
_Material _Material
_ChemicalTypeNameText _ChemicalTypeNameText
_CompanyCode _CompanyCode
_ChemicalType _ChemicalType
US_EPCRAHazardClCnctntdName

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_US_EPCRAInvtryTierOneDimn.
-- 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_US_EPCRAInvtryTierOneDimn AS
SELECT
  I_US_EPCRAInvtryVw.Product AS Product,
  I_US_EPCRAInvtryVw.Plant AS Plant,
  I_US_EPCRAInvtryVw.StorageLocation AS StorageLocation,
  I_US_EPCRAInvtryVw.StockReportingDate AS StockReportingDate,
  I_US_EPCRAInvtryVw.StockUnit AS StockUnit,
  concat_with_space( I_US_EPCRAInvtryVw.Plant, I_US_EPCRAInvtryVw.StorageLocation, 1 ) AS PlantAndStorageLocation,
  I_US_EPCRAInvtryVw.ChemicalUUID AS ChemicalUUID,
  _ChemicalRevision._ChemicalBasicInfo._ChemicalName[1: Language = $session.system_language].NameOfChemical AS NameOfChemical,
  _Product._Text[1: Language = $session.system_language ].ProductName AS ProductName,
  _ChemicalRevision._ChemicalRoot.ChemicalID AS ChemicalID,
  _ChemicalRevision.ChemicalRevisionUUID AS ChemicalRevisionUUID,
  I_US_EPCRAInvtryVw.CompanyCode AS CompanyCode,
  I_US_EPCRAInvtryVw.AvailableStockQuantity AS AvailableStockQuantity,
  cast( 'TAG' as unit ) AS DaysProductOnSiteUnit,
  I_US_EPCRAInvtryVw.US_EPCRAHasMultipleChmlAssgd AS US_EPCRAHasMultipleChmlAssgd,
  I_US_EPCRAInvtryVw.US_EPCRAStorageCondition AS US_EPCRAStorageCondition,
  I_US_EPCRAInvtryVw.US_EPCRAContainerType AS US_EPCRAContainerType,
  _ChemicalRevision._ChemicalBasicInfo.StateOfMatter AS StateOfMatter,
  _ChemicalRevision._ChemicalBasicInfo.CASNumber AS CASNumber,
  _ChemicalRevision._ChemicalBasicInfo.US_EPCRAIsExtremelyHzdsSubst AS US_EPCRAIsExtremelyHzdsSubst,
  _Plant.PlantName AS PlantName,
  cast( _ChemicalRevision._ChemicalRoot.ChemicalType as abap.char(1)) AS ChemicalType,
  _US_EPCRAHazardClCnctntdName[1: Language = $session.system_language].US_EPCRAHazardClCnctntdName AS US_EPCRAHazardClCnctntdName
FROM I_US_EPCRAInvtryVw
LEFT OUTER JOIN I_ChemicalRevision AS _ChemicalRevision ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_US_ChemicalEPCRAHazardClass AS _US_ChemicalEPCRAHazardClass ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Product = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_ChemicalDimension AS _ChemicalDimension ON ChemicalUUID = _ChemicalDimension.ChemicalUUID  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _Calendar ON StockReportingDate = _Calendar.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_US_EPCRAHazardClass AS _US_EPCRAHazardClass ON US_EPCRAHazardClass = _US_EPCRAHazardClass.US_EPCRAHazardClass  -- association [0..1]
LEFT OUTER JOIN I_StateOfMatter AS _StateOfMatter ON StateOfMatter = _StateOfMatter.StateOfMatter  -- association [1..1]
LEFT OUTER JOIN I_ChemicalType AS _ChemicalType ON ChemicalType = _ChemicalType.ChemicalType  -- association [1..1]
LEFT OUTER JOIN I_US_EPCRAHazardClCnctntdName AS _US_EPCRAHazardClCnctntdName ON ChemicalUUID = _US_EPCRAHazardClCnctntdName.ChemicalUUID AND _ChemicalRevision.ChemicalRevisionUUID = _US_EPCRAHazardClCnctntdName.ChemicalRevisionUUID  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasureStockUnit ON StockUnit = _UnitOfMeasureStockUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_ChemicalTypeNameText AS _ChemicalTypeNameText ON ChemicalType = _ChemicalTypeNameText.ChemicalType  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;