I_Cmmdty
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
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Financial Operations |
| Application Component | FIN-FSCM-CMM-RSK |
| Capabilities | Data 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 |
| Package | Financial Operations for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tbac_physcomm | tbac_physcomm | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA