Skip to Content
avatar image
Former Member

SAP GUI Script ->VBA Create a new session( call t-code)

hi friends,

i want to replace sap gui scripting code.This code only working when my gui is login otherwise it's doesn't work i want to run create a new session in rfc else run sap gui in background.

   Set SAPGuiAuto = GetObject("SAPGUI")
   Set Application = SAPGuiAuto.GetScriptingEngine
   Set Connection = Application.Children(0)
   Set session = Connection.Children(0)

Thanks,

Umayaraj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 31, 2017 at 11:07 AM

    Hello Umayaraja,

    as I wrote here it isn't possible to do that in one program. You can do it with different tasks, but in my opinion it is to complex. You can find another solution here.

    Cheers
    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi stefan ,

      Thanks to guide me ,i try your wmi concept to lunch gui session and perfom my task but, i had little bit doubt about GUI Script , is it possible to run gui in background (hidden)?

      Regards

      Umayaraj.