cancel
Showing results for 
Search instead for 
Did you mean: 

migrate Screen personas 3.0 service pack 3 to screen personas 3.0 with service pack 9

former_member623925
Discoverer
0 Kudos

hi,

I have a problem in the call to rfc, I have migrated from screen personas 3.0 service pack 3 to screen personas 3.0 service pack 9. In the scripts I have calls to rfc using the XMLHttpReques method, as follows

var random = Math.random ();

var server = location.protocol + '//' + location.host;

var webrfcURL = "" + server + "/ sap (bD1lcyZjPTIwMQ ==) / bc / webrfc? _FUNCTION = Z_xxxx & _Name =" + v_pernr + "& _ random =" + random + "";

var request = new XMLHttpRequest ();

request.open ("GET", webrfcURL, false);

request.send ();

var results = request.responseText;

var arr = JSON.parse (results);

var arr_length = parseInt (arr.results.length);

but with the new service pack, it does not recognize the instructions

var server = location.protocol + '//' + location.host;

as well as neither

var request = new XMLHttpRequest ();

How can i solve this problem?

from already very grateful

Greetings.

Accepted Solutions (0)

Answers (1)

Answers (1)

amel_saidani
Participant
0 Kudos

Hello,

It is been a while, any chance you solved this please ?

Thank you