I_ConsumptionCode

DDL: I_CONSUMPTIONCODE SQL: ICONSUMPTIONCODE Type: view BASIC

Demand Driven View for Consumption Code

I_ConsumptionCode is a Basic CDS View (Dimension) that provides data about "Demand Driven View for Consumption Code" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 2 fields with key field ConsumptionCode. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_ConsumptionText _ConsumptionText $projection.ConsumptionCode = _ConsumptionText.ConsumptionCode

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICONSUMPTIONCODE view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Demand Driven View for Consumption Code view
ObjectModel.representativeKey ConsumptionCode view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
Analytics.dataCategory #DIMENSION view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ConsumptionCode
_ConsumptionText _ConsumptionText

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 I_ConsumptionCode.
-- 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: ICONSUMPTIONCODE

CREATE VIEW I_ConsumptionCode AS
SELECT
  cast ( substring( domvalue_l, 1, 1 ) as pph_abc_ind ) AS ConsumptionCode
FROM dd07l
LEFT OUTER JOIN I_ConsumptionText AS _ConsumptionText ON ConsumptionCode = _ConsumptionText.ConsumptionCode  -- association [0..*]
;