Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Not able to create scalar UDF on HANA Cloud instance

$
0
0

Hi all,

 

I am getting issue while creating following function on HANA Cloud instance whereas I am able to create same function on the HANA Server.

 

My Cloud instance is SP& and HANA Server has SP8 installed (I doubt may be this could be the issue not sure!!!!)

 

CREATE FUNCTION "NEO_B1XHM4VFOY1NQ0I57J87Y57N3"."FN_NUM"(IN v1 VARCHAR(100))

RETURNS alpha INTEGER LANGUAGE SQLSCRIPT READS SQL DATA AS

BEGIN alpha:= Case when upper(:v1) LIKE  '%A%'   OR upper(:v1) LIKE  '%B%'   OR

upper(:v1) LIKE  '%C%'   OR upper(:v1) LIKE  '%D%'   OR

upper(:v1) LIKE  '%E%'   OR upper(:v1) LIKE  '%F%'   OR

upper(:v1) LIKE  '%G%'   OR upper(:v1) LIKE  '%H%'   OR

upper(:v1) LIKE  '%I%'   OR upper(:v1) LIKE  '%J%'   OR

upper(:v1) LIKE  '%K%'   OR upper(:v1) LIKE  '%L%'   OR

upper(:v1) LIKE  '%M%'   OR upper(:v1) LIKE  '%N%'   OR

upper(:v1) LIKE  '%O%'   OR upper(:v1) LIKE  '%P%'   OR

upper(:v1) LIKE  '%Q%'   OR upper(:v1) LIKE  '%R%'   OR

upper(:v1) LIKE  '%S%'   OR upper(:v1) LIKE  '%T%'   OR

upper(:v1) LIKE  '%U%'   OR upper(:v1) LIKE  '%V%'   OR

upper(:v1) LIKE  '%W%'   OR upper(:v1) LIKE  '%X%'   OR

upper(:v1) LIKE  '%Y%'   OR upper(:v1) LIKE  '%Z%'   OR

upper(:v1) LIKE '' OR upper(:v1) IS NULL OR upper(:v1) LIKE '% %'

Then 0

Else 1 

End;

END;

 

I am getting following error on my cloud instance :

 

 

Could not execute 'CREATE FUNCTION "NEO_B1XHM4VFOY1NQ0I57J87Y57N3"."FN_NUM"(IN v1 VARCHAR(100)) RETURNS alpha INTEGER ...' in 207 ms 183 µs .

SAP DBTech JDBC: [7]: feature not supported: Scalar UDF does not support the type as its input/output argument: Varchar3

 

Any idea how to solve this issue.

 

- Dharmesh


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>