I_Commodity

DDL: I_COMMODITY SQL: ICOMMODITY Type: view BASIC Package: FTR_BASIS_VDM

Commodity Details

I_Commodity is a Basic CDS View (Dimension) that provides data about "Commodity Details" in SAP S/4HANA. It reads from 1 data source (tbac_physcomm) and exposes 11 fields with key field Commodity. It has 5 associations to related views. Part of development package FTR_BASIS_VDM.

Data Sources (1)

SourceAliasJoin Type
tbac_physcomm tbac_physcomm from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.CommodityUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_CmmdtyType _Type $projection.CommodityType = _Type.CommodityType
[0..1] I_CmmdtyCategory _Category $projection.CommodityCategory = _Category.CommodityCategory
[0..1] I_FirstCmmdtyGroup _FirstGroup $projection.FirstCustSpecificCmmdtyGroup = _FirstGroup.FirstCustSpecificCmmdtyGroup
[0..1] I_SecondCmmdtyGroup _SecondGroup $projection.SecondCustSpecificCmmdtyGroup = _SecondGroup.SecondCustSpecificCmmdtyGroup

Annotations (14)

NameValueLevelField
EndUserText.label Commodity Details view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
Analytics.internalName #LOCAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ICOMMODITY view
AbapCatalog.compiler.compareFilter true view
ObjectModel.representativeKey Commodity view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY Commodity commodity Commodity Code
CommodityUnit uom UoM: Conv. to
CommodityType commodity_type Commodity Type
CommodityCategory commodity_cat Commodity Cat
FirstCustSpecificCmmdtyGroup group1 Group 1
SecondCustSpecificCmmdtyGroup group2 Group 2
_UnitOfMeasure _UnitOfMeasure
_Type _Type
_Category _Category
_FirstGroup _FirstGroup
_SecondGroup _SecondGroup

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_Commodity.
-- 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.
-- SQL view name: ICOMMODITY

CREATE VIEW I_Commodity AS
SELECT
  Commodity,
  uom AS CommodityUnit,
  commodity_type AS CommodityType,
  commodity_cat AS CommodityCategory,
  group1 AS FirstCustSpecificCmmdtyGroup,
  group2 AS SecondCustSpecificCmmdtyGroup
FROM tbac_physcomm
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON CommodityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyType AS _Type ON CommodityType = _Type.CommodityType  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyCategory AS _Category ON CommodityCategory = _Category.CommodityCategory  -- association [0..1]
LEFT OUTER JOIN I_FirstCmmdtyGroup AS _FirstGroup ON FirstCustSpecificCmmdtyGroup = _FirstGroup.FirstCustSpecificCmmdtyGroup  -- association [0..1]
LEFT OUTER JOIN I_SecondCmmdtyGroup AS _SecondGroup ON SecondCustSpecificCmmdtyGroup = _SecondGroup.SecondCustSpecificCmmdtyGroup  -- association [0..1]
;