Hi Parminder,
Can you please use IF construct instead of CASE. Please check the following section in the documentation of F1 help in HANA studio.
SAP HANA SQLScript Reference > Imperative SQLScript Logic > Control Structures > Conditionals
It is the alternative for CASE construct in HANA Programming. The documentation clearly mentions that "This statement can be used to simulate the switch-case statement known from many programming languages."
Regards,
Ravi