Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

sql() funtion in BODS

$
0
0

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.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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