cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Have script use current session

Former Member
0 Likes
3,179

Hello,

I am an SAP end user and do not have a programming background, but am teaching myself VBScript to automate some processes. I have learned quite a bit through reading through the posts on the forums, but I can not figure out how to get the scripts that I write to run on the current sap session. They always run on the first session that is opened.

It seems like there must be something that can be written in the script to use the current session vs the 1st session that is opened. I have found a few threads on the forums that make mention of this problem, but have not found a solution that works.

Any help would be greatly appreciated.

View Entire Topic
Former Member
0 Likes

Hello Scriptman/James,

this code segment worked for me as well

msgbox "Please select a session within the next 3 seconds after clicking ok"

wscript.sleep 3000

set session = application.ActiveSession

Thanks so much for this