C_TranspCommodityCodeVH

DDL: C_TRANSPCOMMODITYCODEVH Type: view_entity CONSUMPTION

Transportation Commodity Code

C_TranspCommodityCodeVH is a Consumption CDS View that provides data about "Transportation Commodity Code" in SAP S/4HANA. It reads from 2 data sources (I_TransportationCommodityCode, I_TrdClassfctnNmbrSchmCntnt) and exposes 8 fields with key fields TrdClassfctnNmbrSchmCntnt, CommodityCode, ValidityStartDate. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_TransportationCommodityCode CommodityCode from
I_TrdClassfctnNmbrSchmCntnt NumberSchemeContent inner

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_TranspCommodityCodeText _CommodityCodeText $projection.TrdClassfctnNmbrSchmCntnt = _CommodityCodeText.TrdClassfctnNmbrSchmCntnt and $projection.CommodityCode = _CommodityCodeText.CommodityCode and $projection.ValidityStartDate = _CommodityCodeText.ValidityStartDate

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Consumption.valueHelpDefault.fetchValues #AUTOMATICALLY_WHEN_DISPLAYED view
EndUserText.label Transportation Commodity Code view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey CommodityCode view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.viewType #CONSUMPTION view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY TrdClassfctnNmbrSchmCntnt I_TransportationCommodityCode TrdClassfctnNmbrSchmCntnt No. Scheme Content
KEY CommodityCode I_TransportationCommodityCode CommodityCode Commodity Code
KEY ValidityStartDate I_TransportationCommodityCode ValidityStartDate Validity Start Date
TranspCmmdtyCodeDesc
_TrdClassfctnNmbrSchmCntnt I_TransportationCommodityCode _TrdClassfctnNmbrSchmCntnt
_TrdClassfctnNmbrSchmCntntTxt I_TransportationCommodityCode _TrdClassfctnNmbrSchmCntntTxt
_Date I_TransportationCommodityCode _Date
_CommodityCodeText _CommodityCodeText

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_TranspCommodityCodeVH.
-- 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.

CREATE VIEW C_TranspCommodityCodeVH AS
SELECT
  CommodityCode.TrdClassfctnNmbrSchmCntnt AS TrdClassfctnNmbrSchmCntnt,
  CommodityCode.CommodityCode AS CommodityCode,
  CommodityCode.ValidityStartDate AS ValidityStartDate,
  _CommodityCodeText[1:Language=$session.system_language].TranspCmmdtyCodeDesc AS TranspCmmdtyCodeDesc,
  CommodityCode._TrdClassfctnNmbrSchmCntnt AS _TrdClassfctnNmbrSchmCntnt,
  CommodityCode._TrdClassfctnNmbrSchmCntntTxt AS _TrdClassfctnNmbrSchmCntntTxt,
  CommodityCode._Date AS _Date
FROM I_TransportationCommodityCode AS CommodityCode
INNER JOIN I_TrdClassfctnNmbrSchmCntnt AS NumberSchemeContent ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TranspCommodityCodeText AS _CommodityCodeText ON TrdClassfctnNmbrSchmCntnt = _CommodityCodeText.TrdClassfctnNmbrSchmCntnt AND CommodityCode = _CommodityCodeText.CommodityCode AND ValidityStartDate = _CommodityCodeText.ValidityStartDate  -- association [1..*]
;