<?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: SAPGui Scripting from VBA in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-from-vba/qaa-p/4648880#M37195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Peeter Parelo:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Please try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'Dim I&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;I = InputBox(ItemText, "Select open system", 0)&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Set Connection = App.Children&lt;STRONG&gt;(int(I))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 07:53:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-08T07:53:28Z</dc:date>
    <item>
      <title>SAPGui Scripting from VBA</title>
      <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-from-vba/qaq-p/4648879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a macro in Excel which would load asset data through SAPGui Scripting but I am running into a very strange problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to be sure that the data get's loaded to correct system I have created inputbox where all the open systems are listed and the user should select one by entering a corresponding number. (it's the number of connection object in Application.Connections collection)  When this number is used as a variable in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set App = SapGuiAuto.GetScriptingEngine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim I&lt;/P&gt;&lt;P&gt;I = InputBox(ItemText, "Select open system", 0)&lt;/P&gt;&lt;P&gt;Set Connection = App.Children(I)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the system returns following message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time error '618'&lt;/P&gt;&lt;P&gt;Bad index type for collection access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has any ideas what might be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 16:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/sapgui-scripting-from-vba/qaq-p/4648879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAPGui Scripting from VBA</title>
      <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-from-vba/qaa-p/4648880#M37195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Peeter Parelo:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Please try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'Dim I&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;I = InputBox(ItemText, "Select open system", 0)&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Set Connection = App.Children&lt;STRONG&gt;(int(I))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 07:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/sapgui-scripting-from-vba/qaa-p/4648880#M37195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-08T07:53:28Z</dc:date>
    </item>
  </channel>
</rss>

