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

Sap Personas & RFC

$
0
0

Hi Guys,

 

I'm trying to get a simple data into my Personas textfield using RFC.

Same as showen in the link below:

How to use RFCs in Personas 3.0 - SAP Imagineering - SCN Wiki

 

var rfc = session.createRFC("BAPI_USER_GET_DETAIL", "");

     rfc.setParameter("USERNAME", "XXXXXX");

     rfc.requestResults(JSON.stringify(["ADDRESS", "RETURN"]));

     rfc.send();


var address = JSON.parse(rfc.getResult("ADDRESS"));

     session.utils.log(address.FULLNAME);

 

I'm getting an error when excuting my script

 

In Scripting editor session.createRFC is not found in the list of session.(objetcs)

 

 

Error during script execution:

TypeError: undefined is not a function

at eval (eval at <anonymous>


Can any one help me ?


Many thanks,

Medix


Viewing all articles
Browse latest Browse all 3255

Trending Articles



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