on ‎2011 Sep 10 2:15 PM
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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
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.