Hi,
can anyone tell me what is wrong in the below statement.
sql('HANA_DB','INSERT INTO MYSCHEMA.ERROR_LOG VALUES($L_ERROR_NUMBER ,$L_ERROR_CONTEXT ,$L_ERROR_MESSAGE ,$L_ERROR_TIMESTAMP)');
I am using the above statement inside custom function and calling the custom function from the catch block when the job fails.
The above statement is working fine if I am not using the local variables.
1. $L_ERROR_NUMBER
2. $L_ERROR_CONTEXT
3. $L_ERROR_MESSAGE
4. $L_ERROR_TIMESTAMP
are local variable.
Thank you,
Regards,
Ranjith.