Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Views - Using a built-in function as actual parameter

alex_geppart
Active Participant

Hello guys,

I'm a little disappointed.

I try to call a CDS view with parameters from another CDS view.

As input parameter I need a timestamp.

Now I thought that you can simply use the built-in function tstmp_current_utctimestamp(),

but my 7.50 system complains about the syntax.

Do I miss something here?

Are cds built-in functions not meant to be used outside of {..} block?

kind regards

Alex

1 ACCEPTED SOLUTION

alex_geppart
Active Participant
0 Kudos

Thanks Florian.

I have solved this by implementing my use case as table function with AMDP.

2 REPLIES 2

Florian
Active Contributor
0 Kudos

No.. but you can add the timestamp field in your first cds and pass it.. at least I think this should work 😉

alex_geppart
Active Participant
0 Kudos

Thanks Florian.

I have solved this by implementing my use case as table function with AMDP.