on 07-28-2016 5:55 PM
Hi all,
I've created my own RFC with some simple data and added it to the whitelist.
But the 2nd parameter ZZREPORT doesn't seem to be reaching the RFC from the script.
If I comment-out line 37, then it will process the 2nd submit. If I leave line 37 in, then it does nothing.
Any suggestions?
FYI: my intention was to have one RFC for a number of maintenance order "additional functions" by passing the ZZREPORT parameter from the script to the RFC.
We are using Personas 3.0 SP3 with kernel 742 patch 401.
PeteA
Hi Pete,
What is the data type of the second parameter? Did you check with a session breakpoint if the RFC is being executed when the second parameter is set? Also, see if there are any exceptions in the browser console.
Best regards
Kranthi
SAP Screen Personas Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kranthi
Bear with me - I'm very new to Personas.
My answers to your questions a below in RED:
What is the data type of the second parameter?
The 2nd parameter is a CHAR1 data element.
Did you check with a session breakpoint if the RFC is being executed when the second parameter is set?
I did set a breakpoint in the script (degugger:) and the REPORT value is being set correctly before the RFC is called. I haven't tried a BREAKPOINT inside the RFC, as I was told that it will not trigger. But I will also try that..
Also, see if there are any exceptions in the browser console.
No exceptions are issued in the scripting section of the Personas screen (bottom of the screen). I'm not experienced enough to know if Chrome's debugger is giving any warning..
PeteA
Here's an update with respect to my script code:
var OrderReport = "A";
var oRFC = session.createRFC("Z_PM_PERSONAS_RFC");
oRFC.setParameter("ZZAUFNR", OrderNum);
oRFC.setParameter("ZZREPORT", OrderReport); <<<<------
oRFC.send();
I put a breakpoint in the RFC:
Any suggestions?
PeteA
Hi Pete,
This is strange. Are you on SP02 or SP03?
If you are on SP03 and have the latest backend Notes and the latest client, I suggest you create an incident and we will investigate. The component is BC-PER.
The list of backend Notes and the client Note is mentioned in this SAP Note - https://launchpad.support.sap.com/#/notes/2295995
Best regards
Kranthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.