C_ProdCmmdtyCodeObjPage
Product Classification - Commodity Code
C_ProdCmmdtyCodeObjPage is a Consumption CDS View that provides data about "Product Classification - Commodity Code" in SAP S/4HANA. It reads from 2 data sources (I_CmmdtyCodeNmbrSchm, I_TrdClassfctnProduct) and exposes 16 fields with key fields Product, TrdClassfctnNmbrSchm. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F3935). Part of development package VDM_SLL_CLS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyCodeNmbrSchm | _CmmdtyCodeNmbrSchm | cross |
| I_TrdClassfctnProduct | _TrdClassfctnProduct | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProdCmmdtyCodeForKeyDate | _ProdCmmdtyCodeForKeyDate | $projection.TrdClassfctnNmbrSchm = _ProdCmmdtyCodeForKeyDate.TrdClassfctnNmbrSchm and $projection.Product = _ProdCmmdtyCodeForKeyDate.Product |
| [0..1] | I_Product | _Product | _Product.Product = $projection.Product |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Product Classification - Commodity Code | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CPRCMDCDOP | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.draftEnabled | false | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3935 | ASQL_F3935 | C2 | NOT_RELEASED |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_TrdClassfctnProduct | Product | Product Sold |
| KEY | TrdClassfctnNmbrSchm | I_CmmdtyCodeNmbrSchm | TrdClassfctnNmbrSchm | |
| TrdClassfctnNmbrSchmName | Numbering Scheme Description | |||
| CommodityCode | ||||
| TrdClassfctnNmbrForOfclDesc | ||||
| TrdClassfctnNmbrForCnctntdDesc | ||||
| ValidityStartDate | ||||
| ValidityEndDate | ||||
| TrdClassfctnRemark | ||||
| TrdClassfctnNmbr | ||||
| TrdClassfctnNmbrSchmCntnt | ||||
| TrdClassfctnNmbrStartDate | ||||
| _OfficialDesc | ||||
| _CnctntdDesc | ||||
| _TrdClassfctnNmbrSchmText | _TrdClassfctnNmbrSchmText | |||
| _Product | _Product |
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_ProdCmmdtyCodeObjPage.
-- 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: CPRCMDCDOP
CREATE VIEW C_ProdCmmdtyCodeObjPage AS
SELECT
_TrdClassfctnProduct.Product AS Product,
_CmmdtyCodeNmbrSchm.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
_TrdClassfctnNmbrSchmText[ 1: Language = $session.system_language ].TrdClassfctnNmbrSchmName AS TrdClassfctnNmbrSchmName,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).CommodityCode AS CommodityCode,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrForOfclDesc AS TrdClassfctnNmbrForOfclDesc,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrForCnctntdDesc AS TrdClassfctnNmbrForCnctntdDesc,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).ValidityStartDate AS ValidityStartDate,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).ValidityEndDate AS ValidityEndDate,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnRemark AS TrdClassfctnRemark,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbr AS TrdClassfctnNmbr,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date).TrdClassfctnNmbrStartDate AS TrdClassfctnNmbrStartDate,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date)._OfficialDesc AS _OfficialDesc,
_ProdCmmdtyCodeForKeyDate(P_KeyDate : $session.system_date)._CnctntdDesc AS _CnctntdDesc
FROM I_TrdClassfctnProduct AS _TrdClassfctnProduct
CROSS JOIN I_CmmdtyCodeNmbrSchm AS _CmmdtyCodeNmbrSchm
LEFT OUTER JOIN I_ProdCmmdtyCodeForKeyDate AS _ProdCmmdtyCodeForKeyDate ON TrdClassfctnNmbrSchm = _ProdCmmdtyCodeForKeyDate.TrdClassfctnNmbrSchm AND Product = _ProdCmmdtyCodeForKeyDate.Product -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Product -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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