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

Number of filled rows in a SapTable

I'm using Silk4J and I have a table which is reported as SapTable in the Locator Spy. From that table, I'm trying to get all the texts of the second column, but it hangs or terminates with an exception. In the following you find the code for my…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
2
votes
1 answer

How to stop SAP GUI scripting?

I successfully managed to connect to an EXISTING instance of SAP GUI with the help of a code example found on Stack Overflow. However, I am at a loss as to how to disengage from SAP GUI and stop scripting. After my code has finished, in the SAP GUI…
Esby
  • 105
  • 1
  • 15
2
votes
1 answer

SAP window hidden while obtaining data

I am writing a script / program to log into SAP GUI then just grab a few bits of data from a employee then close SAP. This I can do already but am trying to make a fancy GUI just for that instead of clicking many windows in SAP GUI to get…
Pavle Stojanovic
  • 525
  • 2
  • 8
  • 30
2
votes
5 answers

Automated testing with SAP

I'm looking for help on a couple of things. 1.) Does anyone have any advice/recommendations on automated testing solutions for SAP? 2.) Does hp's Unified Functional Test (UFT) have a framework that integrates with SAP? I appreciate the help, and…
user3802966
  • 57
  • 1
  • 1
  • 3
2
votes
2 answers

Pulling data from SAP using Excel Macros

So I am trying to pull data from SAP GUI using Excel macros. I am new to VBA so please bear with me. I found a topic on here called VBA pulling data from SAP GUI for dummies and I am confused. What I am trying to do is as follows: Copy a…
adastra
  • 47
  • 1
  • 1
  • 9
2
votes
1 answer

Return type in findById method, control could not be found by id

I'm writing a VBA script that read some values from SAP GUI (transaction code ME23N). I'm using findById method to read some values but I don't know if the object exists or not. Session.findById("wnd[0]/usr/sub/.......).Text I'd like to know what…
Roberto Milani
  • 760
  • 4
  • 20
  • 40
1
vote
0 answers

How to establish Connection with Existing SAP GUI: SAP Logon 730 window

I am new towards learning and Scripting SAP GUI, I am in desperate help towards automating the SAP GUI window in C# with the Targeted Framework .NET Core 3.1, I had tried installing the "SAP.GUI.Scripting.net" via NuGet Package Manager. But,…
Kanthi87
  • 83
  • 1
  • 1
  • 6
1
vote
0 answers

Connection from Google Apps Script to SAP Business Client?

I have absolutely no experience in Apps script. But despite it, I want to create a function to call a SAP Transaction in google sheets. I want to mark a cell with a number in it (document number) And then a picture, which activates a function:…
1
vote
0 answers

Excel VBA / SAP GUI: how to get Value from Cell in SAP to Excel. "Node?"

I have created an Excel VBA Macro to connect to SAP GUI, pull data, etc. Nearly everything works, but I have one problem. I am using the Transaction CV04N to download some documents from it. My code pastes all required Document names (or numbers)…
Piperjoe
  • 11
  • 3
1
vote
1 answer

Working example for RFC_CALL_TRANSACTION_USING to print to spool using VBA

I'm trying to use RFC_CALL_TRANSACTION_USING to get the SAP ERP software run the transaction code FTE_BSM and print the result of the report to spool. The transaction I am trying to use is FTE_BSM, but in the end I want to be able to use it with any…
Tyro
  • 45
  • 1
  • 8
1
vote
1 answer

Check if SAP Login Successfully

Through my VBA code I logon to SAP. I am trying to check if the login was successful using the following line of code: session.findbyId("wnd[0]/sbar").MessageType = "S" but it keeps printing false although I did successfully login. Any help will be…
ForestProgramming
  • 83
  • 1
  • 1
  • 10
1
vote
1 answer

Read RZ11 parameter sapgui/user_scripting

I am trying to use SAP GUI Scripting to read "current value" set for parameter "sapgui/user_scripting" via t-code RZ11. I can connect to SAP instance, login and execute RZ11 with my script. But I can't read the current value set for…
alex devassy
  • 437
  • 5
  • 17
1
vote
0 answers

Excel SAP GUI - Automation Error Invalid Syntax

I logged into my SAP GUI and recorded a basic process to test using SAP GUI script recording option. After that I went to excel and wrote the following code. When I run it, I get the error : Run-time error'-2147221020(800401e4): Automation error…
1
vote
0 answers

Can we set the resolution of the desktop when we disconnect from remote desktop?

I am running SAP GUI script automation on a Windows VM. When I am disconnecting from the remote desktop, I am running below command on a batch file, to disconnect and keep a virtual session of the current user. for /f "skip=1 tokens=3" %%s in…
udani
  • 1,243
  • 2
  • 11
  • 33
1
vote
1 answer

How can I select an SAP GuiGridView row via Python scripting

I am trying to use Python for SAP Scripting, specifically to select a row in a GuiGridView object. It works just fine in VB Script, but in Python I get an exception: -2147352562, 'Invalid number of parameters.', which doesn't make sense to me since…
Auto
  • 21
  • 4