Quantcast
Channel: SCN : Unanswered Discussions - SAP GUI
Viewing all articles
Browse latest Browse all 2552

Some trouble with the Sreen Events in SAP Screen Personas 3.0

$
0
0

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 foryour help!


Peter


Viewing all articles
Browse latest Browse all 2552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>