Application Development and Automation 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: 
Read only

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

alex_geppart
Active Participant
1,229

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
Read only

alex_geppart
Active Participant
0 Likes
1,018

Thanks Florian.

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

2 REPLIES 2
Read only

Florian
SAP Champion
SAP Champion
0 Likes
1,018

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

Read only

alex_geppart
Active Participant
0 Likes
1,019

Thanks Florian.

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