on 03-09-2015 12:21 PM
Hi all,
I have some trouble with the Sreen Events in SAP Screen Personas 3.0
My example:
With a simple script I like to catch some data from the table T001B:
// Open FI-Period from table T001B with TA SE11
// SE11
session.callTransaction("SE11");
// Key in table T001B
session.findById("wnd[0]/usr/ctxtRSRD1-TBMA_VAL").text = "t001b";
session.findById("wnd[0]/usr/btnPUSHSHOW").press();
session.findById("wnd[0]/tbar[1]/btn[46]").press();
// Select Company Code
session.findById("wnd[0]/usr/ctxtI2-LOW").text = "v001";
session.findById("wnd[0]/tbar[1]/btn[8]").press();
// Save values
var FRYE1 = session.findById("wnd[0]/usr/lbl[50,5]").text,
FRPE1 = session.findById("wnd[0]/usr/lbl[56,5]").text,
TOYE1 = session.findById("wnd[0]/usr/lbl[62,5]").text,
TOPE1 = session.findById("wnd[0]/usr/lbl[68,5]").text;
// Back to SMEN
session.findById("wnd[0]/tbar[0]/btn[15]").press();
session.findById("wnd[0]/tbar[0]/btn[15]").press();
session.findById("wnd[0]/tbar[0]/btn[15]").press();
// Values in label
var strOpenFI =("Open FI-Period: " + FRPE1 + "/" + FRYE1 + " to " + TOPE1 + "/" + TOYE1);
session.findById("wnd[0]/usr/boxPersonas_2/lblPersonas_3").text = strOpenFI
In a copy of the SMEN transaction, this script work with a script button very well. But when I try to execute this script with the Screen Events, nothing happens. I try all events and refresh the SMEN transaction with Ctrl+F1.
Thanks for your help!
Peter
Hi Peter,
please check note 2050325.
http://service.sap.com/sap/support/notes/2050325
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.