I_Cmmdty

DDL: I_CMMDTY SQL: ICMMDTY Type: view BASIC Package: FTR_COMMODITY_CDS

Commodity

I_Cmmdty (Basic)

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

Financial Operations

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

SAP API Hub

CategoryBasic
StateC1
Line of BusinessFinancial Operations
Application ComponentFIN-FSCM-CMM-RSK
CapabilitiesData Provider for Analytical Queries,Data Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageFinancial Operations for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
tbac_physcomm tbac_physcomm from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_CmmdtyText _Text $projection.Commodity = _Text.Commodity
[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 (12)

NameValueLevelField
EndUserText.label Commodity view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ICMMDTY view
ObjectModel.representativeKey Commodity view
ObjectModel.usageType.serviceQuality #A 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 (12)

KeyFieldSource TableSource FieldDescription
KEY Commodity commodity Commodity Code
CommodityUnit uom Unit of Measure of Commodity
CommodityType commodity_type Type of Commodity
CommodityCategory commodity_cat Commodity Category
FirstCustSpecificCmmdtyGroup group1 Commodity Group1
SecondCustSpecificCmmdtyGroup group2 Commodity Group2
_Text _Text
_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_Cmmdty.
-- 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: ICMMDTY

CREATE VIEW I_Cmmdty 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_CmmdtyText AS _Text ON Commodity = _Text.Commodity  -- association [0..*]
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]
;