<?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: System Message handling help in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144062#M99419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not recognizing when the bar says &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"The customer has requested complete delivery"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Is there any other possible way to write this, other than:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;if session.findById("wnd[0]/sbar").text = "The customer has requested complete delivery" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Dec 2012 22:53:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-01T22:53:35Z</dc:date>
    <item>
      <title>System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaq-p/9144058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I have been using SAP scripts through Excel for about 9 months and have never been able to come up with a solution to the following errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Whenever our system Admin decides to display a System message for all users when they log in, None of my scripts have the handling of this message included in them, therefore they all result in errors. Was wondering if anybody would enlighten me on how to add this into a script of mine. (located at the end of post) Not sure if the wizard helps or not.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/155206" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/155228" width="450" /&gt;&lt;/P&gt;&lt;P&gt;2. I get this notification near the bottom of the screen from time to time which stalls my scripts (I tried adding On error resume next and on error goto 0 in quite a few different places). All I would like to do is add an If that can handle both of these but am not sure where to begin.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/155229" /&gt;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;session.findById("wnd[0]").maximize&lt;BR /&gt;session.findById("wnd[0]/usr/txtRSYST-MANDT").Text = "010"&lt;BR /&gt;session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = UserBPP&lt;BR /&gt;session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = PassBPP&lt;BR /&gt;session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "EN"&lt;BR /&gt;session.findById("wnd[0]/usr/pwdRSYST-BCODE").SetFocus&lt;BR /&gt;session.findById("wnd[0]/usr/pwdRSYST-BCODE").caretPosition = 8&lt;BR /&gt;session.findById("wnd[0]").sendVKey 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If session.Children.Count &amp;gt; 1 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.findById("wnd[1]/usr/radMULTI_LOGON_OPT1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.findById("wnd[1]/usr/radMULTI_LOGON_OPT1").SetFocus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.findById("wnd[1]/tbar[0]/btn[0]").press&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt; Sheets("DO Coding").Select&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Count = Sheets("DO Coding").Range("H:H").SpecialCells(xlCellTypeConstants, 23).Cells.Count - 1&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]").maximize&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/tbar[0]/okcd").Text = "Vl02n"&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]").sendVKey 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Do Until Count = 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Range("H40000").End(xlUp).Select&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Delivery = Selection.Value&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Code = Selection.Offset(0, 1).Value&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/ctxtLIKP-VBELN").Text = Delivery&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/ctxtLIKP-VBELN").caretPosition = 8&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]").sendVKey 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]").sendVKey 8&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\07").Select&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\07/ssubSUBSCREEN_BODY:SAPMV50A:2110/txtLIKP-LIFEX").Text = Code&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\07/ssubSUBSCREEN_BODY:SAPMV50A:2110/txtLIKP-LIFEX").caretPosition = 4&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]").sendVKey 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/tbar[0]/btn[11]").press&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2012 20:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaq-p/9144058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-10T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144059#M99416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cory Cox,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Question&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;number 1:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Windows Script Host&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;has only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;commands&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to perform&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your own error handling&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;on error resume next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;on error goto 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;The command&lt;/SPAN&gt; &lt;STRONG&gt;on error goto ErrorHandler&lt;/STRONG&gt; &lt;SPAN class="hps"&gt;is not allowed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know that now, you could try for example the following construction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on error resume next&lt;/P&gt;&lt;P&gt;myscript&lt;/P&gt;&lt;P&gt;if err.number &amp;lt;&amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; myErrorHandling&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; myscript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if err.number &amp;lt;&amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox "&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;There&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an unknown error&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;occurred&lt;/SPAN&gt;&lt;SPAN&gt;.", vbOKOnly, "W&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;arning&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sub myscript()&lt;/P&gt;&lt;P&gt;' &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Here is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of your current&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;script.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub myErrorHandling()&lt;/P&gt;&lt;P&gt;err.clear &lt;/P&gt;&lt;P&gt;If Not IsObject(application) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set SapGuiAuto&amp;nbsp; = GetObject("SAPGUI")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set application = SapGuiAuto.GetScriptingEngine&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If Not IsObject(connection) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set connection = application.Children(0)&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If Not IsObject(session) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set session&amp;nbsp;&amp;nbsp;&amp;nbsp; = connection.Children(0)&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If IsObject(WScript) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WScript.ConnectObject session,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "on"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WScript.ConnectObject application, "on"&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;session.findById("wnd[1]/tbar[0]/btn[12]").press&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Question&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;number 2:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Please have a look&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;here:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/851060" title="http://scn.sap.com/thread/851060"&gt;http://scn.sap.com/thread/851060&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;ScriptMan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 11:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144059#M99416</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2012-11-16T11:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144060#M99417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yesterday our system admin displayed a System message on login so I spent quite a few hours yesterday testing the first issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ended up working was placing this script after I check the number of Children in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If session.findbyId("wnd[1]") = True Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.findbyId("wnd[1]/tbar[0]/btn[12]").Press&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error GoTo 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, for my other issue, I'm not trying to figure out what a complete delivery order is. I'm trying to figure out an if statement to handle it when it appears, but because they are very rare occurrences, I haven't been able to test anything. All I need is an if statement to identify that the message has popped up at the bottom. the Then statement would simply be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session.findbyId("wnd[0]").sendVKey 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 15:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144060#M99417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-16T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144061#M99418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;If you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do not know where&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;error&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;occurs&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;should&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use the above&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;construction&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;Otherwise you can ask directly about the warning &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;exactly at the point&lt;/SPAN&gt; in the script &lt;SPAN class="hps"&gt;where it occurs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if session.findById("wnd[0]/sbar").text = "The customer has requested complete delivery" then&lt;/P&gt;&lt;P&gt;&amp;nbsp; session.findbyId("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 09:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144061#M99418</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2012-11-23T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144062#M99419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not recognizing when the bar says &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"The customer has requested complete delivery"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Is there any other possible way to write this, other than:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;if session.findById("wnd[0]/sbar").text = "The customer has requested complete delivery" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2012 22:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144062#M99419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-01T22:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144063#M99420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;That's not true&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not used&amp;nbsp; "on error resume next", then the script will be stop at the point where the message occurs. Right there you must then install the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Or add&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;right there&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;on error resume next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;session.findbyId("wnd[0]").sendVKey 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;on error goto 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Dec 2012 08:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144063#M99420</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2012-12-02T08:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144064#M99421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i use the script with "on error resume next" then it gets triggered every time (even for the orders that don't say "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;The customer has requested complete delivery")&lt;/SPAN&gt;&amp;nbsp; and by it pressing Enter every time, it takes me back into the same order over and over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is confusing. I hope you understand what I'm trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script seems like it should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;if session.findById("wnd[0]/sbar").text = "The customer has requested complete delivery" then&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; session.findbyId("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it still hangs when the message pops up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I placed the script immediately after I press the save button in the script (which is when the message pops up). I don't think it can go anywhere else but what could be causing it not to recognize that the message is there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 14:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144064#M99421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-03T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144065#M99422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;It&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;could be that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this message appears&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;delay&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;In this case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;helps&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;e.g.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;following:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;session.findById("wnd[0]/tbar[0]/btn[11]").press&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' in Excel-vba&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;waitTill = Now() + TimeValue("00:00:01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While Now() &amp;lt; waitTill&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DoEvents&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wend&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;' or &lt;STRONG&gt;wscript.sleep 1000&lt;/STRONG&gt; in vb-script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;if session.findById("wnd[0]/sbar").text = "The customer has requested complete delivery" then&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; session.findbyId("wnd[0]").sendVKey 0&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 06:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144065#M99422</guid>
      <dc:creator>script_man</dc:creator>
      <dc:date>2012-12-04T06:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: System Message handling help</title>
      <link>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144066#M99423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was... that the message pops up as "W: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;The customer has requested complete delivery&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;I didn't have the W: in there. Thank you for all your help regarding this matter, Script Man. Much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 19:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/system-message-handling-help/qaa-p/9144066#M99423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-08T19:17:15Z</dc:date>
    </item>
  </channel>
</rss>

