<?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: VBA Script not capturing SAP session message in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337814#M12546</link>
    <description>&lt;P&gt;My suggestion:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AHOUR = session.findById("wnd[0]/usr/subSUB:SAPLK23D:0200/tblSAPLK23DTABLE/txtCONTRLLINE-LSTBTR[6," &amp;amp; cstr(G) &amp;amp; "]").Text&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;ScriptMan&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 06:09:31 GMT</pubDate>
    <dc:creator>script_man</dc:creator>
    <dc:date>2016-10-25T06:09:31Z</dc:date>
    <item>
      <title>VBA Script not capturing SAP session message</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaq-p/337813</link>
      <description>&lt;P&gt;Hell team,&lt;/P&gt;&lt;P&gt;When i am trying to use below piece of code. It is not taking value from SAP.&lt;/P&gt;&lt;P&gt;When i am using g loop for getting value from SAP. it is not capturing. could you please advise. where i need to change.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
For G = 0 to 10

AHOUR = session.findById("wnd[0]/usr/subSUB:SAPLK23D:0200/tblSAPLK23DTABLE/txtCONTRLLINE-LSTBTR[6,G]").Text

Next&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Feb 2024 17:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaq-p/337813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-03T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Script not capturing SAP session message</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337814#M12546</link>
      <description>&lt;P&gt;My suggestion:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AHOUR = session.findById("wnd[0]/usr/subSUB:SAPLK23D:0200/tblSAPLK23DTABLE/txtCONTRLLINE-LSTBTR[6," &amp;amp; cstr(G) &amp;amp; "]").Text&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;ScriptMan&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 06:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337814#M12546</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2016-10-25T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Script not capturing SAP session message</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337815#M12547</link>
      <description>&lt;P&gt;Thank you Script Man.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 17:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337815#M12547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-26T17:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Script not capturing SAP session message</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337816#M12548</link>
      <description>&lt;P&gt;Hi Script.man,&lt;/P&gt;&lt;P&gt;I have an issue. Could you help me with this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recorded the Transaction call SE37 and FM "RECA_GUI_TEXTEDIT_POPUP" buth when it Comes to the popup with the needed thext and I click on save to local hdd it works well, but not shown in the script coding. Could you please help me to get the right Statement to define my own save Folder and file Name? Or how Can I use copy and paste from/to clipboard. I have added the script code into my Excel to use also a macro as seen below. Please help me! &lt;/P&gt;&lt;P&gt;Set SapGuiAuto = GetObject("SAPGUI")  'Get the SAP GUI Scripting object&lt;BR /&gt;Set SAPApp = SapGuiAuto.GetScriptingEngine 'Get the currently running SAP GUI&lt;BR /&gt;Set SAPCon = SAPApp.Children(0) 'Get the first system that is currently connected&lt;BR /&gt;Set session = SAPCon.Children(0) 'Get the first session (window) on that connection&lt;/P&gt;&lt;P&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;If Not IsObject(Application) Then&lt;BR /&gt;  Set SapGuiAuto = GetObject("SAPGUI")&lt;BR /&gt;End If&lt;BR /&gt;If Not IsObject(Connection) Then&lt;BR /&gt;  Set Connection = Application.Children(0)&lt;BR /&gt;End If&lt;BR /&gt;If Not IsObject(session) Then&lt;BR /&gt;  Set session = Connection.Children(0)&lt;BR /&gt;End If&lt;BR /&gt;If IsObject(WScript) Then&lt;BR /&gt;  WScript.ConnectObject session, "on"&lt;BR /&gt;  WScript.ConnectObject Application, "on"&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;x = 2&lt;BR /&gt;For i = 1 To 2&lt;BR /&gt;  session.findById("wnd[0]").maximize&lt;BR /&gt;  session.findById("wnd[0]/tbar[0]/okcd").Text = "se37"&lt;BR /&gt;  session.findById("wnd[0]").sendVKey 0&lt;BR /&gt;  session.findById("wnd[0]/usr/ctxtRS38L-NAME").Text = "RECA_GUI_TEXTEDIT_POPUP"&lt;BR /&gt;  session.findById("wnd[0]").sendVKey 8&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,8]").Text = "ROUTING"&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,9]").Text = "010N100882250000000100000007"&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,10]").Text = "PLPO"&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,11]").Text = "EN"&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,12]").Text = "03"&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,12]").SetFocus&lt;BR /&gt;  session.findById("wnd[0]/usr/txt[34,12]").caretPosition = 2&lt;BR /&gt;  session.findById("wnd[0]").sendVKey 8&lt;BR /&gt;  session.findById("wnd[1]/tbar[0]/btn[12]").press&lt;BR /&gt;  session.findById("wnd[0]").sendVKey 3&lt;BR /&gt;  session.findById("wnd[0]").sendVKey 8&lt;BR /&gt;x = x + 1&lt;BR /&gt;Next i&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stephan &lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337816#M12548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T15:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Script not capturing SAP session message</title>
      <link>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337817#M12549</link>
      <description>&lt;P&gt;how Can i contact you directly? &lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vba-script-not-capturing-sap-session-message/qaa-p/337817#M12549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T15:15:04Z</dc:date>
    </item>
  </channel>
</rss>

