Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

SAP HANA OData xsjs Modification exit binding error

$
0
0

Hi All,

 

I'm currently trying to bind my modification exit to my OData service, but I constantly get a syntax error.

 

Binding XSJS Binding statement

"TIMESHEET"."TIMEENTRY" as "TIME_ENTRY" navigates ("PROJECT_TIME_ENTRY" as "TIME_TO_PROJECTS") update using "BHTimeMan.service:time_entry.xsjslib:create_before_exit";

 

     Capture1.PNG

 

XS JavaScript function

function create_before_exit(param)

{

    $.trace.debug("entered function");

    var before =  param.beforeTableName;

    var pStmt = null;

    // Get Input New record Values

 

    try

    {

         pStmt = param.connection.prepareStatement('select * from ”' + before +'"');

        $.trace.debug(before);

     

    }catch(e)

    {

        pStmt.close();

    }

}

 

Syntax error

 

Capture2.PNG

 

Any help will be highly appreciated.

 

Regards

Sim


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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