Joel Ting
Joel Ting
  • 22
  • 839 284
Extract and Transform SAP Data with ONE click! Automation with Excel VBA and Power Query
📚 Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity!
joelting.com/sap-ebook/
Are you spending hours manually extracting, transforming, and analyzing data? What if you could automate the entire process with just one click? In this video, I’ll show you how to combine SAP GUI Scripting and Power Query to create a seamless workflow for automating data extraction, transformation, and analysis.
You'll learn:
✅ How to extract data from SAP using GUI Scripting
✅ Transforming raw data in Power Query with essential techniques
✅ Automating file path updates with Power Query Parameters
✅ Integrating everything with Excel VBA for a fully automated process
By the end of this tutorial, you’ll understand how to combine SAP GUI Scripts with Power Query to streamline your workflow, save time, and focus on delivering insights rather than managing data.
#SAPScripting #SAPGUIScripting #SAPAutomation #excelvba #PowerQuery #ExcelTips #DataAutomation #ProductivityHacks
DISCLAIMER:
SAP® and SAP GUI Scripting are registered trademarks of SAP AG.
I am NOT associated with SAP AG in Germany or any other country. I am NOT SAP Partners. I do NOT offer live SAP Training. I do NOT offer SAP Access. We do not recommend the use of SAP Access from any particular provider.
MY FAVOURITE TOOLS & GEAR:
📝 Notion - How I Manage My Day - affiliate.notion.so/hpemzmxen3jq
MY OTHER SOCIALS:
🌍 My website / blog - joelting.com/
🐦 Twitter - JoelTing92
🏢 Linkedin - www.linkedin.com/in/joel-ting/
🙎🏻‍♂️ WHO AM I:
I'm Joel, a Regional Finance Controller working in Singapore. I make videos about technology, automation and productivity.
📧 GET IN TOUCH:
If you'd like to talk, I would love to hear from you. Email me directly at joelting92@gmail.com would be the quickest way to get a response. I will try my best to reply to your email as soon as possible.
P.S. Just a heads up, I receive a kickback from some of the links in this description as they are affiliate links 😜
Переглядів: 3 284

Відео

