on 02-02-2012 4:39 AM
I've prepared a SAP script and I would like to know If it is possible to not see in SAP what the scrip is doing.
In VBA excel it can be done with:
Application.ScreenUpdating = False
Thanks!!
Hi carlossanta,
welcome to the forum. I know of no way to hide a VB script as in VBA. However, there is the possibility of a SAP script to send to the taskbar.
for example:
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on"
WScript.ConnectObject application, "on"
End If
session.findById("wnd [0]"). iconify
And I would eliminate the command session.findById("wnd [0]").maximize.
Regards,
ScriptMan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.