I can create following function
CREATE FUNCTION "PMX_FN_TEST" (
p_in INTEGER
)
RETURNS p_out INTEGER
LANGUAGE SQLSCRIPT AS
BEGIN
p_out := 0xA001 + p_in;
END;
but calling it as follows:
SELECT "PMX_FN_TEST"( 5 ) FROM dummy;
results in error:
Could not execute 'SELECT "PMX_FN_TEST"( 5 ) FROM dummy' in 45 ms 16 µs .
SAP DBTech JDBC: [478]: user defined function runtime error: Llang Runtime Error: FatalException::Unregistered[130] (range 2): 'A001'
at main (line 12) (TEST.PMX_FN_TEST: line 7 col 2 (at pos 99))
at user-defined function
What is wrong here?
I do not get a syntax error on the 0xA001 when creating the function.