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
-2
votes
4 answers

SAP & Excel Error - SAP trying to open a file in Excel

I write a lot of Excel macros that send script messages to SAP's GUI to execute queries and download the results to an Excel file. My problem is that SAP tries to open the file when the export is complete. I want to suppress this action because at…
-2
votes
1 answer

How to execute 3 lines at same time?

I have this code that connects to SAP GUI. These three lines are connected to the buttons to run in 3 different windows of SAP. But each window takes about 15 minutes to load. I need the three buttons to run at the same time or not to wait for the…
-2
votes
1 answer

how to declare the window with zero values

I have a situation when a table in SAP GUI does not have fields and I have to go back to the main table and start on a next iteration. I do not know how to declare this event in VBA. In other cases, I just double-click on lines. This table calls a…
OAltyn
  • 21
  • 8
-2
votes
1 answer

Looping through a table in SAP GUI returns an error

I am running a script from Excel and would like to loop through rows in a table in order to obtain values for each line in a table. Here is what I basically need to do: Go to a page with a table in SAP GUI Double click on a line, which brings me…
OAltyn
  • 21
  • 8
-2
votes
1 answer

SAP GUI How to find number of rows when creating a BOM for use in VBA

I'm trying to write a function to copy BOMs (SAP ERP) from an old part to a new part, only changing material quantity. To do this I need to know how many rows of materials are in each particular BOM, which changes depending on the part. When I use…
bcherb2
  • 1
  • 2
-2
votes
2 answers

SAP - Mac vs Windows setup

I'm using the SAP GUI for JAVA on a Mac computer. My colleague sent me the information on how to connect: However, the Mac UI looks completely different: Where can I find the screen to add a connection like on Windows? Thank you!
lte__
  • 7,175
  • 25
  • 74
  • 131
-2
votes
1 answer

How to determine the patch level of SAP GUI from a dump?

I have a crash dump of SAP GUI (saplogon.exe) and would like to know which Patch Level is has. How can I get that information?
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
-2
votes
2 answers

VBS Script error in SAP GUI control could not be found by id

apologies for the n00b question, but I have a VBScript that I generated with SAP GUI. This script works just fine. I modified the same script by adding lines (basically just copy/paste and modify field numbers) and I am getting an the error which…
Steve B
  • 1
  • 1
  • 4
-3
votes
1 answer

SAP crashes when using debugging mode of VBA

I have a problem since last week, when I go through a VBA macro that launch SAP GUI commands with the debugger of visual basic (F8) it crashes my SAP session after 5 or 6 commands. It's driving me crazy because it worked fine until last week.. I…
babozo
  • 71
  • 9
-3
votes
1 answer

How to use SAP GUI with win32com.client (Python)? Is there any possibility to listen to SAP GUI events?

Now I'm developing a listener tool with python and now I'm a bit confused with SAP GUI. It was easy to make an event listener for Excel with win32com.client.WithEvents(). So the same I can use to SAP GUI but I'm in need of list or examples of…
-3
votes
1 answer

SAP Error handling using SAP GUI scripting and VBA

I am trying to automate some of my SAP tasks using VBA. In case of SAP error, I want my VBA to show error as shown in error bar (in SAP). If case of no error, proceed with Scripting code and end with message box "Process completed". Please check my…
ritu raj
  • 1
  • 1
-3
votes
1 answer

I want to schedule a batch file without Windows Task Scheduler

I have to login into SAP BW application via SAP GUI but at specific times and I want that to happen without Windows Task Scheduler. If it's possible to code something within the bat file, then please suggest something. Open to other suggestions as…
-3
votes
1 answer

Check if xls-file in SAP

I have to export automatically several xls-files out of the SAP to create the specific reports. So far I used the SAP GUI Scripting to enter the transaction code and the DIR-Number (which is unique for each document). This works perfectly when I…
F. Michal
  • 19
  • 2
  • 10
-3
votes
1 answer

How obtain a line from a text file based in the id of the line?

I have a host name which I read from saplogon.ini file. Now, I load this file into an array say $lines. When I read the host name by $hostname = $lines[10]; I cannot log in but if I hard code value as $line = "host name"; and then assign it to…
Adarsh
  • 11
  • 4
-10
votes
1 answer

SAP GUI table how to indicate field ID with row from variable

My code is almost perfect, I need to change one line but in not sure how. My line is as follows Session.FindById("wnd[0]/usr/tblZVMGO_SO_RDD_FDF_UPDTETABCON/ctxtVBAK-VBELN[0,0]").Text = Fill(LoopNum) My problem is I need it to be…
1 2 3
47
48