Questions tagged [sap-gui]
Questions about SAP GUI, SAP GUI Scripting, using SAP GUI (Calling transactions, setting up in the environment, customizing, etc.)
sap-gui
750
questions
-1
votes
0
answers
28
views
How to capture the status bar error message [duplicate]
I am unable to capture the status bar error message, if we enter any incorrect data then status bar will appear the error message this error message I wanted to copy.
I am using this VBA code which ...
0
votes
0
answers
33
views
win32com.client.GetObject('SAPGUI') error while connecting to SAP in flask
path = r"C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe"
subprocess.Popen(path)
time.sleep(5)
SapGuiAuto = win32com.client.GetObject('SAPGUI')
...
0
votes
1
answer
50
views
Find out which field in SAP has focus / is the active field with VBA (Excel)
I write scripts in VBA to change data via SAP GUI. I can easily set focus to a defined field in SAP GUI (e.g. Session.FindById("wnd[0]/usr/ctxt[2]").SetFocus). But how can I find out what ...
0
votes
2
answers
61
views
Sent each SAP command to another sub and execute it for error handling
When a command is sent to SAP GUI like SAPsession.FindById("wnd[0]").resizeWorkingPane(170, 25, False) and an error occurs I'd like to log the error and let the script continue after user ...
0
votes
0
answers
14
views
SAP Scripting copy feedback message [duplicate]
Is it possible to copy message that usually pop up after we save a process or after checking something?
Usually, it was placed on the bottom of the windows.
I need to copy the message to Excel, I ...
0
votes
0
answers
45
views
Python and SAP GUI Scripting Error : pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
I'm trying to write a automation script that does task on SAP. For this I'm using Python and win32com package, I'm getting the following error when I try to connect to SAP.
Traceback (most recent call ...
0
votes
0
answers
24
views
Does SAP GUI scripting with python3 require you to release the connection or is it handled by the garbage collection?
This Post is mainly about scripting in Python but also VBA input is welcome
Both in the SAP script recording and in forum posts (e.g. by Stefan Schnell), the objects used for the connection are ...
0
votes
1
answer
98
views
Why does my VBA Script fail to export the excel file from SAP?
I have an Excel Macro / VBA script which exports a table from SAP as Excel file. It then activates this new Excel file. Here is an excerpt from my code:
session.findById("wnd[0]/usr/cntlGRID1/...
-1
votes
1
answer
71
views
SAP GUI VBA "Application.DisplayAlerts = False"
I'm new to SAP GUI scripting. But I like the idea that I can automate tasks in SAP GUI using VBA.
Unfortunately, I am now encountering a problem that I cannot solve. I would like to save a list from ...
0
votes
0
answers
153
views
How to get text of an element SAP GUI scripting
Im starting with SAP scripting, I need to get text of an element that script recording captured as: session.findById("wnd[0]/usr/cntlSINWP_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[0]...
0
votes
0
answers
122
views
Windows Task Scheduler not working with 'Run whether user is logged on or not'
Context
At my workplace, there is a webserver which uses task scheduler. In the morning, three scripts run which pull data from SAPGUI & SQL and uploads it into an Excel sheet. Once the task ...
-1
votes
1
answer
144
views
SAP Excel extract files which open up after macro ran through the code
My problem is that the exported Excel files open after the macro is finished. I couldn't solve the problem with the other articles. Has anybody an idea?
I tried multiple prompts to close the files but ...
-1
votes
1
answer
47
views
Excel VBA not copying over strings
I am running some simple, easy-to-automate transactions in SAP using an Excel macro to drive it. It's pretty much just copying a sales order number from a very long list into a specific field, ...
0
votes
0
answers
31
views
How can I select a blank field at SAP using vscode and Python?
How can I select a field in this SAP GUI screen? Like the one in red, next to Sales Organization.
I tried using some pyautogui code but it didn't work, such as pyautogui.click().
Also, how can I run ...
0
votes
0
answers
35
views
Why GetCellValue of GuiGridView isn't getting the value? [duplicate]
Working on a .vbs automation for SAP and I'm having some issues using a While statement loop. I am attempting to count the amount of specific instances that a certain string occurs in a column.
...
...