on 07-23-2014 1:25 PM
Hello,
I am currently learning SAP HANA. I have a problem creating my own procedure. I want to create a procedure that generates a unique random string, but until there, I started with something simple (and stupid). I have a database called ETD. Here is my code:
CREATE PROCEDURE GEN_STRING(IN INVAL VARCHAR(30), OUT RETURNVAL VARCHAR(32))
LANGUAGE SQLSCRIPT
AS
INVAL VARCHAR(30);
BEGIN
RETURNVAL := INVAL + 'aa';
END;
This procedure just takes a parameter and appends 'aa' to it. But when I call the procedure in SQLConsole:
CALL "ETD"."GEN_STRING"(INVAL => 'HAHAHA',RETURNVAL => ? );
The returned value is '?'. NormallyI know from the OpenSAP course that for the output parameters, we have to put '?'. What am I doing wrong? Thank you in advance,
Andrei
Message was edited by: Tom Flanagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.