cancel
Showing results for 
Search instead for 
Did you mean: 

Some trouble with the Sreen Events in SAP Screen Personas 3.0

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Peter,

please check note 2050325.

http://service.sap.com/sap/support/notes/2050325

Regards,

Christian

Former Member
0 Kudos

Hi Christian,

thanks a lot! This note solved my problem.

Best regards,

Peter

Answers (0)