Skip to Content
0
Mar 04, 2021 at 05:45 PM

CASE date variable

47 Views

I am recreating a report from cognos to saps/4 in bobj. I need to create a variable to pull into the report as a column. Here is the cognos expression:

case

when

current_date > [Request Date]
then

current_date - [Request Date]
else null

It does not appear I can use 'case' in a bobj variable? How can I recreate this?