<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: ActiveX Component Error (429) on SAPGUI in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483314#M4676958</link>
    <description>&lt;P&gt;Hello, thanks for the feedback. Yes, this is with the GUI already opened by the user.&lt;/P&gt;&lt;P&gt;The above code still hits the run time error (ActiveX Component can't create object) at &lt;/P&gt; 
&lt;PRE&gt;&lt;CODE&gt;Set rotentry = GetObject("SAPGUI")&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Dec 2021 20:51:08 GMT</pubDate>
    <dc:creator>former_member1121233</dc:creator>
    <dc:date>2021-12-31T20:51:08Z</dc:date>
    <item>
      <title>ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaq-p/12483311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I've been trying to troubleshoot why I cannot gain access to the SAP GUI through VBA. I came across this similar question &lt;A href="https://answers.sap.com/questions/158499/sap-gui-scripting-activex-429-error.html"&gt;sap gui scripting activex 429 error | SAP Community&lt;/A&gt;, however I am currently working with 32-bit excel (Office 365). When trying to connect to the SAP GUI, I am hit with "Run-time error '429': ActiveX component can't create object." I have been using just this simple code in order to try and establish the connection:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Option Explicit&lt;BR /&gt;Public sapgui, wscript, msgcol&lt;BR /&gt;Public ObjGui as GuiApplication&lt;BR /&gt;Public ObjConn as GuiConnection&lt;BR /&gt;Public session as GuiSession&lt;BR /&gt;-----------------------------------------------------------&lt;BR /&gt;Sub ConnectSAP()&lt;BR /&gt;Set SapGui = CreateObject("SAPGUI") '(This is where the 429 error occurs)&lt;BR /&gt;End Sub&lt;BR /&gt;----------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Steps I've taken/observations:&lt;/P&gt;
  &lt;P&gt;I've included the SAP GUI Scripting API (sapfewse.ocx) in the VBA references panel&lt;/P&gt;
  &lt;P&gt;I've noticed that other SAP functions work without issue (i.e. CreateObject("SAP.Functions"))&lt;/P&gt;
  &lt;P&gt;I've noticed that in the loaded DLLs information from within the SAP GUI, I do not see sapfewse.ocx listed (unsure if I should)&lt;/P&gt;
  &lt;P&gt;Additional research has been mentioning the possibility of having to update registry keys, but am unsure how to safely do this, and would pursue this option once I know I'm not missing something else here.&lt;/P&gt;
  &lt;P&gt;The SAP GUI version is 760&lt;/P&gt;
  &lt;P&gt;Windows 10 Enterprise 6.2&lt;/P&gt;
  &lt;P&gt;Any help is amazing appreciated, would go a long way to unlocking so many automation projects with VBA&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 19:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaq-p/12483311</guid>
      <dc:creator>former_member1121233</dc:creator>
      <dc:date>2021-12-31T19:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483312#M4676956</link>
      <description>&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. And thank you for providing so many details about your issue. This information will make it easier for other members to answer. &lt;/P&gt;

&lt;P&gt;One suggestion: Use the
"insert code" feature to make your question easier to read. Should
you wish, you can revise your question by selecting Actions, then Edit. You'll
see the "insert code" button on the upper right of the interface.&lt;/P&gt;

&lt;P&gt;I
also recommend that you include a profile picture. By personalizing your
profile, you encourage readers to respond:
&lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Kind
regards,&lt;/P&gt;

&lt;P&gt;--Jerry&lt;/P&gt;

&lt;P&gt;Moderation
Lead&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 19:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483312#M4676956</guid>
      <dc:creator>jerryjanda</dc:creator>
      <dc:date>2021-12-31T19:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483313#M4676957</link>
      <description>&lt;P&gt;You want to connect to SAP GUI, so do you mean SAP GUI is already started by the user?&lt;/P&gt;&lt;P&gt;In that case, this code should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Dim rotEntry As Object
Set rotEntry = GetObject("SAPGUI")
Set application = rotEntry.GetScriptingEngine
Set connection = application.connections(0)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to start SAP GUI, it's different code, you must use WScript (for instance), use "run", indicate the path to saplogon.exe program, wait until it's started, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 19:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483313#M4676957</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-12-31T19:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483314#M4676958</link>
      <description>&lt;P&gt;Hello, thanks for the feedback. Yes, this is with the GUI already opened by the user.&lt;/P&gt;&lt;P&gt;The above code still hits the run time error (ActiveX Component can't create object) at &lt;/P&gt; 
&lt;PRE&gt;&lt;CODE&gt;Set rotentry = GetObject("SAPGUI")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Dec 2021 20:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483314#M4676958</guid>
      <dc:creator>former_member1121233</dc:creator>
      <dc:date>2021-12-31T20:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483315#M4676959</link>
      <description>&lt;P&gt;With SAPGUI.Application?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Set rotEntry = CreateObject("SAPGUI.Application")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If it doesn't work, re-install SAP GUI with all components (including SAP GUI Scripting component - maybe it's missing, possibly related to "I do not see sapfewse.ocx").&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 10:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483315#M4676959</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-01-01T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483316#M4676960</link>
      <description>&lt;P&gt;Re-install provided the same results as far as .dlls/.ocx references are concerned.&lt;/P&gt;&lt;P&gt;On trying &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Set rotEntry = CreateObject("SAPGUI.Application")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm able to advance to the next line, however now at the following line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Set application = rotEntry.GetScriptingEngine&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm getting a run time error 438 "This object doesn't support this property or method". Not seeing any options within intellisense either as potential object properties for the rotEntry variable. Total code used below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Option Explicit&lt;BR /&gt;Sub SAP()

&lt;BR /&gt;Dim app as GuiApplication&lt;BR /&gt;Dim connection as GuiConnection&lt;BR /&gt;Dim rotEntry as Object

&lt;BR /&gt;Set rotEntry = CreateObject("SAPGUI.Application")&lt;BR /&gt;Set app = rotEntry.GetScriptingEngine '438 ERROR Object doesn't support this property or method&lt;BR /&gt;Set Connection = app.Connections(0)&lt;BR /&gt;End Sub&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jan 2022 16:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483316#M4676960</guid>
      <dc:creator>former_member1121233</dc:creator>
      <dc:date>2022-01-03T16:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX Component Error (429) on SAPGUI</title>
      <link>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483317#M4676961</link>
      <description>&lt;P&gt;I think the bug is explained in note 2645186 and workaround is given.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 21:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/activex-component-error-429-on-sapgui/qaa-p/12483317#M4676961</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-01-03T21:16:32Z</dc:date>
    </item>
  </channel>
</rss>

