C_CommodityCodeByLanguage
Commodity code for given language
C_CommodityCodeByLanguage is a Consumption CDS View that provides data about "Commodity code for given language" in SAP S/4HANA. It reads from 2 data sources (I_Language, I_CommodityCode) and exposes 26 fields with key fields Language, TrdClassfctnNmbrSchmCntnt, CommodityCode, ValidityStartDate. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Language | _Language | cross |
| I_CommodityCode | CommodityCode | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_TrdClassfctnNmbrOfclDescByLa | _OfficialDescOnLanguage | _OfficialDescOnLanguage.TrdClassfctnNmbrSchmCntnt = $projection.TrdClassfctnNmbrSchmCntnt and _OfficialDescOnLanguage.TrdClassfctnNmbr = $projection.CommodityCode and _OfficialDescOnLanguage.ValidityStartDate = $projection.ValidityStartDate and _OfficialDescOnLanguage.Language = $projection.Language |
| [0..1] | I_TrdClassfctnNmbrCoDescByLa | _CnctntdDescOnLanguage | _CnctntdDescOnLanguage.TrdClassfctnNmbrSchmCntnt = $projection.TrdClassfctnNmbrSchmCntnt and _CnctntdDescOnLanguage.TrdClassfctnNmbr = $projection.CommodityCode and _CnctntdDescOnLanguage.ValidityStartDate = $projection.ValidityStartDate and _CnctntdDescOnLanguage.Language = $projection.Language |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCMDTYCDBYLANG | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Commodity code for given language | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Language | I_Language | Language | Report Text Language |
| KEY | TrdClassfctnNmbrSchmCntnt | I_CommodityCode | TrdClassfctnNmbrSchmCntnt | |
| KEY | CommodityCode | CommodityCode | Commodity Code | |
| KEY | ValidityStartDate | I_CommodityCode | ValidityStartDate | Validity Start Date |
| ValidityEndDate | I_CommodityCode | ValidityEndDate | ValidTo | |
| TrdClassfctnNmbrForOfclDesc | TrdClassfctnNmbrForOfclDesc | |||
| TrdClassfctnNmbrForCnctntdDesc | TrdClassfctnNmbrForCnctntdDesc | |||
| SupplementaryUnit | SupplementaryUnit | |||
| SecondSupplementaryUnit | SecondSupplementaryUnit | |||
| CustomsUnitOfMeasure | CustomsUnitOfMeasure | |||
| SecondCustomsUnitOfMeasure | SecondCustomsUnitOfMeasure | |||
| UnitOfMeasureSystem | UnitOfMeasureSystem | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| _OfficialDescOnLanguage | _OfficialDescOnLanguage | |||
| _CnctntdDescOnLanguage | _CnctntdDescOnLanguage | |||
| _OfficialDesc | _OfficialDesc | |||
| _CnctntdDesc | _CnctntdDesc | |||
| _SupplementaryUnit | _SupplementaryUnit | |||
| _SecondSupplementaryUnit | _SecondSupplementaryUnit | |||
| _CustomsUnitOfMeasure | _CustomsUnitOfMeasure | |||
| _SecondCustomsUnitOfMeasure | _SecondCustomsUnitOfMeasure | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser |
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 C_CommodityCodeByLanguage.
-- 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: CCMDTYCDBYLANG
CREATE VIEW C_CommodityCodeByLanguage AS
SELECT
_Language.Language AS Language,
CommodityCode.TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
CommodityCode,
CommodityCode.ValidityStartDate AS ValidityStartDate,
CommodityCode.ValidityEndDate AS ValidityEndDate,
TrdClassfctnNmbrForOfclDesc,
TrdClassfctnNmbrForCnctntdDesc,
SupplementaryUnit,
SecondSupplementaryUnit,
CustomsUnitOfMeasure,
SecondCustomsUnitOfMeasure,
UnitOfMeasureSystem,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime
FROM I_CommodityCode AS CommodityCode
CROSS JOIN I_Language AS _Language
LEFT OUTER JOIN I_TrdClassfctnNmbrOfclDescByLa AS _OfficialDescOnLanguage ON _OfficialDescOnLanguage.TrdClassfctnNmbrSchmCntnt = TrdClassfctnNmbrSchmCntnt AND _OfficialDescOnLanguage.TrdClassfctnNmbr = CommodityCode AND _OfficialDescOnLanguage.ValidityStartDate = ValidityStartDate AND _OfficialDescOnLanguage.Language = Language -- association [0..1]
LEFT OUTER JOIN I_TrdClassfctnNmbrCoDescByLa AS _CnctntdDescOnLanguage ON _CnctntdDescOnLanguage.TrdClassfctnNmbrSchmCntnt = TrdClassfctnNmbrSchmCntnt AND _CnctntdDescOnLanguage.TrdClassfctnNmbr = CommodityCode AND _CnctntdDescOnLanguage.ValidityStartDate = ValidityStartDate AND _CnctntdDescOnLanguage.Language = Language -- 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