cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
4,970

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Stefan-Schnell
Active Contributor
0 Kudos

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

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.