on 11-08-2017 9:11 AM
After installing the latest version of SAP GUI (pl2) I've been unable to create the necessary object references in my scripts (VBA or AutoIt).
To try and resolve this, I've downloaded the latest version of NWRFCSDK and placed the lib folder's path in my environment variables under "Path" (Windows 10).
I've restarted my PC but for some reason the objects still don't want to create. Initially I assumed that the objects need to be registered but of course I can't register any of them. Am I missing something?
Of course I also tried installing https://cco.stschnell.de/ and registering it. Put it in the lib directory. But for some reason I still can't create the objects using;
Set SAP = CreateObject("COMNWRFC")
The registration is successful but for some reason I can't access the functions. Think I'll try to get an OCX viewer and confirming whether it's registered properly.
EDIT: Used a PS1 script to pull the COM objects;
Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")} | Select-Object -ExpandProperty PSChildName
COMNWRFC is not listed. Since this is a custom built wrapper I'm hoping that Stefan Schnell has an answer for me.
PS C:\Projects\SAP\RFC\PowerBasic\CCo> reg query HKLM\SOFTWARE\Classes /s /f COMNWRFC
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{14A51CDC-1C95-4FED-ACDE-5985700A2FB1} (Default) REG_SZ COMNWRFCHELP
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{14A51CDC-1C95-4FED-ACDE-5985700A2FB1}\ProgID (Default) REG_SZ COMNWRFCHELP
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{446D3BEA-24F3-4AD9-BA8A-9C4E4072EBB4} (Default) REG_SZ COMNWRFC
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{446D3BEA-24F3-4AD9-BA8A-9C4E4072EBB4}\ProgID (Default) REG_SZ COMNWRFC
Finally figured out my issue is with 32-bit vs 64-bit AutoIt. 32-bit works fine even though I installed everything in 64-bit.
Had to re-install AutoIt as 32-bit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.