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

SAP GUI Scripting Records Differently Between PCs

last week I asked a question about having issues running macros with SAP GUI scripts contained within on other people's PCs. I have gotten some updated information that I believe changes the question fundamentally so I will repost. I made a macro…
Jordan
  • 363
  • 4
  • 23
2
votes
2 answers

C# SAP GUI 7.4 Scripting existing Application/Connection/Session

I am trying to write a C# program that will automate a user's input into the SAP GUI (currently on version 7400.3.11.3364) using SAP GUI Scripting API. I've done similar things in the past using VBA, but I'm struggling to get it working exactly how…
Kyle
  • 29
  • 1
  • 7
2
votes
1 answer

AppStartError: CreateProcess: The system cannot find the file specified

Using pywinauto to automate a SAP extract. I swear this code -- copied right out of SWAPY -- worked yesterday. from pywinauto.application import Application app = Application().Start(cmd_line = u"C:\\'Program Files…
Harvey
  • 329
  • 2
  • 15
2
votes
1 answer

How do I enable SAP GUI scripting on my Cloud Appliance Library Instance?

I am a DevOps noob so please bear with me, and I would really appreciate it if you could provide step by step instructions. I am trying to enable SAP GUI Scripting on my Cloud Appliance Library SAP instance that is running NetWeaver 7.5 hosted on…
2
votes
1 answer

Sendkeys in remote minimized machine VBS

I´m having problems with doing Shift + Enter in an object of SAP application. This is the code I have: If Dialog("SAP Logon 730").WinListView("SysListView32").Exist(100) Then Dialog("SAP Logon 730").Activate Dialog("SAP Logon…
2
votes
0 answers

Can't call script more than once

I need to update several Excel workbooks via BEx Analyzer. I have a main script which calls scripts A and B. Script A will fill out the SAP logon window that pops up every time data is refreshed inside the workbook. Script B will enter the required…
2
votes
1 answer

Selenium Python: Cannot find element after javascript runs

I am trying to automatize some SAP Job monitoring with Python. I want to create a script that should do the following: Connect and login the SAP environment -> Open SM37 transaction -> Send job parameters (name-user-from-to) -> Read the output and…
user5713018
2
votes
1 answer

Connect SAP on Citrix through Excel VBA

I have no direct SAP installed on my machine and using SAP window through below link. https://nedc-ctx.applications.services.axa-tech.intraxa/Citrix/AccessPlatform/auth/loggedout.aspx I am aware of Record and Run function of SAP GUI and that is…
user7383845
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

Excel VBA with SAP GUI 7.40 - SAP.Functions not working

I have a Excel VBA which connects to SAP GUI, pulls some data and does some processing on it. It was working fine with SAP GUI 7.20 But it stopped working when I installed SAP GUI 7.40. My code is as below : Dim obBAPICall As Object Set obBAPICall…
Sukhi
  • 13,261
  • 7
  • 36
  • 53
2
votes
0 answers

VBA code rushing on debug mode while interacting with SAP GUI

I'm having some issues with my code that I wasn't able to find anywhere. Issue: While debugging my code, running it line by line with F8 in Excel, at some specific points Excel does not wait for the application with which it's interacting to finish…
Tocchetto
  • 166
  • 1
  • 12
2
votes
0 answers

Automatic export from SAP GUI (no direct access to Database)

I'm looking for making automatic exports (extractions) from SAP. But there is some restraints : It's impossible to work with the SAP Support team on this subject I don't have direct access to SAP Database (Just a login/password for the SAP Gui) I…
Sarah Taylor
  • 443
  • 1
  • 5
  • 9
2
votes
4 answers

SAP GUI script opens an Excel window and I can't stop it

I'm trying to automate SAP GUI export to an Excel file, which in turn is then used by another Excel file with some VBA code to automate filtering and formatting the data. I've got it all running, except for one (seemingly minor) problem: SAP GUI…
C. Dan
  • 21
  • 1
  • 1
  • 4
2
votes
3 answers

Handling error in SAP GUI by using SAP GUI Scripting

I m using SAP GUI Scripting code for bulk record submission through SAP form. It picks records one by one from Excel file and submits in SAP system. My Question: I want to include error handling into it. So that if any error occurs at any particular…
Arka Ghosh
  • 21
  • 1
  • 1
  • 2
2
votes
0 answers

Checking if an identifier exists

In our Silk4J test environment, we use a naming convention in order to conveniently get access to windows. E.g. I can do SapWindow pt61 = sap.performTransaction("PT61"); to perform the PT61 transaction in SAP and it'll return a window that has the…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
2
votes
1 answer

getNodeText() does not return text for object manager search tree

I see the following search tree in SAP GUI: I'm trying to verify the contents of that tree, mainly I want to get the text that is displayed for the nodes. I'm using getNodeText() [MicroFocus] to get the text of the node, but it returns an empty…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222