I_Commodity
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)
| Source | Alias | Join Type |
|---|---|---|
| tbac_physcomm | tbac_physcomm | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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