Deprecated
This CDS view is deprecated in S/4HANA. Use CLS_C_T604 instead. View all deprecated CDS views →

C_Commoditycodetemp

DDL: C_COMMODITYCODETEMP SQL: CCOMMODITYCODE Type: view CONSUMPTION

Value help Commodity code

C_Commoditycodetemp is a Consumption CDS View that provides data about "Value help Commodity code" in SAP S/4HANA. It reads from 1 data source (CLS_C_T604) and exposes 4 fields with key fields Commodity, OriginCountry. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
CLS_C_T604 CLS_C_T604 from

Associations (2)

CardinalityTargetAliasCondition
[0..*] C_Commoditycodetxttemp _Text $projection.Commodity = _Text.Commodity and $projection.OriginCountry = _Text.OriginCountry
[0..1] I_Country _Country $projection.OriginCountry = _Country.Country

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CCOMMODITYCODE view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor CLS_C_T604 view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey Commodity view
EndUserText.label Value help Commodity code view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Commodity CLS_C_T604 stawn Commodity Code
KEY OriginCountry land1 Trip Ctry/Reg
_Text _Text
_Country _Country

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_Commoditycodetemp.
-- 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: CCOMMODITYCODE

CREATE VIEW C_Commoditycodetemp AS
SELECT
  CLS_C_T604.stawn AS Commodity,
  land1 AS OriginCountry
FROM CLS_C_T604
LEFT OUTER JOIN C_Commoditycodetxttemp AS _Text ON Commodity = _Text.Commodity AND OriginCountry = _Text.OriginCountry  -- association [0..*]
LEFT OUTER JOIN I_Country AS _Country ON OriginCountry = _Country.Country  -- association [0..1]
;