Questions tagged [sap-gui]

Questions about SAP GUI, SAP GUI Scripting, using SAP GUI (Calling transactions, setting up in the environment, customizing, etc.)

"SAP Graphical User Interface" (SAP GUI) is a legacy SAP front end tool available for various desktop environments (Windows, Mac, Java) and as an HTML web application.

It also comes with SAP GUI Scripting, an API that allows users to automate repetitive tasks by recording and running macro-like scripts (VBS and others for Windows, JavaScript for Java).

720 questions
5
votes
1 answer

VBA to call SAP transaction

I am trying to call a SAP transaction from Excel, I use many codes from the internet but still a failure. Doesn't matter what code I use, I always get same error message as A script is opening a connection to system SYSTEM than error…
alam
  • 51
  • 1
  • 1
  • 2
4
votes
2 answers

What is the "scope" of CL_GUI_TIMER?

[Lengthy post, apologies] I am looking for confirmation regarding CL_GUI_TIMER: Must each program group (of an internal session) have its own dedicated instance of a CL_GUI_TIMER object? I am finding that if the reference to the CL_GUI_TIMER object…
Pilot
  • 441
  • 2
  • 9
4
votes
2 answers

pywin32 / pywinauto not working properly in remote desktop when it is minimized

I have a Jenkins pipeline that executes a program in a remote server that uses pywin to manipulate an application for functional tests. My application works great while I have the remote desktop oppened but when I close the remote desktop and run it…
Ana Franco
  • 1,611
  • 3
  • 24
  • 43
4
votes
5 answers

SAP GUI Scripting Error, "The Enumerator of the collection cannot find an element with the specified index."

A few weeks ago I generated a script via SAP GUI Scripting functionality, and then put the VBA in an Excel document and attached it to a button. This worked perfectly fine for few weeks, however now when I press the button, I get this error: The…
dustinroepsch
  • 1,122
  • 1
  • 7
  • 24
4
votes
1 answer

How to get function codes for SAP GUI context menus?

I am automating tests of our SAP GUI application using Silk4J (16.0.1.7470). There is a tree where I selected a node. I can open the context menu programmatically with SapTree.nodeContextMenu(). Now I want to simulate a click onto one of the context…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
4
votes
1 answer

Eclipse ABAP Development: Cannot Retrieve Connection configuration

I have installed ABAP Development Tools on Eclipse 4.2 and Kubuntu 12.04 64 bit and everything went fine. When I try to create a new ABAP Project and search for configured SAP Connections on the SAP GUI (I have SAP GUI for Java 7.30 rev 3) Eclipse…
4
votes
2 answers

Database-table default value for a column in SAP R/3

In the context of my SAP Application I added a column to an existing table and would like to define a default value for it, so that old code working with the table (code that is inserting lines especially) doesn't have to care about the new column -…
LionC
  • 3,106
  • 1
  • 22
  • 31
3
votes
2 answers

The control could not be found by id. SAP GUI bug?

I am trying to automate SAP data extraction using scripting. The problem I am facing is a recorded script in SAP isn't working when I'm running it, when I use findById("id") method it comes out that cannot be found, however the tabs are there. The…
Luis Vásquez
  • 115
  • 1
  • 1
  • 8
3
votes
0 answers

Problem closing Excel exported from SAP GUI with VBA

I run a macro which download an Excel report from SAP GUI, save it, and then I need the Excel to be closed. I read similar post in this page but none of them solves my issue. The problem is that once the Macro finish, the Excel downloaded from SAP…
Jowel94
  • 31
  • 1
  • 2
3
votes
2 answers

How to get the IDObject with Attribute in SAP using Automation Anywhere with DLL?

I'm developing an automation process on SAP with Automation Anywhere using the SAP DLLs provided by Automation Anywhere itself. I need to find IDObject with specify attribute to click/get value the specify element , but seems that there are no…
umbyrulez
  • 31
  • 1
3
votes
1 answer

Debugging under RFC user possible?

I have written an ABAP function module, which works fine if I execute it with my developer account. If another user executes it, he gets an empty result. The other user is an RFC-account which cannot log in with the SAP GUI. I am clueless how to…
guettli
  • 25,042
  • 81
  • 346
  • 663
3
votes
2 answers

Disable SAP logon popup in Excel VBA

I have a VBA code which helps to login into SAP GUI. The code works fine but I am getting a warning popup when it establishes the connection. A script is opening a connection to system: ******* I need to either bypass or disable this warning…
Anirudh Chauhan
  • 111
  • 2
  • 9
3
votes
0 answers

'Remote procedure call failed' when opening Excel .xlsm in VBScript

I've been running into trouble opening Macro-Enabled Excel Workbooks through a VBScript that runs overnight (works with extracting data from SAP, into Excel). It used to work all the time, but recently it keeps throwing a Windows Script Host error…
Rick Owens
  • 31
  • 1
  • 2
3
votes
3 answers

Stop transaction in SAP with VBA

I have a working VBA macro which enters SAP, starts a transaction and then extracts the data in spreadsheet. But sometimes the calculation runs too long, or I just would like to stop it to intervene. There is a functionality on the toolbar at the…
ViktorovicsL
  • 75
  • 2
  • 8
3
votes
3 answers

How can I handle waiting for another application (SAP GUI) to complete an OLE action?

I am trying to automate a process in SAP GUI. I recorded a series of procedures and pasted the code in a macro sheet. I make Excel read the VBA code with the following commands: Dim SapGuiAuto As Object Dim Application As Object Dim Connection As…
M_Delineshev
  • 115
  • 1
  • 3
  • 11
1
2
3
47 48