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
0
votes
1 answer

How to identify which SAP GUI screen is currently displayed?

Currently running into an error problem: when migrating orders in SAP GUI through VBA, it might be that an order needs reconfirmation. However, this is not always the case. I've already build in an error loop in the beginning of the code, so I don't…
Thijsk
  • 103
  • 1
  • 3
  • 15
0
votes
0 answers

'Cannot find file error' from SAP VBScript

I'm running a script that extracts from SAP a number of N archives(based on a input file that contains the name of each file). The scripts reads the data for each file from a input txt file and writes the status after each run to an Excel…
Julanu
  • 162
  • 2
  • 5
  • 15
0
votes
1 answer

SAP GUI Script Runs Slower Over Time VBA

When I run a SAP GUI script in VBA (excel) over a long period of time, the SAP GUI session starts to slow down. If I interrupt the code and start it again, the SAP GUI session still runs at the slow speed it was at. If I close Excel and run the code…
Jarron
  • 1,049
  • 2
  • 13
  • 29
0
votes
1 answer

How can I know the table ID in SAP GUI

I am using VBA to read data from SAP GUI. Now I can open the destination page of SAP Logon, but cannot read data because I don't know table ID. Set Table =…
Roselu
  • 3
  • 2
0
votes
1 answer

Excel to SAP GUI

Private Sub CommandButton1_Click() On Error GoTo Err_NoSAP If Not IsObject(SAPGuiApp) Then Set SapGuiAuto = GetObject("SAPGUI") Set SAPGuiApp = SapGuiAuto.GetScriptingEngine End If If Not IsObject(Connection) Then …
Mwes
  • 23
  • 4
0
votes
1 answer

Detecting a SAP generated Message Box automatically click on the default button

I am writing a VBScript in VB.Net to automate some operation in SAP GUI. The script is recorded from SAP. All I need to do is to put this script under a button click event on vb.net. I have done this far but get stuck at one point. While doing the…
vpv
  • 920
  • 2
  • 20
  • 46
0
votes
1 answer

How to run IW29 with a specific variation and layout and copy its outcome to excel?

I'm trying to copy the result I get from running IW29 transaction code with a specific variation and layout to excel. I recorded a script within SAP to run IW29 with the variation and layout I wanted and it goes like below posted code. What do I…
0
votes
0 answers

SAP GUI automation in macOS

I am trying to do SAP GUI scripting on macOS but I struggle to find up to date ressources / tutorials to help me. I found that user guide but it seems that Apple Script does not support SAP GUI anymore : there is no dictionary available and the…
Audeo
  • 87
  • 2
  • 7
0
votes
1 answer

How to test for long text window? IW31

I have recorded a script for automation for ordering parts (IW31). It works very well, however, when I passed it to another person, it failed. What I found was that he keeps his long text window collapsed, while I keep mine open. (I would have…
Tinbendr
  • 104
  • 4
0
votes
1 answer

WSAECONNRESET: Connection reset by peer Netweaver

I have a question. I'm doing a tutorial:https://www.youtube.com/watch?v=i_YiSdk0jXA&t=813s I can not connect through SAPGUI 750 to the machine. I still have the error "connection to partner '127.0.0.1' broken WSAECONNRESET: Connection reset by peer…
0
votes
1 answer

Copy to clipboard in SAP using UiPath

I am using UiPath to open SAP GUI transaction and create txt file. Robot will open transaction, set filters and copy desired column to clipboard to use it in another transaction. Problem is I need to apply filter and then copy the column to…
0
votes
1 answer

Dynamically passing a row number to Session.findbyid method

I am trying to write a script which posts invoices in SAP through Excel (fairly new to this), and am running into the following error: The control could not be found by id The error is coming up at the below…
Veena
  • 1
0
votes
0 answers

Loop skips last row when sequentially opening and closing Excel to import data to SAP GUI

I'm trying to automate some monthly manual sales orders in SAP GUI. What it does is opening 2 Excel-workbooks and import sales info to SAP GUI (SAP ERP transaction va01). The script works as follows: Open help-file, fetches address to Excel-files…
Folker
  • 1
  • 1
0
votes
1 answer

SAP Adobe Livecycle Designer PDF import crash

I am trying to import a PDF into SAP Logon using Adobe Livecycle Designer. Every time I try it, my SAP Logon freezes and I have to login again. There is no error message or anything that could give a clue. I made the PDF super simple, with only a…
0
votes
1 answer

Macro code is not waiting until file load from SAP

I am trying to get export from SAP. Once export done, i need to close the export file.I have written below code to execute the same thing, but my problem is that code is not waiting until file gets load and it is skipping the export file close.…
RK144
  • 47
  • 10