<?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>topic Re: SAP script error checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13741938#M2028734</link>
    <description>&lt;P&gt;Hi Paul!&lt;/P&gt;&lt;P&gt;I think your question doesn't relate to SAP Emarsys Scripting Language (ESL). ESL is used for creating dynamic personalized content in marketing campaigns in Emarsys. Please double check the Tags and assign the relevant one so that an other subject matter expert can help you with an answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 08:51:14 GMT</pubDate>
    <dc:creator>juliborzsei</dc:creator>
    <dc:date>2024-06-25T08:51:14Z</dc:date>
    <item>
      <title>SAP script error checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13740934#M2028711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When a command is send to SAP like "SAPsession.FindById("wnd[0]").resizeWorkingPane(170, 25, False)" and an error occurs I'd like to log the error and let the script continue after user input (if needed) to fix the error. Next I want to use the Log to examine the errors and fix them.&lt;/P&gt;&lt;P&gt;I was thinking to do this via an additional sub that handles the sap command and catches the error like this:&lt;/P&gt;&lt;P&gt;****************************************************************&lt;/P&gt;&lt;P&gt;Private sub resize() 'SAPCommand to be executed&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;SAPCommand(SAPsession.FindById("wnd[0]").resizeWorkingPane(170, 25, False))&lt;BR /&gt;SAPCommand(SAPsession.FindById("wnd[0]/tbar[0]/okcd").text = "/nsu3")&lt;BR /&gt;SAPCommand(SAPsession.FindById("wnd[0]").sendVKey(0))&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private sub SAPCommand(input)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'//SAPCommand to be executed&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;try&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Run SAPCommand&lt;BR /&gt;Catch ex as&amp;nbsp;Exception&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Log("Error for: " &amp;amp; input &amp;amp; vbCRLF &amp;amp; ex.tostring)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; msgbox("Fix the error for command: " &amp;amp; input)&lt;BR /&gt;end try&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;****************************************************************&lt;/P&gt;&lt;P&gt;I know the above code does not workout at all but it's just for illustration of what I'd like to accomplish.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 11:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13740934#M2028711</guid>
      <dc:creator>_Paul</dc:creator>
      <dc:date>2024-06-24T11:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script error checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13741938#M2028734</link>
      <description>&lt;P&gt;Hi Paul!&lt;/P&gt;&lt;P&gt;I think your question doesn't relate to SAP Emarsys Scripting Language (ESL). ESL is used for creating dynamic personalized content in marketing campaigns in Emarsys. Please double check the Tags and assign the relevant one so that an other subject matter expert can help you with an answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 08:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13741938#M2028734</guid>
      <dc:creator>juliborzsei</dc:creator>
      <dc:date>2024-06-25T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script error checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13742101#M2028737</link>
      <description>&lt;P&gt;Thanks, I'll have a look!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 10:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-error-checking/m-p/13742101#M2028737</guid>
      <dc:creator>_Paul</dc:creator>
      <dc:date>2024-06-25T10:46:24Z</dc:date>
    </item>
  </channel>
</rss>

