cancel
Showing results for 
Search instead for 
Did you mean: 

session.info.screenNumber;

Former Member
0 Kudos

Hi,

I've been using


var tcode = session.info.transaction;

To take the user to correct transaction in some if statements.

But when I try to use


var screen = session.info.screenNumber;

I only get script error. Same if I try to use program for instance. Am I doing something wrong?

Error:

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

can you make sure that you have the latest version of client?

Also put your whole script here

Former Member
0 Kudos

Hi,

Here is the script:


session.findById("wnd[0]/tbar[0]/btn[3]").press();

var tcode = session.info.transaction;

if(tcode == "IE03")

  {

  session.findById("wnd[0]/mbar/menu[0]/menu[2]").select();

  session.findById("wnd[0]").sendVKey(0);

  }

else if(tcode == "ZTOOLS")

  {

  var screen = session.info.screenNumber;

  alert(screen); //No popup is coming and in Logging there is error during script execution

  }

How do i check the client?

Best Regards,

Oskar Söderlund

0 Kudos

Hi Oskar,

You can run the health check tool in the SAP Screen Personas admin transaction - /PERSONAS/ADMIN . This tool will indicate if the latest client sources are implemented or not.

The latest version of SAP Screen Personas 3.0 SP02 is version 23 of the following SAP Note:

2222774 - SAP Screen Personas 3.0 SP02 : Update of Client Sources Files

Can you let me know the type of transaction ZTOOLS? Is it a report program or a program with screens etc. ?

If the error occurs with the latest version of the client, kindly open an incident. It is possible that the screen information sent from the backend somehow does not have the screen information for this transaction.

Best regards

Kranthi