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

Check if row in a SAP GUI GridView is selected

I have a GridView in SAP GUI and want to check if a line is already selected or not. The following code checks if the grid contains data. But I struggle with the check if a specific row is selected: Set objGRID1 =…
-1
votes
1 answer

copying data from sap to excel

Sub invoicenumber1() Dim SAPGUIAuto As Object ' Dim SAPApplication As Object ' Dim Connection As Object ' Dim session As Object Set…
-1
votes
1 answer

Can SAP GUI Scripting Engine output macros in Javascript instead of Visual Basic?

I am looking to automate a simple fetch from SAP GUI for Windows to Microsoft Excel. SAP GUI has a neat macro recorder and I've noticed that when assigning the file path, it gives to option to record or playback either .vbs or .js files. When I…
OPB
  • 11
  • 2
-1
votes
2 answers

Script SAP from an excel list

I am trying to make an automated report from a list in an Excel sheet. I have to place several codes in the FBL3N transaction but in a dynamic way. That is, the list can increase or decrease and the macro has to place the codes that exist in column…
-1
votes
1 answer

CSADMIN has the create/change function disabled

I have recently installed the SAP ABAP 7.51 trial system to try to configure the content repository. However when I am accessing the newly installed system using SAP GUI using SAP* (or DEVELOPER) user account and open CSADMIN or OAC0 transactions…
-1
votes
1 answer

How to use exported data as input in SAP with VBA

I am writing a VBA script to check all measuring point, who are part of the selection have inspection orders. For this I need to extract a large amount of measering point (ca. 2721) and use them as an input in another transaction. The problem I have…
-1
votes
1 answer

# in Material Description for some materials which is causing alignment issue in SAP ABAP

How to take out # from Material Description ? and anyone know why # exists in some materials.
-1
votes
2 answers

Saving an extracted value in a specific parameter file(data table) and using that file as an input for SAP GUI Loadrunner script

I am working on SAP GUI scripting in Loadrunner. I have one script in an Action which generates a "Delivery Number" Eg:80004600 in the script. I am able to successfully extract the value of the delivery number 80004600 in a variable called…
Angshuman Basak
  • 251
  • 1
  • 3
  • 15
-1
votes
2 answers

How to create a txt-file on the application server filled with an internal table?

I'm learning ABAP at the moment and got the task to build a function that creates a .txt file or a .csv file from an internal table and save it on the application server. I know you can use, for example, GUI_DOWNLOAD for that, but the task is to…
Marrome
  • 1
  • 1
  • 4
-1
votes
2 answers

Code without label gives Compile error: Label not defined

I'm trying to run a SAP GUI script using a button in Excel, I have the script created in a way that it takes info from Excel to use in SAP, that script works great, if I open it, it runs smoothly but I can't manage to add that script to Excel…
-1
votes
1 answer

SAP status message error captured to automatically close

I am new SAP GUI scripting. I have a question regarding to how to stop SAP GUI script running if there's any status messages captured. I recently create SAP GUI script recording and Excel macro for automation, so far, everything works very well if…
sephiroth
  • 43
  • 7
-1
votes
1 answer

SAP - Error 800A026B - The control could not be found by id

I´m dealing with the problem regarding SAP GUI automation. I have a script shown below which is working without any problem BUT it is working only in the first window of the SAP. When I have something open in the first window of the SAP and for…
Michal
  • 11
  • 3
-1
votes
2 answers

Troubleshooting connection Excel VBA to SAP

I am trying to connect to an SAP GUI via Excel VBA in order to automate many of the data extractions from SAP. I have seen similar questions relating to connection errors at different locations of the connection process, however I have not come…
KVSEA
  • 109
  • 8
-1
votes
1 answer

Pyinstaller exe error "win32com\client\dynamic.py", line 543, in __getattr__ pywintypes.com_error: (-2147221168, 'Could not read key from registry'

I have converted the .py to .exe file using pyinstaller to distribute to my users Hence my users do not have Python installed. I used win32com to open excel & run macro in excel which will also open SAP In my laptop I have no issue but when my user…
-1
votes
1 answer

Login SAP, with Powershell using SAP Connector for Microsoft .NET

I try to login into a SAP system using the interface SAP Connector for Microsoft .NET. It worked for me to login with another method, without SAP Connector, with sapshcut, code below: #-Start the SAP GUI----------------------------------------- …
du7ri
  • 67
  • 1
  • 10