Skip to Content

SAP GUI for Windows Scripting challenge

Nov 11, 2016 at 05:22 PM


avatar image

Hello Experts,

We are moving from GUIXT to screen personas and have Kernel 7.42 PL 401 and SP03.

We wanted to use the Screen personas in SAP GUI for windows.

We are developing in WEB UI and want to deploy to users in SAP GUI for windows.

Currently facing an issue with the script developed in web UI, to retrieve data from MM03 for a material number. In Webui, the script works fine, but when accessed in SAP GUI, it fails at function "executewebrequest".

As we do recording, when selecting the views in MM03, the Java script command is as follows:

session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").executeWebRequest("post", "action", "62", "position=0", null); session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").executeWebRequest("post", "action", "47", "rows=;1;", null); session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW/txtMSICHTAUSW-DYTXT[0,8]").setFocus();

As we wanted to access these flavors in SAP GUI, what should be done to resolve the error in script while selecting views as function executewebrequest is failing at SAP GUI.

The same script works fine at WEB UI, with no issues

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Cristiano Hansen
Mar 30 at 07:40 PM

Hi Venkatesh,

Please read SAP note 2080071, section "Limitations for the usage in SAP Screen Personas per UI element / control", specially points related to "Scripting".

Kind regards,

10 |10000 characters needed characters left characters exceeded