C_ProdCmmdtyCodeObjPage

DDL: C_PRODCMMDTYCODEOBJPAGE SQL: CPRCMDCDOP Type: view CONSUMPTION Package: VDM_SLL_CLS

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)

SourceAliasJoin Type
I_CmmdtyCodeNmbrSchm _CmmdtyCodeNmbrSchm cross
I_TrdClassfctnProduct _TrdClassfctnProduct from

Associations (2)

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

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

ServiceBindingVersionContractRelease
ASQL_F3935 ASQL_F3935 C2 NOT_RELEASED

Fields (16)

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