on 05-18-2015 2:17 PM
Hi folks,
We have a vbscript that connects to one of our SAP system, returns data and places it in a text file.
The script runs fine on our local machines but we cannot get it to run on our Windows server. The error message returned is:
"ActiveX components can't create object: 'SAP.Functions'
We have SAP GUI installed on the server but the error still remains.
Any ideas why it won't run on a server environment?
Hello Patrick,
welcome to Scripting Languages forum.
How do you start your VBScript? If you start it via double click from the explorer, you start a 64-bit WScript environment and this can't use a 32-bit library.
So open a 32-bit console e.g.
C:\Windows\SysWOW64\cmd.exe
and start from this console a 32-bit Windows Scripting Host with your script
C:\Windows\SysWOW64\WScript.exe C:\MyPath\MyScript.vbs
Now you are really sure that you use a 32-bit environment and, I hope, your script works now as you expected.
Let us know your results.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.