Quantcast
Channel: SCN : Unanswered Discussions - SAP GUI
Viewing all articles
Browse latest Browse all 2552

How to call Remote Enabled ABAP Function Modules in Personas 3.0

$
0
0

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.]


I think it might have to do with the FM Exceptions.

All the tutorials don't have Exceptions in the FM


Viewing all articles
Browse latest Browse all 2552

Trending Articles



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