I_ProdCommodityCodeDEX

DDL: I_PRODCOMMODITYCODEDEX SQL: IPRCMDTYCDDX Type: view COMPOSITE Package: VDM_SLL_CLS

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

CategoryTrade Classification
Data CategoryDimension
StatusC1 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 .

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_ProductTrdClassfctn Classification from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_TrdClassfctnNmbrSchmUsge _TrdClassfctnNmbrSchmUsge _TrdClassfctnNmbrSchmUsge.TrdClassfctnNmbrSchm = Classification.TrdClassfctnNmbrSchm

Annotations (17)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;