Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to get the JSON output format from an procedure call using XSJS

$
0
0

Thanks for the clarifications..

 

i am trying some work around to use date as string instead of DATE type..

 

Can you let me know what is the error in my query string of my .XSJS file shown below..

 

var date1 = $.request.parameters.get('date1');

var date2 = $.request.parameters.get('date2');

var date3 = $.request.parameters.get('date3');

 

query = "call \"_SYS_BIC\".\"test/CALC_BURNING_ALL\"('"+date1+"','"+date2+"','"+date3+"',?)";

 

 

 

URL to run the XSJS:

 

http://sap.com:8000/TEST/TEST_CURVE/test_curve.xsjs?&date1='20140515'&date2='20140618'&date3='20140730'

 

Below is the error i am getting..

 

dberror(Connection.prepareCall): 257 - sql syntax error: incorrect syntax near "20140515": line 1 col 49 (at pos 49) at qp_gram.y:39162

 


Viewing all articles
Browse latest Browse all 9165

Trending Articles