<?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: SAP GUI Scripting API for 64 bit Office (VBA) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809353#M253115</link>
    <description>&lt;P&gt;Hello Caitlin,&lt;/P&gt;&lt;P&gt;sure, it can't work.&lt;/P&gt;&lt;P&gt;BNAME = your user name, BCUSER is a standard user&lt;BR /&gt;BCODE = your password, minisap is a the standard for BCUSER&lt;BR /&gt;LANGU = your language code, e.g. EN, DE is for Germany systems&lt;/P&gt;&lt;P&gt;Try it with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "caitlin" 'Here your user name
session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "secret" 'Here your password
session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "EN" 'Here your language code &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 06:35:44 GMT</pubDate>
    <dc:creator>Stefan-Schnell</dc:creator>
    <dc:date>2019-03-05T06:35:44Z</dc:date>
    <item>
      <title>SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaq-p/809340</link>
      <description>&lt;P&gt;We're trying to make a SAP Scripting add-in for 64bit Office but we've had no success so far.&lt;/P&gt;
  &lt;P&gt;Would anyone know if this is feasible? Any help is highly appreaciated.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaq-p/809340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-22T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809341#M253103</link>
      <description>&lt;P&gt;Hello Caitlin,&lt;/P&gt;&lt;P&gt;it is possible to use SAP GUI Scripting with 64-bit applications, also Microsoft Office VBA.&lt;/P&gt;&lt;P&gt;Here an example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/276662-000.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/276663-001.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/276664-002.jpg" /&gt;&lt;/P&gt;&lt;P&gt;If I remember it right, older versions of the SAP GUI for Windows did not offer this possibility. Which version of SAP GUI for Windows do you use? If it is an older version, update to the actual release.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 08:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809341#M253103</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-23T08:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809342#M253104</link>
      <description>&lt;P&gt;Hello Stefan!&lt;/P&gt;&lt;P&gt;We’re using SAP 7.5 patch level 2&lt;/P&gt;&lt;P&gt;Would you know the requirements of SAP Scripting for 64 bit Office? (Example. SAP Version, Patch Level)&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 10:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809342#M253104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-23T10:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809343#M253105</link>
      <description>&lt;P&gt;Hello Caitlin,&lt;/P&gt;&lt;P&gt;sure, let us know your requirements, on this way we can help you.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 17:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809343#M253105</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-23T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809344#M253106</link>
      <description>&lt;P&gt;Would this work with SAP 7.5 Patch level 2?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809344#M253106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-25T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809345#M253107</link>
      <description>&lt;P&gt;Hello Caitlin,&lt;BR /&gt;in a normal case I would say yes, but I don't know it definitely because I don't have this environment anymore to check it.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 07:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809345#M253107</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-26T07:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809346#M253108</link>
      <description>&lt;P&gt;In that case we've already tried. with no success. what version are you using?&lt;/P&gt;&lt;P&gt;with our ribbon add-in we are also getting several error messages&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 09:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809346#M253108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-26T09:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809347#M253109</link>
      <description>&lt;P&gt;Hello Caitlin,&lt;BR /&gt;I tried it with SAP GUI for Windows 7.50 PL 7.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 09:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809347#M253109</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-26T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809348#M253110</link>
      <description>&lt;P&gt;We're currently getting this error &lt;/P&gt;&lt;P&gt;We can't identify the cause of the issue.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/282316-untitled-picture.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809348#M253110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-26T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809349#M253111</link>
      <description>&lt;P&gt;How do you get this error? Do you execute the script from above? Does the ST22 show any further information?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 12:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809349#M253111</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-26T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809350#M253112</link>
      <description>&lt;P&gt;When we logon on the sap gui window under excel. after entering our credentials we get this error. &lt;/P&gt;&lt;P&gt;We're not authorized to use st22&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809350#M253112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-26T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809351#M253113</link>
      <description>&lt;P&gt;You mean you do that...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'-Begin-----------------------------------------------------------------

'-Directives------------------------------------------------------------
Option Explicit

'-Sub Main--------------------------------------------------------------
Sub Main()

  '-Variables-----------------------------------------------------------
  Dim SapGuiAuto As Object
  Dim SapApp As SAPFEWSELib.GuiApplication
  Dim connection As SAPFEWSELib.GuiConnection
  Dim session As SAPFEWSELib.GuiSession

  Set SapGuiAuto = GetObject("SAPGUI")
  If Not IsObject(SapGuiAuto) Then
    Exit Sub
  End If

  Set SapApp = SapGuiAuto.GetScriptingEngine
  If Not IsObject(SapApp) Then
    Exit Sub
  End If

  Set connection = SapApp.Children(2)
  If Not IsObject(connection) Then
    Exit Sub
  End If

  Set session = connection.Children(0)
  If Not IsObject(session) Then
    Exit Sub
  End If

  session.findById("wnd[0]/usr/txtRSYST-MANDT").Text = "001"
  session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "BCUSER"
  session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "minisap"
  session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "DE"
  session.findById("wnd[0]").sendVKey 0

End Sub

'-End-------------------------------------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... and with the execution of sendVKey 0 you get an ABAP error but if you do the same steps manually it works with the same credentials?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 15:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809351#M253113</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-02-26T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809352#M253114</link>
      <description>&lt;P&gt;if these codes are in a excel sheet. vbscript wont working&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "BCUSER"
  session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "minisap"
  session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "DE" &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/290335-a.png" /&gt;&lt;/P&gt;&lt;P&gt;how would we run this on vba?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 16:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809352#M253114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-01T16:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAP GUI Scripting API for 64 bit Office (VBA)</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809353#M253115</link>
      <description>&lt;P&gt;Hello Caitlin,&lt;/P&gt;&lt;P&gt;sure, it can't work.&lt;/P&gt;&lt;P&gt;BNAME = your user name, BCUSER is a standard user&lt;BR /&gt;BCODE = your password, minisap is a the standard for BCUSER&lt;BR /&gt;LANGU = your language code, e.g. EN, DE is for Germany systems&lt;/P&gt;&lt;P&gt;Try it with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "caitlin" 'Here your user name
session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "secret" 'Here your password
session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "EN" 'Here your language code &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-gui-scripting-api-for-64-bit-office-vba/qaa-p/809353#M253115</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-03-05T06:35:44Z</dc:date>
    </item>
  </channel>
</rss>

