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

How to read all data from SAP GUI window with VBA

I'm trying to automate T-Code-VA03. I enter the PO number in PO number text box and press F8. This prompts a window which contains multiple rows of labels. My requirement is, I want to select the one with latest date. I tried to record the script…
Ashok
  • 1,868
  • 6
  • 36
  • 70
0
votes
0 answers

Any way to remove warning message in Ranorex report "This control (from process 'saplogon') seems to be a Windows Forms control..."

I'm using Ranorex 6.2 (Ranorex is Automated Software Testing Tool using C# as program language) and every time, my automation test report will have below warning. This control (from process 'saplogon') seems to be a Windows Forms control, but was…
Fang Dong
  • 33
  • 1
  • 7
0
votes
1 answer

Copying data from python list to clipboard

I am beating my head against a wall. I have a python script that calls an SAP GUI script through a shell command. That part works great, once the returns.xlsx is generated, I use openpyxl to create a list from the values in column A. From there I…
mickNeill
  • 346
  • 5
  • 22
0
votes
2 answers

GuiXT get data from SAP report

I have a recorded GuiXT script, When I run it, it produces a report of returned material on the desktop as "returns.XLSX". I have another script that I can run if the data from column A (returns.XLSX) is on the clipboard but that is a manual…
mickNeill
  • 346
  • 5
  • 22
0
votes
1 answer

VBA SAP occasional error Control ID Not Found

In the below code I am extracting data from SAP. In a few SAP reports I am running, occasionally data is not available, in which a pop up box appears, displaying No Data Exists For Chosen Selection I've implemented the below error handling…
Reed
  • 11
  • 2
  • 4
0
votes
1 answer

Extending a Spreadsheet with SAP Netweaver Recording and Playback

My question is regarding the "SAP GUI Script Recording and Playback" in SAP NetWeaver. The screenshot shows the three options for saving a file with the "SAP Script Recording and Playback". One of the options is to "Extend", but when I test it, the…
0
votes
1 answer

Pressing SAP.GuiLable

Is it possible to press a SAPFEWSELib.GuiLable using the SAP Gui API? The class does not have a method like Press() available for GuiButtons. It's also not possible to do it like this: SAPFEWSELib.GuiLable Lbl = GetLable(); (Lbl as…
Jan021981
  • 521
  • 3
  • 28
0
votes
1 answer

SAP GUI Client integration with classic ASP ActiveX component can't create object

We have a classic ASP site that is hosted on windows server 2003 (32 bit). It has an early version of SAP GUI client installed and from within the asp pages we hook into SAP R4 with a standard call to Set Myobj = CreateObject("SAP.Functions"), this…
bilpor
  • 3,467
  • 6
  • 32
  • 77
0
votes
1 answer

VBA Excel cell to SAP GUI error "at 207 ')' expected"

I am struggling to get the right information from an Excel sheet via VBA script into SAP. A single cell works fine and will go into SAP GUI screen but the original Excel sheet contains a cell where the last 4 digits need to be deleted and afterwards…
0
votes
1 answer

SAP GUI Macro doesnt work when I had more than one session open at the same time

I had develop a macro which search some information in SAP GUI and copy it in a Excel worksheet, but sadly it only works if I had open ONLY ONE session. Even if I try to create a new session by code (session.createSession), the next steps(the…
user8366198
  • 5
  • 1
  • 4
0
votes
1 answer

Different Script (SAP GUI) Codes for the same process in two different computers

I want to automate some operations for my works so I record a Script on SAP GUI(SAP LOGON PAD 720), then use it to create a excel macro and it works perfectly on my computer, but when I try to run it in other computers, it doesn't work at all and…
user8366198
  • 5
  • 1
  • 4
0
votes
1 answer

How to select a GuiComboBox Entry in SAP

I want to script our sap. Actually, I'm scripting the comboboxes. But I don't know, how to select a specific item. SAPFEWSELib.dll included as refernece public static bool SelectComboBoxItem(string ItemText) { int i = 0, ItInd =…
Jan021981
  • 521
  • 3
  • 28
0
votes
1 answer

How to condition script based on SAP system?

I am doing a task which connects excel with SAP system via SAP GUI. I want to use SUIM transaction but the problem is the view is different for different systems. For eg : In system A, i have this code…
Anirudh Chauhan
  • 111
  • 2
  • 9
0
votes
2 answers

Making a click on SAP Read Only Cell

My test step is failing saying that the sap table cell is a read only cell. I cannot make any click on it. What could be the workaround for this. Any help appreciated. Thanks in advance.
drink-a-Beer
  • 389
  • 1
  • 5
  • 14
0
votes
1 answer

Keeping text formatting while extracting long text from SAP GUI with Excel VBA

I would like to retrieve a text that is displayed in SAP GUI with a macro that extracting it. I already have the macro that does that. It clicks on the button on the right of Line 1 like so: And then it displays the texts like so : It copies it,…
MopMop
  • 119
  • 2
  • 14