Hi hope anyone can help.
I have no problems in implementing all the tutorial scripts, but when I have a Function Module with Exceptions I get an error calling the module.
Example:
FM: HR_GETEMPLOYEEDATA_FROMUSER
JavaScript:
var userID = ("JNC");
var ddato=session.findById("wnd[1]/usr/ctxtLAST_LOGON_DATE").text;
var FM = session.createRFC("HR_GETEMPLOYEEDATA_FROMUSER",'');
FM.setParameter("USERNAME",userID);
FM.setParameter("VALIDBEGIN",ddato);
FM.requestResults(JSON.stringify(["EMPLOYEENUMBER"]));
FM.send();
var employeenumber = JSON.parse(FM.getResult("EMPLOYEENUMBER.EMPLOYEENUMBER"));
I get the error: Backend Error Occured
In the log I get: [Personas XML element with specified path not found.]