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 View: Timestamp Comparison

david_hesse
Explorer
0 Kudos
253

Hello *,


I want to compare two timestamps in a CDS view and derive a result. However, the comparison does not seem to work. What am I doing wrong? is the comparison even possible?

case when FinishDateAsTimestamp < DueDateAsTimestamp then 'C' // SLA complied

when FinishDateAsTimestamp > DueDateAsTimestamp then 'M' // SLA missed

end as SLA_Result

Thank you for answers,
David

0 REPLIES 0