Session.findById("wnd/tbar/okcd"). Session.findById("wnd").maximize ' max main SAP window Set Connection = ApplicationSAP.Children(0) Set ApplicationSAP = SapGuiAuto.GetScriptingEngine The second one of running script, is the launch the code from script in MS office without *.vbs file, as in example bellow Option Explicit To be able to process a higher amount of data in the same time, parallelization is a valid approach. Set Wsh = CreateObject("WScript.Shell").Exec("calc.exe") This method is allow to launch applications in your PC, e.g.: Sub test2() Set Wsh = CreateObject("WScript.Shell").Run("C:\Users\USERNAME\Desktop\Script1.vbs") From my expirience, I know two options of running SAP script, the first one is using WScript.Shell, I know that there is too much information against this method, try to search about it Sub test() GUI Scripting help section in SAP is very helpful it will explain you things in very details.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |