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

SAP .selectItem In VBA

I am trying to extract data from a selection results pan in SAP. When I use the script recorder I am given this statement. session.findById("wnd[0]/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell/shellcont[1]/shell[1]").selectItem " …
Jordan
  • 363
  • 4
  • 23
0
votes
1 answer

SAP GUI Scripting - Create PDF from print screen in pywin32

I am trying to script a SAP GUI process which looks at a custom report. The report can be "printed" and then saved as a PDF. However, once you specify "LOCL" as the output device and select the check box it goes to a print screen that isn't included…
rgh_dsa
  • 107
  • 8
0
votes
1 answer

How should be the request import logic between system?

I'm changing a report source code in DEV system and transporting request to QA system to test the report. Assume that I have many requests include only one object that I've transported from DEV to QA for testing the report after making changes in…
Mtok
  • 1,600
  • 11
  • 36
  • 62
0
votes
1 answer

My code cannot set a new session when a window appears

I have just started programming and am aware of my poor programming skills. Please provide some critique on which parts of my code I should have done better. I apologize for unclear explanation in my first post. I added some edits to clarify the…
OAltyn
  • 21
  • 8
0
votes
0 answers

Failed to install native resource : Linux-lib.jar - SAP client installatiion

I am trying to install SAP client for linux (Ubuntu 18.04). I downloaded and updated the right prerequisites, and then ran the command: java -jar PlatinGUI740_7-20012037.JAR (tried also with version PlatinGUI750_0-80002494.JAR) The installation…
Nadav Miran
  • 59
  • 1
  • 5
0
votes
1 answer

Extracting .currentCellRow fields from SAP to Excel

I have been using vba with SAP for a while now and have never run into this particular issue. Usually, when script recording in SAP, I click on a field and am left with some string of code with a .setfocus as the end. I replace this with .text in…
Jordan
  • 363
  • 4
  • 23
0
votes
1 answer

Error The control could not be found by id

I just started learning SAP GUI Scripting and cannot figure out why my macro is not recorded properly. I tried to record all the steps for a transaction at once. But every time I do it, a script contains only the part up until the line where a…
OAltyn
  • 21
  • 8
0
votes
2 answers

Can't run SSIS package as a SQL server agent job ( because of SAP GRIDVIEW element)

I made an SSIS package with a script task that scrapes SAP GUI for data and saves it. It uses the sapfewse.ocx reference. The task runs perfectly locally but fails when running the package as a job or with dtexec. The error says that one of the SAP…
0
votes
4 answers

Add time delay between every statement of python code

Is there an easy way to execute time delay (like time.sleep(3)) between every statement of Python code without having to explicitly write between every statement? Like in the below Python Script which performs certain action on SAP GUI window.…
spchu
  • 29
  • 7
0
votes
1 answer

Search matching transaction code from browser

If I need a matching transaction code (TCode) for the thing which I want to do in SAP I often google for the matching tcode. Usually I can find a matching tcode quickly, then I enter it in the well known input in the upper left corner of the SAP…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
1 answer

SAP VBS fails to playback recording

I'm automating some reports using visual basic. I've recorded some scripts that worked fine by seem to have stopped working for reasons unknown. I record the following (comments added) and the script fails at a file dialog…
Harvey
  • 329
  • 2
  • 15
0
votes
2 answers

SAP GUI export automatically opens excel

I am trying to write a macro that retrieves data from an ALV grid in SAP GUI. Everything is working fine up until the data exports. When exporting data from ALV grid to an .xlsx file, the file will automatically open after it exports. I need my…
Will H
  • 1
  • 1
  • 1
0
votes
1 answer

SAP GUI scripting inside Java

I am following the example below to work on sapguiscripting from Java https://blogs.sap.com/2012/11/01/how-to-use-sap-gui-scripting-inside-java/. Obj = new ActiveXComponent(Session.invoke("FindById", …
GrailsLearner
  • 485
  • 1
  • 11
  • 23
0
votes
1 answer

How can I make sure Excel reads the data and put them in SAP GUI?

Hi I am working on a code and I can't seem to figure out how to make Excel read the data to post in SAP GUI. For example I want to put in a document number in SAP ERP transaction code FB02 and let Excel work from the first data cell to the last. But…
Joshua44
  • 9
  • 2
0
votes
1 answer

Sap HANA Studio change SAP GUI resolution

I can't change the SAP GUI resolution, can't find the option. I've changed the font size scaling factor to the minimum that is 80%, under Window->Preferences->SAP GUI Integration, but the result was pretty much the same: The menu and icons are too…
Usr
  • 2,628
  • 10
  • 51
  • 91