on 2014 Feb 19 10:19 AM
Hi!
I have a macro in Excel that connects to SAP.
With Office 32 bits and Windows 7 64bits works perfectly.
With Office 2010 64bits it returns the error '429' An ActiveX component cannot create the object.
I've tried to register libsvr32.dll and copy it to system32 directory but nothing works.
The error appears at line
Set R3 = CreateObject("SAP.Functions")
I think there's some incompatibility between office 64 bits and SAP but I'm no really sure.
Could I use another method to connect SAP instead of libsvrc32.dll?
Help will be appreciated!
Thanks!
Hello Eduardo,
welcome to the SAP GUI Scripting forum.
In the first case you work with Office 32-bit in a 64-bit Windows environment and it works.
In the second case you work with Office 64-bit in a 64-bit Windows environment and it works not.
The library with the ID SAP.Functions is the wdtfuncs.ocx resp. wdtfuncU.ocx for the unicode version. It is a 32-bit library and it doesn't work in a with Office-VBA 64-bit - Look here:
"Existing 32-bit ActiveX controls, both third-party and Microsoft-supplied, are not compatible with the 64-bit version of Office 2010."
I am afraid there is no way to use 32-bit ActiveX libraries with 64-bit Office in VBA - maybe another member knows it.
Good luck.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Stefan.
In the link you've posted it says:
"there are three possible solutions:
I've checked SAP Note 413708 - RFC library that is current at this time
I've downloaded the .sar file for x64 OS and in this file I see a lot of files .h and .lib.
¿Could this be the source code?
¿Is there any mode to regenerate this ocx in 64-bit?
Thanks!
Hello Eduardo,
this note provides information about the classic RFC library. You need this library, because the OCX libraries use it to communicate with the SAP backend. The header files contains only definitions for your programs. This is neither the source code of the classic library nor the source code of the OCX library. I am afraid there is no way for us to generate this libraries as 64-bit Version - maybe another member knows it.
I don't know if it is possible to call 32-bit libraries from a 64-bit application - anyone else?
Cheers
Stefan
Hello Eduardo,
here is a solution for your problem: Using a 32bit COM object in a 64bit environment (Web page no longer exists - 2019/07/02)
The author Emmanuel Carabott describes what to do to use 32bit COM libraries in 64bit OS environments - Cool
Here an excerpt:
"To do this, it involves a small number of simple registry hacks:
That’s it, your COM Object should now be accessible from a 64bit environment and can be used like a regular COM Object."
Many thanks to Emmanuel Carabott for this tip.
Cheers
Stefan
More info about dllsurrogate: https://docs.microsoft.com/en-us/windows/win32/com/registering-the-dll-server-for-surrogate-activati...
(from qurm, 4 hours ago)
Hello Maria,
it is possible to disable the installation of the ActiveX controls at SAP GUI for Windows installation. If no entries in the regedit available I would assume that the libraries are not installed.
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what about if you dont find
wdtfuncs.ocx
in your regedit? what do you do in this case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Stefan.
I'll try as soon as I can.
Regards.
Eduardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eduardo
Kindly refer the SAP Note for SAPGUI with MS office 64 bit support
1442028 - SAP GUI for Windows / Desktop Office Integration: Support for Office 64bit editions
Regards
Ram
Hi
SAPGUI 7.30 patch level 7 has been released. Kindly check the Service market place (http://service.sap.com/swdc) as mention below screen shot reference
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.