on ‎2020 Aug 24 4:42 PM
stefan.schnell , sandra.rossi
Hi,
I am trying to call SAP Functions in Excel for MS Office 365 (64bit) and getting the error "ActiveX component can't create object - error 429" on execution.
I tried the registry hacks as are suggested by Stefan here , but still getting the error.
Below are the steps i performed.



Below is the VB code i am trying with
Option Explicit
Public Functions As SAPFunctionsOCX.SAPFunctions
Private LogonControl As SAPLogonCtrl.SAPLogonControl
Private R3Connection As SAPLogonCtrl.Connection
Public TableFactory As SAPTableFactory
Dim Func As SAPFunctionsOCX.Function
Dim objBAPIControl, objgetaddress As Object
----------------------------------------------------------
Sub Button1_Click()
Dim retcd As Boolean
Dim SilentLogon As Boolean
' Set Connection
Set LogonControl = CreateObject("SAP.LogonControl.1")
Set objBAPIControl = CreateObject("SAP.Functions")
Set R3Connection = LogonControl.NewConnection
R3Connection.Client = "100"
R3Connection.ApplicationServer = "<saphost>"
R3Connection.Language = "EN"
R3Connection.User = "<username>"
R3Connection.Password = "<password>"
R3Connection.System = "<SID>"
R3Connection.SystemNumber = "<SNUMBER>"
R3Connection.UseSAPLogonIni = False
SilentLogon = False
retcd = R3Connection.Logon(0, SilentLogon)
If retcd <> True Then MsgBox "Logon failed": Exit Sub
objBAPIControl.Connection = R3Connection
End Sub
and below is the error i am getting

Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello vijay.sharma4,
your first AppID entry is at the wrong position. AppID value must be direct set at the GUID key, not in InprocServer32 key as in your case.

I tried it with wdtfuncu.ocx, the unicode variant of wdtfuncs.ocx, and it works as described.
It it not necessary to delete the DllSurrogate value at HKLM hive, as Sandra wrote, it is an automatic copy which does not hinder the function. After all, the description is more than six years old, I assume that the automatic duplication of entries in the registry did not exist at this time yet.
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.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.