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

Issue ingesting RAW datatype column using PyRFC

I'm running into an issue dealing with RAW datatype column when pulling data from SAP using PyRFC. Below is the screenshot of the metadata and how the data looks in SAP GUI. Below is the snippet of the code I'm running to pull this column. with…
P Raju
  • 329
  • 2
  • 14
2
votes
2 answers

closing an Excel file using Python if file is already open

Hi I am new to Python scripting, I wrote a code for SAP GUI automation but at last excel file open so I want to close that file. I need a help regarding code to check if specific Excel file is already open, if open then closing the same using…
Suhan Dev
  • 23
  • 1
  • 1
  • 4
2
votes
1 answer

How to read row details of a GuiTree control using GUI Script

I need to read a specific column value of the last row of the below Variant table in SAP GUI. When I record the script to navigate through the rows of the table, I get below lines. I need to extract specific cell value. Manually, I can copy and…
udani
  • 1,243
  • 2
  • 11
  • 33
2
votes
3 answers

class 'pywintypes.com_error' for running a SAP transaction

I am trying to use a script in Python (Spyder) to open SAP and run a transaction. to acheive this goal I recorded SAP vbscript and with couple of tweaks for Python usage it works fine until it gets to the middle of SAP script and it triggers the…
bestmbaman
  • 23
  • 2
  • 7
2
votes
1 answer

Is it possible to loop through sapgui array using a for next loop in excel vba?

I would like to loop through and read back the text boxes of each element in SAP GUI table/array: dim Rtned_Desc as…
tubser99
  • 29
  • 1
2
votes
2 answers

Display Custom Icon in SAP GUI

is it possible to create a custom icon and display it in SAP GUI classic dynpro? I would need to display it in the toolbar of my application - if possible.
Sasku
  • 517
  • 7
  • 23
2
votes
2 answers

Disable automatically-generated comments in classes (backend editor)

Currently, I am "forced" to develop my reports with SE80 / SE24, etc. and I can't use eclipse. There I've seen that if you have the "Source Code-Based" view in Z-Classes, above every method the signature is shown as a comment. See in the following…
Sasku
  • 517
  • 7
  • 23
2
votes
1 answer

SAP GUI scripting - Button press fails

I am using a macro in an Excel file that runs the SAP GUI. There is a step where, when I click a button in SAP there will be another window that pops up. For that I have written a code like…
Peak
  • 21
  • 1
  • 5
2
votes
1 answer

Save SM37 rows with sorting via GUI Script?

The following SAP GUI Script for SAP 740 saves the SM37 list to a text file. Before saving the list, I'd like to sort the list by Start date and Start time. I can display the popup to select Sort fields. On left side there is a table control with…
Z Drive
  • 23
  • 4
2
votes
2 answers

Not able to bypass Run time error 619 in SAP GUI connection

I have a macro to download certain SAP GUI reports to Excel. My issue is that if I run the macro more than once in the same SAP GUI session (first time it works fine), I get this error which I am not able to bypass: Run-time error 619 For some…
Siso
  • 89
  • 2
  • 7
2
votes
1 answer

ALV grid only loads first 64 rows, how to change default load

Situation I have created a lookup functionality for SAP GUI scripting. If a grid row has specific values in specific columns, then it is double clicked (this triggers loading specific dependent data). My grid has less than 300 rows, so loading so…
user3819867
  • 1,114
  • 1
  • 8
  • 18
2
votes
2 answers

ABAP do something on program exit

in my ABAP program I'm updating field X in table tab1 at the beginning and in the last step if everything goes OK, I'm reversing this update. It's important that during execution of program the field X has correct value. However when I exit the…
user3463645
  • 126
  • 1
  • 10
2
votes
1 answer

VB-Script sleeps after calling VBA-Script

since a few years I'm working with some scripts which are creating a report in SAP, saving the data into an Excel-File and processing these data with an VBA-Script in Excel. Since a few days it doesn't work properly any more. Sometimes it works…
2
votes
2 answers

"connection.Children(0)" triggers "The enumerator of the collection cannot find en element with the specified index."

I am using a VBScript to login automatically into SAP GUI. It opens automatically the SAP GUI window, it loads the SAP server, but it doesn't populate automatically the user and password fields (remain blank). It also gives a script error on line…
Malbordio
  • 92
  • 3
  • 4
  • 20
2
votes
4 answers

Method 'Text' of object 'ISapCTextField' failed

I have to pull data from SAP. This error happens randomly: Method 'Text' of object 'ISapCTextField' failed I searched but none of the solutions work. Error handling by trying multiple times also didn't work. Instead of trying more methods, I…
Jacob Tang
  • 21
  • 1
  • 3