Quantcast
Channel: SCN : All Content - Scripting Languages
Viewing all articles
Browse latest Browse all 522

SAP GUI stop scripting

$
0
0

Hi,

I am struggling to stop the scripting engine in VB.NET I tried multiple ways to make the following code but nothing worked for me. Always the baber pole shows running on all the open sessions.

 

Sapguiauto = GetObject("SAPGUI")

sapapplication = sapguiauto.getscriptingengine

For Each Connection In SapApplication.Children

        If Not Connection.DisabledByServer Then

        For Each session In Connection.Children

        ComboBox1.Items.Add(session.Info.SystemName + " (" + CStr(session.Info.SessionNumber) + ") (" + session.Info.Client + ")")

        ListBox1.Items.Add(session.Id)

        Next

        End If

        Next

 

sapguiauto = Nothing

        Connection = Nothing

sapapplication = nothing

        session = Nothing

 

Even though  all the variables to nothing, still the barber pole shows running. I found only the way to close the exe application to stop it. Is there any way to stop it and start when we start recording.

 

Thanks


Viewing all articles
Browse latest Browse all 522

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>