DEMO_SALES_CDS_SALES_ORDER_VE

DDL: DEMO_SALES_CDS_SALES_ORDER_VE Type: view_entity Package: SABAP_DEMOS_SALES

CDS view entity, sales order, example for SELECT, element

DEMO_SALES_CDS_SALES_ORDER_VE is a CDS View that provides data about "CDS view entity, sales order, example for SELECT, element" in SAP S/4HANA. It reads from 1 data source (spfli) and exposes 6 fields with key field carrid. Part of development package SABAP_DEMOS_SALES.

Data Sources (1)

SourceAliasJoin Type
spfli spfli from

Parameters (1)

NameTypeDefault
p_delay abap.int4

Annotations (1)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY carrid carrid Carrier
carrname _scarr carrname Carrier
literal
parameterExample
currentDate
cnt

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_SALES_CDS_SALES_ORDER_VE.
-- 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: p_delay : abap.int4

CREATE VIEW DEMO_SALES_CDS_SALES_ORDER_VE AS
SELECT
  carrid,
  _scarr.carrname AS carrname,
  'abc' AS literal,
  $parameters.p_delay AS parameterExample,
  $session.user_date AS currentDate,
  count(*) AS cnt
FROM spfli
;