I_ProdCommodityCodeDEX
Data Extraction for Product Commodity Code by Country/Region
I_ProdCommodityCodeDEX is a Composite CDS View (Dimension) that provides data about "Data Extraction for Product Commodity Code by Country/Region" in SAP S/4HANA. It reads from 1 data source (I_ProductTrdClassfctn) and exposes 10 fields with key fields TrdClassfctnNmbrSchm, Product, CommodityCode, ValidityStartDate, Country. It has 1 association to related views. Part of development package VDM_SLL_CLS.
SAP Help Documentation
| Category | Trade Classification |
|---|---|
| Data Category | Dimension |
| Status | C1 Released |
Purpose
This CDS view extracts data for the product commodity code. This CDS view provides the data to answer the following business questions: Which commodity codes are used for the specific product? Which products are classified with a specific commodity code? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: SAPSLL_NS (Trade Classification Numbering Scheme) BEGRU_MAT (Authorization Group for Product) BEGRU_MATKL (Authorization Group for Product Group) BEGRU_MTART (Authorization Group for Product Type) These restriction types are edited in the Maintain Business Roles app.
Structure
Further important fields Important fields in this view include the following: Field Name Description ValidityStartDate Start date of the classification Country Country of the numbering scheme ValidityEndDate End date of the classification Product Product CommodityCode Commodity Code TrdClassfctnNmbrSchm Trade Classification Numbering Scheme
SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) IPRCMDTYCDDX Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .
This CDS view extracts data for the product commodity code. This CDS view provides the data to answer the following business questions: Which commodity codes are used for the specific product? Which products are classified with a specific commodity code? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: SAPSLL_NS (Trade Classification Numbering Scheme) BEGRU_MAT (Authorization Group for Product) BEGRU_MATKL (Authorization Group for Product Group) BEGRU_MTART (Authorization Group for Product Type) These restriction types are edited in the Maintain Business Roles app.
Structure
Further important fields Important fields in this view include the following: Field Name Description ValidityStartDate Start date of the classification Country Country of the numbering scheme ValidityEndDate End date of the classification Product Product CommodityCode Commodity Code TrdClassfctnNmbrSchm Trade Classification Numbering Scheme
SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) IPRCMDTYCDDX Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductTrdClassfctn | Classification | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_TrdClassfctnNmbrSchmUsge | _TrdClassfctnNmbrSchmUsge | _TrdClassfctnNmbrSchmUsge.TrdClassfctnNmbrSchm = Classification.TrdClassfctnNmbrSchm |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Data Extraction for Product Commodity Code by Country/Region | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | IPRCMDTYCDDX | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.representativeKey | CommodityCode | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.sapObjectNodeType.name | ProdIntlTradeClassification | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrdClassfctnNmbrSchm | I_ProductTrdClassfctn | TrdClassfctnNmbrSchm | Numbering Scheme |
| KEY | Product | I_ProductTrdClassfctn | Product | Product Sold |
| KEY | CommodityCode | |||
| KEY | ValidityStartDate | I_ProductTrdClassfctn | ValidityStartDate | Validity Start Date |
| KEY | Country | _TrdClassfctnNmbrSchmUsge | Country | Venue: Ctry/Reg |
| ValidityEndDate | I_ProductTrdClassfctn | ValidityEndDate | ValidTo | |
| TrdClassfctnNmbrUUID | I_ProductTrdClassfctn | TrdClassfctnNmbrUUID | UUID | |
| _TrdClassfctnNmbrSchm | _TrdClassfctnNmbrSchm | |||
| _Product | _Product | |||
| _Country | _TrdClassfctnNmbrSchmUsge | _Country |
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_ProdCommodityCodeDEX.
-- 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: IPRCMDTYCDDX
CREATE VIEW I_ProdCommodityCodeDEX AS
SELECT
Classification.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
Classification.Product AS Product,
cast (Classification.TrdClassfctnNmbr as /sapsll/comco) AS CommodityCode,
Classification.ValidityStartDate AS ValidityStartDate,
_TrdClassfctnNmbrSchmUsge.Country AS Country,
Classification.ValidityEndDate AS ValidityEndDate,
Classification.TrdClassfctnNmbrUUID AS TrdClassfctnNmbrUUID,
_TrdClassfctnNmbrSchmUsge._Country AS _Country
FROM I_ProductTrdClassfctn AS Classification
LEFT OUTER JOIN I_TrdClassfctnNmbrSchmUsge AS _TrdClassfctnNmbrSchmUsge ON _TrdClassfctnNmbrSchmUsge.TrdClassfctnNmbrSchm = Classification.TrdClassfctnNmbrSchm -- 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