Skip to Content
avatar image
Former Member

SAP GUI 7.50 - SAPNWRFC

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
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 08, 2017 at 11:56 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded