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

In SAP Logon, how to choose SAP system by VBA

I've dug the whole Internet but haven't found something similar. I am writing the VBA program which extract data from SAP software to Excel and everything goes well. I want automate the whole process and opening a SAP Logon by VBA that's not a…
3
votes
2 answers

VBA SAP GUI recreate session after timeout

Maybe someone can help me with creating new SAP GUI session using VBA Excel. Some code to understand the problem: If Not IsObject(sap) Then Set SapGuiAuto = GetObject("SAPGUI") Set sap = SapGuiAuto.GetScriptingEngine End If If Not…
Sphinx
  • 628
  • 7
  • 15
3
votes
1 answer

How to make VBA script automate a "Save As" window

I am writing a VBA code that will save a PDF file by automating screen of SAP software. I've reached the place where SAP asks me where I would like to save my PDF file (it opens a Windows explorer "save as" window). At this point, VBA code stops and…
OGERWOLF
  • 117
  • 4
  • 13
3
votes
1 answer

SAP GUI Scripting "Invalid use of property" Error in VBA

Hello I am using SAP GUI Scripting tool which uses Excel VBA functionality to complete the task. I am getting Invalid use of property at Set Application = SapGuiAuto.GetScriptingEngine line of code: If Not IsObject(Application) Then Set…
user SG
  • 33
  • 1
  • 4
3
votes
1 answer

SAP Shortcut file - How to redirect to specific transaction screen in SAP GUI?

Problem : How to redirect the user to a specific executed transaction screen in SAP GUI? Generated the SAP shortcut and able to redirect the user to specific transaction screen. It is also possible to prefill the required input parameters. The…
Kiru
  • 169
  • 6
  • 13
3
votes
2 answers

Usage of the "SAP Function OCX"

Does it make sense to use the "SAP Function Control" (wdtlog.ocx in connection with wdtlog.ocx and wdtaocx.ocx) to access (via the Interop-Assemblys SAPFunctionsOCX.dll, SAPLogonCtrl.dll and SAPTableFactoryCtrl.dll) to SAP with RFCs instead of the…
Elmex
  • 3,331
  • 7
  • 40
  • 64
3
votes
3 answers

How check if exists the field? SAP GUI Scripting

How check if exists the field? I tried it: If session.findById("wnd[1]").setFocus Then
Nicholas Giudice
  • 363
  • 1
  • 3
  • 7
3
votes
1 answer

Automating export of fs10n query from SAP using VBA

Currently the manual process exists where users access SAP and select query FS10N to produce a report. This report is then exported from SAP to .XLS format and saved to user's hard drive. I would like to automate this process with an Excel macro. So…
2
votes
1 answer

pywin32 alternative in C# for SAP GUI automation?

I have got Python and Visual Basic working. I am struggling to find a working solution for C# although I understand that it should be available and relatively similar to Visual Basic, right? I don't have SAP GUI DLL's on my development machine, so I…
10101
  • 2,232
  • 3
  • 26
  • 66
2
votes
1 answer

Open the quotation of a supplier in ME49?

I want to open quotation of a supplier with number "175315" in ME49 transaction, by positioning the cursor on its number (in row 3) and by double-clicking or pressing the F2 key on keyboard. When I check technical info of "175315" or "138992", it…
Bhushan
  • 23
  • 4
2
votes
1 answer

Running a script from the SAP Easy Access screen

I found the following code in Stack Overflow and used it, and I was able to bring up SAP GUI. However, the issue is that it just gets stuck on the SAP Logon 740 Screen which is not correct because I am already logged into SAP GUI before running the…
2
votes
0 answers

Java Automatization COM

I'm planning to automatize a couple SAP t-codes with java for one of my project. Actually I'm able to open word like this : import com.jacob.activeX.ActiveXComponent; import com.jacob.com.LibraryLoader; import com.jacob.com.Variant; import…
Fpasquer
  • 381
  • 3
  • 15
2
votes
0 answers

Make table control align to display width?

I can't figure out how to make my transactions fill the full width of my monitor, the width appears to be fixed, and I've got a horizontal scroll bar. The screenshot below is from transaction ME21N, in S/4HANA, running on SAP GUI client 770, to…
TinkerDink
  • 23
  • 4
2
votes
1 answer

Reading text in Table Control

I have a problem with SAP VA02 where I want to identify the row line in which a specific label is. In this case the label/text is "Cust. expected price". I am trying to change the data next to this row, problem is that it is not always the same row,…
dankimir
  • 21
  • 2
2
votes
0 answers

ListObjects Autofilter will works properly in debug mode only

Story: Have 1 macro as main, which runs 4 others in defined order. each of them works properly when I run them separatedly. Problem I am facing is Listobjects.autofilter - which gave me as a result zero lines, but in debug mode I can see correct…
1 2
3
47 48