cancel
Showing results for 
Search instead for 
Did you mean: 

Active Session Object

Former Member
0 Kudos

Hi Everyone,

Here is my situation. I am using a third party application to grab information from SAP. My issue is that I need to get the most recently used window. I have tried to use the ActiveSession object, but have had no luck getting application.activesession to work. Does anyone have experience with this Object?

Any Help would be greatly appreciated.

Thanks

Steve

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Is this VB?

Former Member
0 Kudos

This would be using VBScript.

Here is the code I am using so far.

Set SapGuiAuto = GetObject("SAPGUI")

Set application = SapGuiAuto.GetScriptingEngine

Set session = application.ActiveSession

field3 = session.findById("usr/ctxtBKPF-BUDAT").text

Thanks

Steve