DEMO_CDS_QUAN_ARITH

DDL: DEMO_CDS_QUAN_ARITH Type: view_entity

CDS view entity, calc quan in arith_expr

DEMO_CDS_QUAN_ARITH is a CDS View that provides data about "CDS view entity, calc quan in arith_expr" in SAP S/4HANA. It reads from 1 data source (DEMO_CDS_CALC_QUANTITY_BASE) and exposes 7 fields with key field Id.

Data Sources (1)

SourceAliasJoin Type
DEMO_CDS_CALC_QUANTITY_BASE DEMO_CDS_CALC_QUANTITY_BASE from

Annotations (2)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CDS view entity, calc quan in arith_expr view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Id Id WorklistID
Cuky Cuky
my_calcQuan
my_calcUnit
AmountAddition
newCalcQuan
calcUnit

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 DEMO_CDS_QUAN_ARITH.
-- 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 DEMO_CDS_QUAN_ARITH AS
SELECT
  Id,
  Cuky,
  CURR_TO_DECFLOAT_AMOUNT(Curr102) / Quan10 AS my_calcQuan,
  concat( concat( Cuky , '/' ), Unit2 ) AS my_calcUnit,
  Dec10 + D34n AS AmountAddition,
  my_calcQuan * 5 AS newCalcQuan,
  concat( concat( Cuky , '/' ), Unit2 ) AS calcUnit
FROM DEMO_CDS_CALC_QUANTITY_BASE
;