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

Retrieve displayed text field in SAP GUI through macro with Excel

I tried to run the SAP GUI script recording to gather a text that is displayed for several item numbers automatically. While I was checking it this is the code I got : If Not IsObject(application) Then Set SapGuiAuto = GetObject("SAPGUI") Set…
MopMop
  • 119
  • 2
  • 14
0
votes
1 answer

unable to identify SAP objects correctly by UFT

I'm having trouble in identifying SAP GUI objects. instead of UFT recording the objects like: SAP("Title"). it records the objects like: Window("Maintain Business Partner").WinEdit("Edit").Set I have performed the necessary troubleshooting…
Peezy
  • 21
  • 1
  • 7
0
votes
1 answer

Error 429 Excel VBA activex CreateObject(“SAP.Functions”)

I just upgraded to Windows 10 and Excel 2016 and now my VBA app doesn't work: set x = CreateObject("SAP.Functions") I get this error: runtime error 429 ActiveX component can’t create object
Tom McDonald
  • 1,532
  • 2
  • 18
  • 37
0
votes
1 answer

Any way for starting a Fiori App via a SAP GUI Transaction?

I'm wondering if I can open a Fiori App (by Transaction Code LPD_CUST) from SAP GUI (via a transaction code). So far I think I can somehow achieve that by building a program which open a web browser to access the app's URL. Are there any better way…
T.NQ
  • 71
  • 1
  • 5
  • 22
0
votes
1 answer

Copying text from popup window

My employer uses SAP to generate purchase order numbers. The PO number is displayed in a popup window. I need to use VBA and SAP GUI Scripting to copy the PO number (or the whole text) so that it can be pasted into Excel. I have tried using the SAP…
0
votes
1 answer

Run multiple script in SAP GUI

Context : I have two open sessions in my SAP GUI with following id : /app/con[0]/ses[0] /app/con[0]/ses[1] I want to run 1 script (vbs) in each session, this is my code : foreach (GuiSession s in _dicSap[tmpDKey].get_lstSapSession()) { if…
Corentin Cl
  • 1
  • 1
  • 3
0
votes
1 answer

SAP GUI ID is changing

I want to do a mass upload of data in SAP GUI, say update the price on 100 PO's. I can write a macro using VB Script and run it through the SAP GUI script recording and playback option, but while doing it the macro gets stuck as the SAP GUI Id gets…
user528185
  • 1
  • 1
  • 2
0
votes
4 answers

How can I change the program header in sap abap?

I want to change the header name of the ABAP program. What can I do or where can I find the option to edit the header?
user7806296
  • 1
  • 2
  • 3
  • 6
0
votes
1 answer

How to extract numeric value instead of text from GuiTableControl?

I use Excel VBA to automate tasks in SAP. Many times when dealing with GuiTableControl​ the numbers and dates are formatted as text, not values. That causes problems when users have different settings (commas and points as decimal separator, for…
Pablo
  • 1
  • 1
0
votes
1 answer

Cannot save GuiXT script from SAP

I cannot save GUIscript from recorder. I am using two systems F6P and Q06, and in F6P I can record a script and save the file, but in Q06 I cannot save a vbs file. I press record and then stop and a file should be created in the destination path,…
Zounds
  • 81
  • 3
  • 12
0
votes
0 answers

Creating method in ABAP OData service

I am currently working on an OData service for a SAP Fiori application. When I try to code the BAPI for inserting notifications into database, it doesn't work & I don't know why. My colleague told me it's because of the missing mandatory parameters…
Anas Najem
  • 27
  • 1
  • 2
  • 15
0
votes
1 answer

How to open Excel spreadsheet called from SAP GUI during Excel VBA Macro

I have a macro that exports production reports from SAP system in XLSX format. The thing is, I need four of these reports for our four production lines (A, B, C & D), but when the macro runs its course only two or three print out (Normally just B,…
0
votes
2 answers

On Error GoTo in loop with 2x next (1x on error, 1x on normal procedure)

Currently trying to build a VBA where data from Excel gets migrated into SAP GUI screens. What I want is the following: If no error occurs, save the order number (generated by SAP system) and fill the cell next to it with "UPDATED", then go to the…
Thijsk
  • 103
  • 1
  • 3
  • 15
0
votes
1 answer

SAP document flow - Reading a value using Sap Gui Scripting

I have a question that I just cant find an answer for anywhere ! I'm trying to get the value of the Shipment number highlighted in red below using SAP GUI scripting and VBA, as the results need to be saved on an excel sheet. There doesn't seem to be…
Nick
  • 3,454
  • 6
  • 33
  • 56
0
votes
1 answer

How can I run a VBScript file silently in the background?

I want to run a VBScript file silently, because it is just a part of a hidden script. I'm using the VBScript to export automatically documents out of SAP, that is working perfectly, unless showing each step in the SAP GUI. The VBScript file is…
F. Michal
  • 19
  • 2
  • 10