DEMO_CDS_TIMESTAMP_FUNC_VE

DDL: DEMO_CDS_TIMESTAMP_FUNC_VE Type: view_entity

DEMO_CDS_TIMESTAMP_FUNC_VE is a CDS View in SAP S/4HANA. It reads from 1 data source (demo_expressions) and exposes 4 fields with key field id.

Data Sources (1)

SourceAliasJoin Type
demo_expressions demo_expressions from

Parameters (1)

NameTypeDefault
p_seconds abap.int4

Annotations (1)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY id id WorklistID
timestamp1 timestamp1 Time Stamp
valid1
dec123456789123456FAILFAILasdifference

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_TIMESTAMP_FUNC_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_seconds : abap.int4

CREATE VIEW DEMO_CDS_TIMESTAMP_FUNC_VE AS
SELECT
  id,
  timestamp1,
  tstmp_is_valid(abap.dec'202001022306050') AS valid1,
  tstmp_seconds_between( tstmp_current_utctimestamp(), tstmp_add_seconds( timestamp1, abap.dec'123456789123456', 'FAIL'), 'FAIL') as difference AS dec123456789123456FAILFAILasdifference
FROM demo_expressions
;