Save 10 HOURS with this Data Automation Project - SAP to Power BI
Переглядів 6 тис.4 місяці тому
Book a call with me: 👉 joelting.com/book-a-call/ 📧 Join my FREE newsletter to access all resources used in this video: 👉 joelting.com/newsletter-download/ 0:00 Introduction & Overview of automation components 2:59 Python scripts and modules 3:29 SAP GUI automation with Python 5:15 SAP AFO workbook refresh automation with Python 7:31 Loading refreshed data into Database with Python 09:05 Power B...
Automate SCREENSHOT Capture with Excel VBA & SAP Script
Переглядів 3,4 тис.5 місяців тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ Ever wanted to automatically capture and crop screenshots for your SAP automation? This video is your ultimate guide! Learn how to: ✅ Trigger screenshots using VBA ✅ Paste screenshots into Excel w...
One Click to Bring Your Financial Data into SQL Database
Переглядів 3,4 тис.11 місяців тому
💡 SQL Databases are powerful for data analysis, and in the world of Finance, we handle massive amounts of data, often scattered across various platforms. The time wasted searching for data and switching to ERP systems can be frustrating. Join me as I reveal how I revolutionized data storage and management in my department by replacing traditional Excel spreadsheets with a high-performance SQLit...
I created 20 vendors in SAP with a SINGLE click with Excel VBA!
Переглядів 12 тис.11 місяців тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ 📚 RESOURCES IN THIS VIDEO: Vendor Creation Automation: drive.google.com/file/d/1ye0G7Y0A3jLKalpQCXo1Q16z-6z2jvXI/view?usp=drive_link Automate the creation of vendors using SAP Scripting and Excel ...
Automate Bulk PDF Extraction with Excel VBA and SAP GUI Scripting
Переглядів 10 тис.Рік тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ 📚 RESOURCES IN THIS VIDEO: PDF Export Automation: drive.google.com/file/d/1OUXryTp_i11HP8_S2p0CHwvryq3niHtU/view?usp=drive_link Automate the extraction of sales order PDFs using SAP Scripting and ...
SAP GUI Script Development Tool That Will BLOW YOUR MIND
Переглядів 15 тис.Рік тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ In this video, I will show you how to use Scripting Tracker to streamline your SAP scripting process. The Scripting Tracker is a powerful tool that helps SAP script developers to easily identify a...
Excel VS SQL as Database - My view as a Financial Controller
Переглядів 13 тис.Рік тому
In this video, I'm sharing my thoughts on using Excel and SQL as a database for financial analysis and management. As a Financial Controller, I've had extensive experience with both Excel and SQL and have seen the pros and cons of each approach. I'll be discussing the benefits and limitations of using Excel as a database, including its ease of use, flexibility, and powerful data analysis tools....
Automate SAP Spreadsheets Export with Python and Analysis with Pandas in a single Python script
Переглядів 40 тис.2 роки тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook 📚 RESOURCES IN THIS VIDEO: Python Script Template: drive.google.com/drive/folders/1NVKLHKHRPfsdRJ7kTMV4Sg5qM9yxtxze?usp=sharing Anaconda Download Link: www.anaconda.com/ Most of us analyst understa...
Compare Multiple Forecast in a Single Visual with Power BI
Переглядів 6 тис.2 роки тому
I frequently need to compare different versions of forecast. What is our original budget, what is our previous month estimates, what is our target and so on. In this video, I will show you how I manage to analyze and present different forecast and estimates together to see what are the changes between them and validate whether the current forecast is prepared correctly with Power BI. with Power...
Export multiple SAP reports with For Loop in Excel VBA - SAP GUI Scripting
Переглядів 35 тис.2 роки тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ In this video, I will share how you can export multiple SAP reports with different parameters using for loop in Excel VBA. Timestamps 00:00 Overview 00:21 Script Recording in SAP GUI 01:27 Develop...
Splitting data into multiple tabs with VBA - Interacting with Exported Excel Spreadsheet from SAP
Переглядів 14 тис.2 роки тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ In this video, I will share how you can interact with the Excel spreadsheet exported from SAP and apply some steps to format and edit the spreadsheet based on your likings. All these can be done w...
Copy Excel Ranges and Paste into SAP Multiple Selection | SAP Scripts with Excel VBA
Переглядів 46 тис.3 роки тому
Get instant access to the eBook "SAP GUI Scripting: Understanding the Basics" and discover how you can transform your SAP work processes, reduce errors, and boost productivity! joelting.com/sap-ebook/ I have always been tasked to run SAP report based on certain criteria/values that was usually sent to me via email in the form of Excel. In this video, I'll share my way of automating the process ...
Dynamic Variance Analysis with Power BI - Different Forecast Versions Comparison
Переглядів 24 тис.3 роки тому
When I was first started my journey with Power BI, I always struggled to create visualization for showing the variances between different budget/forecast versions. Things are always done manually in Excel as I'm only able to total up the different versions and manually substract them in a spreadsheet. I'm able to find videos and tutorials about actuals comparing against budget and previous year...
Resolving Common Issues for SAP GUI Scripting | SAP Settings and Debugging Tips for SAP Scripts
Переглядів 53 тис.3 роки тому
Resolving Common Issues for SAP GUI Scripting | SAP Settings and Debugging Tips for SAP Scripts
Automate SAP Data Extraction with Excel VBA & SAP GUI Scripting - Minimal Coding Required
Переглядів 294 тис.3 роки тому
Automate SAP Data Extraction with Excel VBA & SAP GUI Scripting - Minimal Coding Required
Using Excel Data (Filtered) As SAP Multiple Selection Criteria with Power Automate Desktop
Переглядів 24 тис.3 роки тому
Using Excel Data (Filtered) As SAP Multiple Selection Criteria with Power Automate Desktop
SAP Logon and Handling Password with Power Automate | Step-by-Step Guide using Azure Key Vault
Переглядів 19 тис.3 роки тому
SAP Logon and Handling Password with Power Automate | Step-by-Step Guide using Azure Key Vault
Automate SAP data extraction to Excel with Power Automate Desktop - No Coding Required.
Переглядів 206 тис.3 роки тому
Automate SAP data extraction to Excel with Power Automate Desktop - No Coding Required.
Automate Microsoft Teams Members Lists Generation with Power Automate. No Coding Required.
Переглядів 7 тис.3 роки тому
Automate Microsoft Teams Members Lists Generation with Power Automate. No Coding Required.
Joel Ting | An Introduction about Tech Tips for Accounting
Переглядів 4,4 тис.3 роки тому
Joel Ting | An Introduction about Tech Tips for Accounting

