Open SAP GUI automatically with Excel VBA and run Scripts (SAP GUI Scripting) [english]

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 30

  • @zhimabukaimen
    @zhimabukaimen 9 месяцев назад

    Thank you very much, it still works for SAP 7.0.

    • @CustAndCode
      @CustAndCode  9 месяцев назад

      Thanks for your feedback! 🤗😀 I apprechiate it!

  • @balintka25
    @balintka25 Год назад +1

    Like BDC tool :) Good to have it in excel too :)

    • @CustAndCode
      @CustAndCode  Год назад

      Yes 🤗 For some reasons it is really handy to have this in excel. 😀

  • @ilyas9818
    @ilyas9818 Год назад +1

    Is there a way to get rid of the two pop ups that you pressed “ok” on. I’m looping through multiple servers so it’s annoying to keep pressing ok.

    • @CustAndCode
      @CustAndCode  Год назад +3

      Sure, just go in the SAP GUI Options --> Folder: Accesability & Scripting --> Scripting --> uncheck the checkboxes:
      Notify when a script attaches to SAP GUI
      Notify when a script opens a connection
      🤗

  • @sajidm2121
    @sajidm2121 4 месяца назад

    How to add if context to open sap.exe only if it’s not currently on.

  • @shilparamisetty7307
    @shilparamisetty7307 10 месяцев назад

    Hi i just need a small help. Iam writing a python script for automatic my task. I found out iam not able to extract the values from tree hierarchies like i do for a normal findByIds. Is there a way where i can select the required data from hierarchies?

    • @CustAndCode
      @CustAndCode  10 месяцев назад

      Automate things in SAP with Python, sounds very interesting! 😀 Regarding your question, I have not used any trees in SAP or in my program to date. So unfortunately I can't help you here. But I find your idea of using Python interesting! 🤗

    • @CustAndCode
      @CustAndCode  10 месяцев назад

      Maybe you can try this tool: tracker.stschnell.de/ 🤗

  • @CrisAndrades-fo4qz
    @CrisAndrades-fo4qz Год назад

    Very well explained video! Thanks.
    I get an error "Type mismatch: 'Shell' - Code: 800A000D", can you guess why? I've googled it and didn't get a solution.

    • @CustAndCode
      @CustAndCode  Год назад

      Maybe something is null or empty which is not allowed. But I don't know exactly. 🤔

  • @AmitKumar-cs2gx
    @AmitKumar-cs2gx 5 месяцев назад

    Do i need to have abap authorisation for it to use?

    • @CustAndCode
      @CustAndCode  5 месяцев назад

      We do not use ABAP here. You only need the right to call the transaction se16 (for this example) 🤗

    • @babydadoo
      @babydadoo 4 месяца назад

      Depending on your SAP deployment you may need SAP GUI scripting enabled on your PC. In my company it is disabled by default for all users. You IT side SAP Admin should be able to help there.

  • @TechMedia41
    @TechMedia41 Год назад

    Getting 614 error after opening opening sap logon through this code

    • @CustAndCode
      @CustAndCode  Год назад

      SAP GUI must be closed. I assume that your SAP GUI was open when you tested the code? 🤔

    • @adrianm.dragomiroiu5548
      @adrianm.dragomiroiu5548 9 месяцев назад

      @@CustAndCode Hi man! When I run the script, it opens SAP Logon, connects to my system but I can't set the session variable due to the following error. Any ideas ?
      Run-time error '614'
      The enumerator of the collection cannot find an element with the specified index.
      This is the relevant code:
      Set SAPGui = GetObject("SAPGUI")
      Set App = SAPGui.GetScriptingEngine
      Set connection = App.OpenConnection("SYSTEMNAME", True)
      Set session = connection.Children(0) 👈

  • @mariuszdekier1
    @mariuszdekier1 Год назад

    Great movie. That's exacly what I need. Onfortunatly when I try to open connection by Set connection = App.OpenConnecton("PROD", True) i get error :
    Run-time error 438
    Object desn't support this property or method

    • @CustAndCode
      @CustAndCode  Год назад

      You have a typo error here "i" is missing --> App.OpenConnect(i)on("PROD", True) 🤗

    • @mariuszdekier1
      @mariuszdekier1 Год назад

      @@CustAndCode OMG!! Thanks :)

    • @CustAndCode
      @CustAndCode  Год назад

      ​@@mariuszdekier1🤪🤗😀

    • @mariuszdekier1
      @mariuszdekier1 Год назад

      ​@@CustAndCode I have another problem. I want to download some data from SAP. Onfortunatly SAP generate it to long and I get messagebox from Excel about waiting for another OLE aplication. Have you got some Idea how I can add some breake in code?

    • @CustAndCode
      @CustAndCode  Год назад

      ​@@mariuszdekier1​ I have here an application.wait command in my VBA script. 🤔

  • @gege4707
    @gege4707 9 месяцев назад

    Does anyone know how to logon to sap when SSO is being used?

    • @CustAndCode
      @CustAndCode  7 месяцев назад

      Fiori no problem, SAP GUI could be a problem because it is not a web application. 🙄 But I am not an expert about SSO.