C_ProductTrdClassfctn

DDL: C_PRODUCTTRDCLASSFCTN SQL: CPRTRDCLS Type: view CONSUMPTION Package: VDM_SLL_CLS

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)

SourceAliasJoin Type
I_TrdClassfctnNmbrSchmCntntAct _Activation inner
I_TrdClassfctnNmbrSchm _NumberingScheme inner
I_ProductTrdClassfctn Class from

Parameters (1)

NameTypeDefault
P_KeyDate sll_validon

Associations (2)

CardinalityTargetAliasCondition
[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)

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

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

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