C_ProductTrdClassfctn
Product Classfication
C_ProductTrdClassfctn is a Consumption CDS View that provides data about "Product Classfication" in SAP S/4HANA. It reads from 3 data sources (I_TrdClassfctnNmbrSchmCntntAct, I_TrdClassfctnNmbrSchm, I_ProductTrdClassfctn) and exposes 16 fields with key fields TrdClassfctnNmbrSchm, Product. It has 2 associations to related views. It is exposed through 4 OData services (ASQL_F2151, ASQL_F2152, ASQL_F3146, ...). Part of development package VDM_SLL_CLS.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_TrdClassfctnNmbrSchmCntntAct | _Activation | inner |
| I_TrdClassfctnNmbrSchm | _NumberingScheme | inner |
| I_ProductTrdClassfctn | Class | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sll_validon |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrdClassfctnNmbrOfficialDesc | _OfficialDesc | _Activation.TrdClassfctnNmbrSchmCntnt = _OfficialDesc.TrdClassfctnNmbrSchmCntnt and $projection.TrdClassfctnNmbr = _OfficialDesc.TrdClassfctnNmbr and $projection.TrdClassfctnNmbrStartDate = _OfficialDesc.ValidityStartDate |
| [0..1] | I_TrdClassfctnNmbr | _TrdClassfctnNmbr | _TrdClassfctnNmbr.TrdClassfctnNmbr = Class.TrdClassfctnNmbr and _TrdClassfctnNmbr.TrdClassfctnNmbrSchmCntnt = _Activation.TrdClassfctnNmbrSchmCntnt |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Product Classfication | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CPRTRDCLS | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view | |
| Metadata.allowExtensions | true | view |
OData Services (4)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2151 | ASQL_F2151 | C2 | NOT_RELEASED | |
| ASQL_F2152 | ASQL_F2152 | C2 | NOT_RELEASED | |
| ASQL_F3146 | ASQL_F3146 | C2 | NOT_RELEASED | |
| ASQL_F3147 | ASQL_F3147 | C2 | NOT_RELEASED |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrdClassfctnNmbrSchm | I_ProductTrdClassfctn | TrdClassfctnNmbrSchm | Numbering Scheme |
| KEY | Product | Product | Product Sold | |
| ValidityStartDate | I_ProductTrdClassfctn | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_ProductTrdClassfctn | ValidityEndDate | ValidTo | |
| ProductTradeClassificationUUID | I_ProductTrdClassfctn | ProductTradeClassificationUUID | UUID | |
| TrdClassfctnNmbrSchmCntnt | I_TrdClassfctnNmbrSchmCntntAct | TrdClassfctnNmbrSchmCntnt | No. Scheme Content | |
| TrdClassfctnNmbr | I_ProductTrdClassfctn | TrdClassfctnNmbr | Number | |
| TrdClassfctnNmbrForOfclDesc | TrdClassfctnNmbr | Number | ||
| TrdClassfctnNmbrSchmType | I_TrdClassfctnNmbrSchm | TrdClassfctnNmbrSchmType | No. Scheme Type | |
| TrdClassfctnRemark | TrdClassfctnRemark | Remark | ||
| _TrdClassfctnNmbrSchm | I_ProductTrdClassfctn | _TrdClassfctnNmbrSchm | ||
| _TrdClassfctnNmbrSchmText | I_ProductTrdClassfctn | _TrdClassfctnNmbrSchmText | ||
| TrdClassfctnNmbrStartDate | _TrdClassfctnNmbr | ValidityStartDate | Validity Start Date | |
| _Product | _Product | |||
| _OfficialDesc | _OfficialDesc | |||
| _TrdClassfctnNmbrSchmTypeText | I_TrdClassfctnNmbrSchm | _TrdClassfctnNmbrSchmTypeText |
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_ProductTrdClassfctn.
-- 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: CPRTRDCLS
-- Parameters: P_KeyDate : sll_validon
CREATE VIEW C_ProductTrdClassfctn AS
SELECT
Class.TrdClassfctnNmbrSchm AS TrdClassfctnNmbrSchm,
Product,
Class.ValidityStartDate AS ValidityStartDate,
Class.ValidityEndDate AS ValidityEndDate,
Class.ProductTradeClassificationUUID AS ProductTradeClassificationUUID,
_Activation.TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
Class.TrdClassfctnNmbr AS TrdClassfctnNmbr,
TrdClassfctnNmbr AS TrdClassfctnNmbrForOfclDesc,
_NumberingScheme.TrdClassfctnNmbrSchmType AS TrdClassfctnNmbrSchmType,
TrdClassfctnRemark,
Class._TrdClassfctnNmbrSchm AS _TrdClassfctnNmbrSchm,
Class._TrdClassfctnNmbrSchmText AS _TrdClassfctnNmbrSchmText,
_TrdClassfctnNmbr.ValidityStartDate AS TrdClassfctnNmbrStartDate,
_NumberingScheme._TrdClassfctnNmbrSchmTypeText AS _TrdClassfctnNmbrSchmTypeText
FROM I_ProductTrdClassfctn AS Class
INNER JOIN I_TrdClassfctnNmbrSchmCntntAct AS _Activation ON /* join condition not captured in parsed metadata */
INNER JOIN I_TrdClassfctnNmbrSchm AS _NumberingScheme ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TrdClassfctnNmbrOfficialDesc AS _OfficialDesc ON _Activation.TrdClassfctnNmbrSchmCntnt = _OfficialDesc.TrdClassfctnNmbrSchmCntnt AND TrdClassfctnNmbr = _OfficialDesc.TrdClassfctnNmbr AND TrdClassfctnNmbrStartDate = _OfficialDesc.ValidityStartDate -- association [0..*]
LEFT OUTER JOIN I_TrdClassfctnNmbr AS _TrdClassfctnNmbr ON _TrdClassfctnNmbr.TrdClassfctnNmbr = Class.TrdClassfctnNmbr AND _TrdClassfctnNmbr.TrdClassfctnNmbrSchmCntnt = _Activation.TrdClassfctnNmbrSchmCntnt -- 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