Skip to Content
0

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

Mar 31, 2017 at 07:38 AM

321

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Stefan Schnell Mar 31, 2017 at 11:07 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

1