on 02-21-2016 9:23 PM
Hi,
I have written a script with a function call and it is not returning any values.
This is the code.
var rfc = session.createRFC("BAPI_EQUI_GETDETAIL");
rfc.setParameter("EQUIPMENT", "10000080");
rfc.requestResults(JSON.stringify(["DATA_GENERAL_EXP", "RETURN"]));
rfc.send();
var equipment = JSON.parse(rfc.getResult("DATA_GENERAL_EXP"));
session.utils.log(equipment.OBJECTTYPE);
I have also maintained the rfc in the FM whitelist
What i'm i doing wrong?
It's the leading zeroes... the equipment number is a 18 CHAR field, so you have to specify the equipment number like "000000000010000080"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem resolved.. leading zeros solved the problem
I have tested the Function module in se37 and it works but it still wont return values in personas script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.