DEMO_CDS_SCALAR_USE_REF_CASE

DDL: DEMO_CDS_SCALAR_USE_REF_CASE Type: view_entity

CDS view entity, scalar func

DEMO_CDS_SCALAR_USE_REF_CASE is a CDS View that provides data about "CDS view entity, scalar func" in SAP S/4HANA. It reads from 1 data source (DEMO_CDS_SCALAR_HELPER) and exposes 3 fields with key field Id.

Data Sources (1)

SourceAliasJoin Type
DEMO_CDS_SCALAR_HELPER DEMO_CDS_SCALAR_HELPER from

Parameters (1)

NameTypeDefault
p1 abap.dec(4,2)

Annotations (2)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CDS view entity, scalar func view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY Id Id WorklistID
Unit2 Unit2
p1asScalarResult

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_SCALAR_USE_REF_CASE.
-- 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.
-- Parameters: p1 : abap.dec(4,2)

CREATE VIEW DEMO_CDS_SCALAR_USE_REF_CASE AS
SELECT
  Id,
  Unit2,
  DEMO_CDS_SCALAR_REF_CASE( p1 => Int4, p2 => abap.int4'22', p3 => $parameters.p1) as ScalarResult AS p1asScalarResult
FROM DEMO_CDS_SCALAR_HELPER
;