КОМЕНТАРІ

  • @dcdien07
    @dcdien07 День тому

    Please give me python code file, i want to learn argparse to specify argument when run python file like your video

    • @JoelTing
      @JoelTing День тому

      Hello. You can register with your email here and download the whole package used in this video. joelting.com/newsletter-download/

  • @jpemanahan8699
    @jpemanahan8699 День тому

    I was so happy when I found this video since I deal with a lot of data extraction in SAP, but later felt sad because the "Script Recording and Playback" features of our SAP were disabled :(

    • @JoelTing
      @JoelTing День тому

      Hello. I recommend reaching out to your IT department. They often have specific policies regarding automation. When it comes to automating data inputs, they tend to be quite cautious. However, if you're only extracting data, they're usually more open to providing scripting access. Some companies create a separate SAP ID specifically for automation purposes, restricting it transactions that provides read-only access to users.

  • @godnevercheats3880
    @godnevercheats3880 День тому

    I'm using SAP ECC. Can you please help me with copying the text just a word/number from the saved message(it'll always appear in the left below side) that comes when you save or make any changes using a tcode.. I want to copy it and then paste it in excel.

    • @JoelTing
      @JoelTing День тому

      Hello. Are you referring to getting the text in the status bar? You can access text in status bar using session.findById("wnd[0]/sbar/pane[0]").Text

    • @godnevercheats3880
      @godnevercheats3880 День тому

      @@JoelTing No, I'm refering to the dialogue box that will appear when I create/change a document. For eg: lets say I'm using VA01 T code or vf01 or any other creation or modify t code and when I'm done making changes in the document using VA01 T code, I'll save it and it will generate a Document number which will trigger a 606183 has been created or saved in the bottom left corner which you can double tap and it'll open a window(called performance assistant) from which I want copy just the 606183 number.

    • @godnevercheats3880
      @godnevercheats3880 День тому

      and then paste it in a cell in excel

    • @JoelTing
      @JoelTing День тому

      If you only need the number, you can identify the pattern in it, and get the number from the text. For example if the text in the status bar is "Document Number 606183 has been created", you can try the following: For i = 1 To Len(sbartext) If IsNumeric(Mid(sbartext, i, 1)) Then result = result & Mid(sbartext, i, 1) End If Next i ‘To paste value in Excel Range("A1").Value = result Assuming there's always only one number in the text, this will extract the numerical character only in the text. Then, you can paste in one of the cell in your Excel spreadsheet or use it later in your VBA script. This method works best when there's only one number in your text. If your text contains multiple numbers, you might need a different approach.

  • @amarbabu7363
    @amarbabu7363 4 дні тому

    Can you please share the code?

    • @JoelTing
      @JoelTing День тому

      Hello. I have provided it in the description box. Feel free to download it.

  • @TheJaebeomPark
    @TheJaebeomPark 5 днів тому

    amazing!

    • @JoelTing
      @JoelTing День тому

      Thanks, glad you liked it!

  • @Rroth140
    @Rroth140 8 днів тому

    Do you have a video on how to write a GUI script that you can change the date and plan numbers daily

    • @JoelTing
      @JoelTing День тому

      Apologies for the delayed response. Regarding your question, you can use Now() to retrieve the current date and time. Does this address what you're looking for? To design the approach, I would need to better understand your specific use case.

  • @lostfan5054
    @lostfan5054 8 днів тому

    I am still not clear on why SQL would be better. You can do all these same functions with Excel, including Data validation and so on. The only thing i can see is that Excel can get laggy when you are dealing with huge data sets. Other than that, it seems like SQL is just another thing to learn.

    • @JoelTing
      @JoelTing 8 днів тому

      While Excel can replicate many SQL functions, the real advantage of SQL lies in its performance and data management capabilities. When dealing with multiple table joins and complex queries, SQL executes these operations significantly faster than Power Query merges in Excel. If you are merging queries in Power Query, things will get slower and slower as you merge more tables in a single query. In SQL, you can create multiple views from the same from the same data, eliminating the need to duplicate data or maintain multiple files. Any changes to source data automatically reflect across all views, making data management more efficient. That being said, if the data is small and they can be processed efficiently using just Excel, I will always go back to Excel because SQL is not something that everyone would learn in the Finance community. Building the solutions in Excel are more easily transferable to others when someone else needs to take over the maintenance of the solutions.

  • @PhuongNguyen-cv1zk
    @PhuongNguyen-cv1zk 10 днів тому

    How to unable automatically open saved file when download from SAP GUI

    • @JoelTing
      @JoelTing 10 днів тому

      @@PhuongNguyen-cv1zk hello. There does not seems to be a way to handle the opening of saved file well. One workaround is you could try exporting the output in txt file and use Power Query to convert it into an Excel table. I covered this in my latest video.

  • @BulentOner
    @BulentOner 12 днів тому

    But, many of the productive systems are not allowed scripting. Unfortunately

    • @JoelTing
      @JoelTing 12 днів тому

      Based on my experience, many companies are open to SAP GUI Scripting in production systems when there's a clear business need, especially for data extraction purposes. Typically, IT departments are willing to assist with such requests. They often provide scripting access to specific users or create dedicated robotic SAP IDs for this purpose.

  • @amitprasad5496
    @amitprasad5496 14 днів тому

    Very valuable video, appreciate you sharing this. Question? Can this be done with SAP business ByDesign as well?

    • @JoelTing
      @JoelTing 13 днів тому

      I'm not too familiar with SAP Business ByDesign. Is that web based? If it is, then SAP GUI Script will not work (SAP GUI Script only works for SAP GUI) but the general approach can still be applied using Power Query. For web-based systems, you can automate the extraction process using Selenium. Once you have the output file's path, you can replace it the parameter with the latest output file path, allowing the process to be automated in a similar manner.

  • @Sumanth1601
    @Sumanth1601 15 днів тому

    Excellent content,.loved it 😊 I use power query for many of my workflows..but never managed to have it in conjunction with SAP, where can I find the copy of your vba script.. thanks again..

    • @JoelTing
      @JoelTing 13 днів тому

      Hello! You can get the file for reference using the link below: www.dropbox.com/scl/fi/94a84nivqyeehtvv5fb7q/FAGLL03Extract.xlsb?rlkey=d8mlg4mrc62kbwrjuxy1x0gkn&st=onekagzv&dl=0

  • @davidnatera8923
    @davidnatera8923 17 днів тому

    Excelente video, con este metodo te evitas tener que escribir más lineas de codigo VBA

    • @JoelTing
      @JoelTing 17 днів тому

      Yes, and it's much easier to maintain since not all users are familiar with VBA, while Power Query is quite user-friendly for everyday Excel users. I've worked on several projects and successfully handed over their maintenance to the team with little VBA knowledge.

  • @PauloDoutel
    @PauloDoutel 17 днів тому

    Dear Sir, Thank you so much for sharing your extraordinary knowledge, which has been of great help to all of us. I would like to know if you could provide a practical example of how to upload preventive maintenance operations (010, 020,030...) directly from Excel to SAP using the IA-01 transaction. The goal would be to create a task list, including all associated operations, as well as simple comments, more detailed ones, and preventive maintenance periodicities (PM01)such as monthly, semi-annual, annual, etc. If you have an example or guidance on this process, I would be very grateful. Best regards, Paulo Doutel

    • @JoelTing
      @JoelTing 17 днів тому

      Hello! I'm not too familiar with the processes around IA01. Maybe you can book a call with me and I can give you some ideas on how this could be set up?

  • @assitantrevenueofficerjawa4052
    @assitantrevenueofficerjawa4052 18 днів тому

    You are awesome I am your your big 🎉

  • @GonaIbrahim-w7z
    @GonaIbrahim-w7z 21 день тому

    Great job 👌👍👍👍

  • @saadazam1289
    @saadazam1289 22 дні тому

    I need your help to pick up the data from vl03n in excel in different cells, can you please help me, i need data in excel via botton that i press the botton and data will com from SAP VL03N in excel in 4 required cells.

    • @JoelTing
      @JoelTing 22 дні тому

      Hello! That can be done by just assigning the element text value to a cell value (for example: Cells(1,1).Value = session.findById(elementID).Text ). You just need to identify what the element ID in SAP, then assign it to a cell value in Excel

  • @MirzaAbdulRaheemBaig
    @MirzaAbdulRaheemBaig 22 дні тому

    hey i am encounter a problem in attach to running excel step. (i saved by document with export12345), copy paste the same in the Attach excel step. But getting this error (Make sure that no Excel file is currently being edited or blocked by a pop-up dialog. Also, make sure that the target Excel file has not been opened in Protected View.)- i dont have any other file opened, File alsways get open in editing mode(i dont have to press editing to make chnages) Please guide . Thanks in advance

    • @JoelTing
      @JoelTing 22 дні тому

      Hello! Is it possible to output your table as a txt file instead? I found that using txt file would eliminate the complications of working with Excel file output.

  • @ivanarciniegas7324
    @ivanarciniegas7324 22 дні тому

    thank you 😄

  • @chengyixie4761
    @chengyixie4761 25 днів тому

    Hello everyone, may I know what is the element ID of VF03-PDF?

    • @JoelTing
      @JoelTing 22 дні тому

      Hello! I'm not too sure what you are looking at. Do you have scripting tracker installed? You can try using that to check the ID.

  • @deepu03393
    @deepu03393 25 днів тому

    Very nice and crisp liked it, can you please do a video on copy values from sap and paste on excel cells

    • @JoelTing
      @JoelTing 22 дні тому

      Hello! That can be done by just assigning the element text value to a cell value (for example: Cells(1,1).Value = session.findById(elementID).Text )

    • @deepu03393
      @deepu03393 22 дні тому

      @JoelTing Thank you so much!!

  • @tranbui6310
    @tranbui6310 Місяць тому

    Hi Joel, I know I'm damn late but still want to ask you 2 questions: 1. I want to add multiple values for an input (plant --> 001, 002, 003). How can I customize it with coding? I tried For each for it only got the last value. 2. At the last step, I clicked "Generate" as I save the file for the first time. If running macro to refresh that file, VBA will tell me the file has existed. Do I need to run a side module to delete the current file before running it, or any solutions?

    • @JoelTing
      @JoelTing Місяць тому

      Hello! 1. Try and debug step by step and see what's wrong in the loop. You should be able to pinpoint which part of your code goes wrong. I usually use For next loop and that has been working well for me. Alternatively, if you have multiple values, you can make use of the clipboard as well. Customize the clipboard with the input values, then in SAP use the paste from clipboard button. 2. Deleting the current file is one way to do it. Check if the file is already exist, if it is then delete it. Another alternative you can think about is to use the current time as part of the file name. Then, you would be sure that whenever you run the script, the file name is always unique.

  • @Fern1153
    @Fern1153 Місяць тому

    Good work!! Thanks, you resolved my problem!

  • @williamrinversi5785
    @williamrinversi5785 Місяць тому

    Hi Joel, when I display the BrowserHandle, the LocationURL is not visible. Any other way to get the URL?

    • @JoelTing
      @JoelTing Місяць тому

      Hello. So far, I am only able to get it work with LocationURL. Have you switched the Browser Control in SAP to Internet Explorer? When I use Edge as my Browser Control, then I am not able to locate the LocationURL.

  • @Riyaz313
    @Riyaz313 Місяць тому

    Sir I automated the label printing by scriptting it in excel. When script run then it open word file which show how label will show and then script run further now my things is that how can this be automatically save in my desire folder

    • @JoelTing
      @JoelTing Місяць тому

      Hello! I'm not entirely certain about your case. You should be able to interact with the word doc. From there, you should be able to save it just like your Excel file in VBA.

    • @Riyaz313
      @Riyaz313 Місяць тому

      @JoelTing ya if I can do it manually I can save it I want it save automatically

    • @JoelTing
      @JoelTing Місяць тому

      @@Riyaz313 does the word document opens itself? does the word document have the same name for each script run?

    • @Riyaz313
      @Riyaz313 Місяць тому

      @JoelTing yes it's open it's self and have different name every time. So I can have lists of labels in specific folder 📁 so I have record that how many label I have given

    • @JoelTing
      @JoelTing Місяць тому

      @@Riyaz313 If you are familiar with VBA, you can try to get the word application using getobject method, then you would be able to connect to the word document and save it into your desired folder. You may need to establish a loop to keep the script waiting until your word document is loaded before connecting to it. That would be the approach I'll try. As I do not have a use case from my end, I cant be sure if it will work.

  • @MuphoShana
    @MuphoShana Місяць тому

    Liked it

  • @DesimetLatina
    @DesimetLatina Місяць тому

    i am going to learn sql as i have already knowledge of power bi and python. people are suggesting me to go for T-SQL. they are saying its more appropriate for financial analysis, should i go directly for T-Sql?or just sql or mysql. Thanks in advance

    • @JoelTing
      @JoelTing Місяць тому

      Hello! I personally didn't use T-SQL before. From what I understand T-SQL, or Transact-SQL, is an extension of standard SQL designed specifically for Microsoft SQL Server. It adds extra features that aren’t available in standard SQL. While the basics of SQL are the same across different databases, T-SQL offers tools tailored to SQL Server. So, if you’re working with MySQL, for instance, you won’t have access to T-SQL features. So, I would say what you need to learn would really depends on what database that you are working with.

  • @dionliaw1347
    @dionliaw1347 Місяць тому

    Hi Joel, If i am using citrix to access SAP, is there any other way can help? thank you

    • @JoelTing
      @JoelTing Місяць тому

      Hello. I do not have access to SAP via Citrix, so I'm not able to test if there's any workaround for it. Perhaps you could try to run the script in an Excel workbook within the Citrix environment to see if it works that way?

  • @ANUSHAYENGISETTY
    @ANUSHAYENGISETTY Місяць тому

    Hi, I am not able to record script in SAP GUI for vendor clearing using T-code F-44. Could you please help me

    • @JoelTing
      @JoelTing Місяць тому

      Hello. What is the difficulty that you are facing?

  • @albeehernandez7920
    @albeehernandez7920 2 місяці тому

    how can I get a Scripting Tracker?

    • @JoelTing
      @JoelTing Місяць тому

      Hello. You can check it listed in the description box of this video: ua-cam.com/video/VBmbuSXRvIg/v-deo.html

  • @murattulek5783
    @murattulek5783 2 місяці тому

    You encouraged and inspired me man!

  • @mirasol2229
    @mirasol2229 2 місяці тому

    Hi Joel! Thank u for this! I have created multiple tools using this method of yours. Just a question tho, what if i need to copy 2 ranges for 2 different multiple selections. I tried declaring 2 lastrows and setting 2 ranges. However i dont know how to command the code to get range a for multiple selection 1 and range B for multiple selection 2. The code only copies range B to both multiple selection 1 and 2. Can you help me with this?

    • @JoelTing
      @JoelTing Місяць тому

      Hello. You can try only copying the range right before you click on the "Paste from Clipboard" button.

  • @mirasol2229
    @mirasol2229 2 місяці тому

    Hi Joel! Very very helpful video, can I ask how would I generate the texts in the status bar every after loop so I’d know what the status of my changes are? Appreciate your answer as this is my remaining problem for the tool im making 😊

    • @JoelTing
      @JoelTing Місяць тому

      Hello. Sorry for the late reply. Are you referring to getting the text in the status bar? You can access text in status bar using session.findById("wnd[0]/sbar/pane[0]").Text

    • @mirasol2229
      @mirasol2229 Місяць тому

      @@JoelTing hi Joel! Thanks for this, will try it out 🙂

  • @assitantrevenueofficerjawa4052
    @assitantrevenueofficerjawa4052 2 місяці тому

    You are amazing Bhai

  • @jaypatidar5682
    @jaypatidar5682 2 місяці тому

    Hi, i am unable to find SAP GUI scripting API in reference, its also not available in the path you have shown. Any suggestions please...

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello. Are you using SAP via Citrix? Can you check via File Explorer if you have the folder "C:\Program Files (x86)\SAP\FrontEnd\SAPgui"?

  • @carlheroux777
    @carlheroux777 2 місяці тому

    Hi! This is an older video but I hope you see this. I use lot of scripts to automate extractions for users and usually, the next step after the extraction is to copy paste the data in the main workbook. When I put the copy paste code after the extraction code, it bugs because the macro seems to be going faster than the extraction opening and can't find the workook to copy from. I use 2 separate macros to solve that but is there any ways to have all the steps in the same macro? Thanks

    • @JoelTing
      @JoelTing 2 місяці тому

      Hi there. I had similar problems with you if the data export takes a long time. I'm able to solve this by exporting the table using List -> Export -> Local file -> Text with tabs instead. This process seems to be more consistent compare to exporting them in spreadsheet. Then, I'll pass the text file into a custom converts it into a table and saves it to Excel. Maybe you could try this approach and see if it works for you?

    • @carlheroux777
      @carlheroux777 2 місяці тому

      Hi! Thanks for you response! I will definitely give it a try! The size of my extraction are quite big indeed so that makes sens that Excel can't open the workook fast enough. Again, thank you the valuable informations you share! Its highly appreciated!

  • @wit4u
    @wit4u 2 місяці тому

    Hello Joel. I was using a similar code but "Set session = SAPCon.Children(0)" began failing some days ago (I guess due to some IT action on security topics). Checking with MsgBox(SAPCon.Children.Count) I get a zero as response... it looks like children are no more available. Also tried a different approach: "Set session = SAPCon.FindById("ses[0]")". Ever encountered a similar issue? Any suggestions to explore?

  • @iLona_IL
    @iLona_IL 2 місяці тому

    This is super brilliant presentation and very usefull for simple SAP user! Mr you are awesom! If you also could show how to extract several different reports and to save them into one work book, on different sheets. ❤

    • @JoelTing
      @JoelTing 2 місяці тому

      I'll try to work out some content on this. The general idea is once you have all the paths of the different reports after the export, you can just open them with VBA, then transfer them over into your current workbook. Another way to do it is via Power Query where you can setup data transformation steps and load it into your current workbook. We can use VBA to dynamically change the source into the newly extracted files.

  • @noviaic5418
    @noviaic5418 2 місяці тому

    Hi Joel, Thank you, your video is very helpful. I have a question if I may ask. So when I run the macro, and executing the data from SAP, a pop up in Ms Excel appear "Microsoft Excel is waiting to complete OLE action". I assume it happens due large data that I extracted in SAP during the process. Do you have any idea to avoid this pop up error? Thank you

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello! You can try adding Application.DisplayAlerts = False before you run your script and right before it ends, set Application.DisplayAlerts = True again so that Excel can work normally.

  • @GiulioEF
    @GiulioEF 2 місяці тому

    Hi, this video is amazing. However when I run the script in VBA, Run-time error '438' appears. Does anyone know what could be the problem? Thanks in advance

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello! Can you let me know which line triggers run-time error '438'?

    • @GiulioEF
      @GiulioEF 2 місяці тому

      @@JoelTing I didn’t expect you to answer, thanks so much! In the meanwhile I sorted the problem out. However now I have a new issue, i.e. I would like to input several data in SAP t-code (so instead of just one country code, for instance, I want to input 40). Do you know if it is possible? I have tried everything but nothing seems to work. So far I only managed to achieve this by doing a range.copy and then using sap script to paste 40 values in it. But it doesn’t seem the right way to me, even if it works

    • @GiulioEF
      @GiulioEF 2 місяці тому

      Also would you know which is the line of code needed to open SAP from scratch? I would like this macro to work even if the user does not have SAP already open

    • @JoelTing
      @JoelTing 2 місяці тому

      For multiple inputs, using range.copy and pasting from the Clipboard is the most efficient method. Alternative methods, such as scrolling and inputting values one by one, are more prone to errors due to potential variations in workspace size. Are you experiencing issues when pasting values, such as missing data?

    • @JoelTing
      @JoelTing 2 місяці тому

      To open SAP, the general idea is to run SAP using the following function: Function RunSAP(system As String, client As String, user As String, pw As String) Dim command As String command = "C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapshcut.exe -system=" & system & " -client=" & client & " -user=" & user & " -pw=" & pw & " -language=en" Shell command, vbNormalFocus End Function This requires the password of the user. Another thing to note is that this approach does not work for system that uses SSO. It's best to get SAP user ID that can log in with password and have access to SAP GUI Scripting. Once you run this function, you will need to run a loop to check whether the SAP window is opened before connecting to it.

  • @judebotecial8530
    @judebotecial8530 2 місяці тому

    Hi Joel thanks for the vid ive been automating a lot of functions with this. one problem i have now is when i have multiple tabs of SAP open that have different SID. sometimes i run it and it executes the actions in a different SID not for S4HANA. is there a way to specify which SID it runs on?

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello Jude. Yes, you can loop through all the system IDs available using objGUI.Children(i) to check the SID description before connecting to it. If you have multiple, and want to work with them individually by assigning each SID into individual objects.

  • @fadlyriza6314
    @fadlyriza6314 2 місяці тому

    hi Joel, why my sap shows this message 'Input must be in the format _,___,___,__~.___V'. i dont see any issues on your video showing any issues when data being transfer from excel to SAP. any idea to fix this? Anyhow, your video was very helpful & i followed step by step

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello. That seems to be a decimal place field? Could it be a maximum decimal place in SAP? As a first step, try to do it manually to see if it works. You just need to make sure the data you passed into SAP works in the first place. For example, if the SAP field only works with 2 decimal place, you must convert the value into 2 decimal place 1st in VBA before passing it into SAP.

    • @fadlyriza6314
      @fadlyriza6314 Місяць тому

      The problem already solved by adjusting a little bit the script. Now I managed to run the script completely 1 cycle until the transaction is saved. unfortunately, it won't loop to proceed with other order nos. When i try to run it mentioned about couldn't found the ID? What could be the issue... Is it SAP settings or the script itself?

    • @JoelTing
      @JoelTing Місяць тому

      @@fadlyriza6314 That's most likely your session is not at the correct screen to input another order. That error shows that it is not able to find the field you specify to fill in the value. You can try putting in "/n" in front of your transaction (ie. /nMM03)to make sure it will always go to the main transaction page for you to perform your processes.

  • @deepakjayaram2351
    @deepakjayaram2351 2 місяці тому

    Hi, i tried to record a script for T-code YPSFDSD order data flow down under quality instructions but unable to move the workbooks from the field while script started recording.... could you please how to move and record

    • @JoelTing
      @JoelTing 2 місяці тому

      Hello! The T-code you mentioned there is not a standard T-code. I do not really understand what you meant by moving the workbook. The script recorder will only record interaction in SAP GUI. Once you are out of SAP, like using file explorer to save file, the recorder will not work. Depending on what you need to do, there's some workaround for it.

  • @Cuwubiq
    @Cuwubiq 2 місяці тому

    actually scripting tracker tool can help with the conversion part quite easily.

    • @JoelTing
      @JoelTing 2 місяці тому

      yea. Agree. If there's access to the scripting tracker, I would definitely use the tool to record in python instead of using the native recorder in SAP.

  • @sameershinde1440
    @sameershinde1440 3 місяці тому

    If I want to generate multiple SAP GL data on the same time so do know about how to generate in vba

    • @JoelTing
      @JoelTing 3 місяці тому

      Hello! If you're looking to run multiple sessions simultaneously, with each session executing a specific GL code, that's definitely possible. To achieve this, you can modify the connection children index when connecting to SAP. For instance, you can use objConn.Children(0) to connect to the first session, objConn.Children(1) to connect to the second session, and so on. By doing so, you can instruct your script to run distinct GL code on separate sessions, enabling parallel processing.

  • @Tavi_186
    @Tavi_186 3 місяці тому

    I will buy your e book because you deserve all the support. Thank you for introducing me to SAP automation with vba and python. I had no idea it is posible

    • @JoelTing
      @JoelTing 3 місяці тому

      Thank you so much for your support!

  • @TiffanyYoung-z7s
    @TiffanyYoung-z7s 3 місяці тому

    Hi Joel, this video was mind blowing. if you have time please make a VBA for F-28 post customer incoming payments, because i struggle design VBA for incoming some billing reference number if there's customer pay for their 1 billing or more than 1 billing.

    • @JoelTing
      @JoelTing 3 місяці тому

      Hello! I'm not familiar with the processes surrounding customer incoming payments. Just thinking out loud, could we potentially read the number of billings a customer has made and then, based on the specific billing invoice they paid for, create a loop that iterates through their current outstanding invoices and checks them against the billing they made?

  • @209_Violate
    @209_Violate 3 місяці тому

    Only up!!

  • @thydinh20
    @thydinh20 3 місяці тому

    Hey Joel, this is what I needed. Great share on this video. So, my question is, what if i want to have my collogues perform this and share the spreadsheet with them. With SAP logon, that would cause a Run-Time error "the Control could not be found by ID. how do we go about doing that?

    • @JoelTing
      @JoelTing 3 місяці тому

      @@thydinh20 hello! This error seems to show your colleagues page is not the same as yours. It is not navigating to the correct page. For your script, did you include "/n" at the front of the Tcode when running it? Sometimes, your screen could be on other Tcode. Running another Tcode without "/n" will result in the interface being at the wrong page, resulting in the script not being able to perform what it needs to do.

  • @markuskamot9910
    @markuskamot9910 3 місяці тому

    I cant find sap gui in vba what can i do?

    • @JoelTing
      @JoelTing 3 місяці тому

      Hello! Can you try navigating to C:\Program Files (x86)\SAP\FrontEnd\SAPgui using file explorer and check if sapfewse.ocx file is there? Are you able to record script before going into VBA?

    • @markuskamot9910
      @markuskamot9910 3 місяці тому

      @@JoelTing yes i can record the Script and now i have the connction. Unfortunately my Skript when i just copy and paste does not work. It seems He does not find the Connection to my sap. What can i do for that

    • @JoelTing
      @JoelTing 3 місяці тому

      @@markuskamot9910 What error did you e

  • @RayzaIzaguirre
    @RayzaIzaguirre 3 місяці тому

    Muchas gracias 🥹🥹🥹 lo pude hacer y ahora me encanta power automate